Created
September 24, 2011 12:18
-
-
Save kylef/1239267 to your computer and use it in GitHub Desktop.
InspIRCd plugins for munin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
config) | |
echo "graph_title Channel count" | |
echo "graph_vlabel channels" | |
echo "channels.label channels" | |
echo "channels.draw AREA" | |
;; | |
*) | |
count=$(wget -q -Y off -O - --no-check-certificate https://localhost:8081/stats | xml sel -t -v "inspircdstats/general/channelcount") | |
echo "channels.value $count" | |
;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case $1 in | |
config) | |
echo "graph_title Users count" | |
echo "graph_vlabel users" | |
echo "users.label users" | |
echo "users.draw AREA" | |
;; | |
*) | |
count=$(wget -q -Y off -O - --no-check-certificate https://localhost:8081/stats | xml sel -t -v "inspircdstats/general/usercount") | |
echo "users.value $count" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment