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

Directory Tree

show_users

Rating
0 votes
Favoured:
1
Hits
156111
Files:
FileDescription
show_users.shVersion 0.3, added -w -c
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.