Here is an option.  In your snmpd.conf file put in an exec command for this 
script.

This will return the number of users logged in.



#! /bin/bash
/usr/bin/who | wc | sed -e 's/\s\s*/ /g' | cut -d' ' -f2

------------------------
 Christopher Hubbard




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=11807#11807

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to