Permalink
Browse files

Turn off number scaling

Results over 1000 would appear as 1K, and anything above would be rounded up/down. Not accurate. Now turned off.
  • Loading branch information...
mattyribbo committed Jun 28, 2018
1 parent 7368ab5 commit b884661169a21ca90cdcad6d7f91d0c681d6ef43
Showing with 15 additions and 9 deletions.
  1. +1 −0 icecast2_all
  2. +14 −9 readme.md
@@ -120,6 +120,7 @@ def ic2xml():
print ("graph_vlabel listeners")
print ("graph_category Icecast")
print ("graph_printf %7.0lf")
print ("graph_scale no")
print ("totallisteners.label Total number of listeners")
print ("totalsources.label Total number of sources")
sourcesort = list(sourcelist.keys())
@@ -6,28 +6,33 @@ Requirements
* Munin
* Python 3.2 or above
* [Requests python library](http://docs.python-requests.org/en/latest/ "Requests")
* An icecast2 server
* An Icecast2 server
What?
-----
This is a plugin for munin to record global listener figures, mountpoint total, and individual mountpoint listener figures for your icecast server.
This is a plugin for munin to record global listener figures, mountpoint total, and individual mountpoint listener figures for your Icecast servers.
Features
--------
* Generate graphs from one or multiple Icecast servers, standalone or relays.
* Filter sources listed by using Regex filters.
How to use
----------
1. Copy icecast2_all to plugins directory (/usr/share/munin/plugins/ or /usr/lib/munin/plugins/)
2. Set executable flag on file ($ chmod +x /usr/lib/munin/plugins/icecast2_all)
3. Edit munin-node environment configuration ice2{host, user, pass}
3.5. Else, edit icecast2_all configuration (host, username, password)
4. Symlink to munin live plugins folder ($ ln -s /usr/share/munin/plugins/icecast2_all /etc/munin/plugins/icecast2_all)
5. Restart munin-node ($ /etc/rc.d/munin-node restart)
6. Graphs should start to appear.
4. Symlink to the munin live plugins folder ($ ln -s /usr/share/munin/plugins/icecast2_all /etc/munin/plugins/icecast2_all)
5. Graphs should start to appear.
Help!
-----
If you're stuck getting this working or notice something drastically wrong, you're welcome to email me. matt@mattyribbo.co.uk
If you're stuck getting this working or notice something drastically wrong, raise an issue on GitHub or email matt@mattyribbo.co.uk.
Remarks
-------
This plugin is based off a icecast2 plugin which was found in the munin plugin repository. It had no author, no licence, was using and old version of python and didn't work out of the box. I would credit you, but I don't know who you are, so hello.
This plugin is based off an old icecast2 plugin from years ago which was found in the munin plugin repository. It had no author, no licence, used an old version of python and didn't work out of the box. I would credit you, but I don't know who you are, so hello!
I'm using the requests python library, because urllib was being a pain with authentication, and requests is so much nicer to use. It's fairly easy to get requests installed if you use pip.
The requests python library is used instead of native urllib which was a pain with http authentication. It's fairly easy to get requests installed by using pip.

0 comments on commit b884661

Please sign in to comment.