Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added bigbluebutton plugin #1161

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

zettrik
Copy link

@zettrik zettrik commented Jan 12, 2021

This is a new plugin to monitor the usage (user, meeting rooms ...) of a bigbluebutton server.

Copy link
Collaborator

@sumpfralle sumpfralle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thanks!

Please take a look at my two nitpicks below. But you may feel free to ignore them - the plugin is fine, as it is now ...

try:
tree = ElementTree.fromstring(responsedata)
except HTTPError as e:
print('There was an error with the recieved data from bbb api.')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you could add file=sys.stderr. Otherwise munin would try to parse the mess.

import os
from xml.etree import ElementTree

bbbconf_path = "/usr/bin/bbb-conf"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to provide a fancy interface, you could take this path from the environment (e.g. bbbconf_path = os.getenv("BBBCONF_BIN", "/usr/bin/bbb-conf")) and describe this in the Configuration section.

@github-actions
Copy link

Stale pull request message

@sumpfralle
Copy link
Collaborator

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants