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
3 votes
Favoured:
0
Hits
112097
Files:
FileDescription
show_users.txtversion 0.2
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). Can also alert if certain users are not logged in.
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 also alert if a specific user or users are not logged on.

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

Simple to use.

+++ Support
For any bugs, feature requests or other support issues, contact me at hpsekhon@googlemail.com.
Reviews (2)
bychlewis, October 9, 2013
Great plugin!
bynishith, July 23, 2012
Plugin worked properly. Just set below things.

On Nagios Server:
* Create a file "show_users" in your libexec directory.

* Copy all the "show_users.txt" contents in "show_users" file

* chmod 755 show_users
* chown nagios:nagios show_users
* Open your host configuration file & type below configuration.

define service{
use generic-service ; Inherit values from a template
host_name Dell NFS Server
service_description Logged Users
check_command check_nrpe!show_users

On NRPE Client:

* Copy show_users file in "libexec" directory
* vim nrpe.cfg, add below line

command[show_users]=/usr/local/nagios/libexec/show_users

Save & Exit & restart NRPE/Xinetd service

That's it.