Commenting on Monitoring Per-Process Memory Usage with Munin
If you've got an OpenID, you should use it to log in below. You'll be automatically registered, no fuss. And that means you won't have to wait for your comment to be moderated. You'll also be able to edit your comments.
Replying to:
-
plugin.sh came with my copy of Munin (which is just the Debian package) - I didn't write it myself.
dominic@web:/$ cat /usr/share/munin/plugins/plugin.sh
# -*- shell -*-
# Support functions for shell munin plugins
#
clean_fieldname () {
# Clean up field name so it complies with munin requirements.
#
# usage: name="$(clean_fieldname "$item")"
#
echo "$@" | sed -e 's/^[^A-Za-z_]/_/' -e 's/[^A-Za-z0-9_]/_/g'
}
Dominic
Tue, 28/7/09 – 6:02pm
Reply