Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[twistd]
user munin
#!/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
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
You can’t perform that action at this time.