Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

show_users

Rating
0 votes
Favoured:
1
Hits
152833
Files:
FileDescription
show_users.shVersion 0.3, added -w -c
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Shows users logged on to a machine. Can alert on certain users being logged in using either a whitelist or blacklist (or both) or if certain users are not logged in. Reflects original Nagios plugin, -w and -c alert on number of users on system.
Modified http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1415.html;d=1
Orriginal Author : Hari Sekhon

Just run this plugin on any Unix/Linux machine with the standard Bash shell installed and it will list all logged in users.

You can set the plugin to alert if certain users are logged in, or even better, if any user not from a defined whitelist is logged in.

You can now also use -w and -c to alert on the number of users logged in. This warning will show a `who` style output, and will show where the users are logged in from.

You can also alert if a specific user or users are not logged on.

Run ./show_users --help for details on switches.

Support
For any bugs, feature requests or other support issues, contact me at rmackenz@sfu.ca or the original author at hpsekhon@googlemail.com.