Page 1 of 1

Can't locate all plugins in Nagios server

Posted: Mon May 11, 2015 8:54 am
by lsazzad
I have two Nagios Server:

1. 172.19.1.55-P
2. 172.19.1.56-S

In Primary server you can see following output:

Code: Select all

root@RR-DE-NMS-1:/usr/lib# ls -lrt /usr/lib/nagios/plugins
ls: cannot access /usr/lib/nagios/plugins: No such file or directory
root@RR-DE-NMS-1:/usr/lib# ls -lrt nagios*
ls: cannot access nagios*: No such file or directory
But in Secondary server i can easily can see all the plugins:

Code: Select all

root@RR-DE-NMS-2:/usr/lib/nagios/plugins# ls -lrt
total 2232
-rwxr-xr-x 1 root root  2917 Mar 12  2014 utils.sh
-rw-r--r-- 1 root root  1936 Mar 12  2014 utils.pm
-rwxr-xr-x 1 root root  2930 Mar 12  2014 check_wave
-rwxr-xr-x 1 root root  1453 Mar 12  2014 check_sensors
-rwxr-xr-x 1 root root  9575 Mar 12  2014 check_rpc
..................................................
I dont understand where all the plugins are in my active server?

Platform:
Nagios 4.0.8
Ubuntu 15.04 (GNU/Linux 3.16.0-36-generic x86_64)

Re: Can't locate all plugins in Nagios server

Posted: Mon May 11, 2015 9:03 am
by jdalrymple
lsazzad wrote:But in Secondary server i can easily can see all the plugins:

Code: Select all

root@RR-DE-NMS-2:/usr/lib/nagios/plugins# ls -lrt
total 2232
-rwxr-xr-x 1 root root  2917 Mar 12  2014 utils.sh
-rw-r--r-- 1 root root  1936 Mar 12  2014 utils.pm
-rwxr-xr-x 1 root root  2930 Mar 12  2014 check_wave
-rwxr-xr-x 1 root root  1453 Mar 12  2014 check_sensors
-rwxr-xr-x 1 root root  9575 Mar 12  2014 check_rpc
..................................................
I hope this isn't truly *all* of your plugins - that's a very small quantity
lsazzad wrote:I dont understand where all the plugins are in my active server?
Neither do we. I would guess you used the Ubuntu apt-get or maybe the package manager gui to install? Nagios' preferred location for plugins is /usr/local/nagios/libexec - however your installation could have put them anywhere. I suggest using the find command to seek them out:

Code: Select all

find / -name 'check_*'
should locate where they're stored for you. Then you'll want to either move them or adjust $USER1$ in your resources.cfg to suit your needs.

Re: Can't locate all plugins in Nagios server

Posted: Mon May 11, 2015 9:33 am
by lsazzad
thanks a lot!

Re: Can't locate all plugins in Nagios server

Posted: Mon May 11, 2015 9:35 am
by tmcdonald
I assume you found them? If so, are we clear to close this thread?

Re: Can't locate all plugins in Nagios server

Posted: Mon May 11, 2015 9:42 am
by lsazzad
Yap. Requested to close the thread!