Random Project

Worked Perfectly

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.