Skip to content

Instantly share code, notes, and snippets.

@kylef
Created September 24, 2011 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylef/1239267 to your computer and use it in GitHub Desktop.
Save kylef/1239267 to your computer and use it in GitHub Desktop.
InspIRCd plugins for munin
#!/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
#!/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