4 Dec 2005 18:40
users plugin
Hi there, I've written a small plugin for collectd which counts the number of users logged into the system. It is based on revision 258 of the source code. I could only test it on my Linux box, but it should work on any other Unix System as well - any feedback is appreciated(Continue reading)Also, I found that the '-P' command line option was still undocumented in the manpage, so I added an appropriate section to the POD-file. Hope you'll like it
Cheers, Sebastian Index: contrib/users =================================================================== --- contrib/users (revision 0) +++ contrib/users (revision 0) <at> <at> -0,0 +1,34 <at> <at> +#!/bin/sh + +FILE="/var/lib/collectd/users.rrd" +HOST="" + +if [ -n "$SERVER_NAME" ]; then + HOST=$SERVER_NAME + echo "Content-Type: image/png"; + echo ""; +else
Also, I found that the '-P' command line option was still undocumented in the
manpage, so I added an appropriate section to the POD-file.
Hope you'll like it
RSS Feed