Created
January 24, 2014 10:21
-
-
Save phunehehe/8595007 to your computer and use it in GitHub Desktop.
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
[twistd] | |
user 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) | |
cat <<'EOM' | |
graph_title Twisted Open Files | |
graph_vlabel nofile | |
nofile.label nofile | |
EOM | |
exit 0;; | |
esac | |
printf "nofile.value " | |
/usr/bin/sudo /usr/sbin/lsof -c twistd | wc -l |
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
munin ALL=(ALL) NOPASSWD:/usr/sbin/lsof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment