Can't locate all plugins in Nagios server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Can't locate all plugins in Nagios server

Post 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)
Regards
Sazzad
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Can't locate all plugins in Nagios server

Post 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.
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: Can't locate all plugins in Nagios server

Post by lsazzad »

thanks a lot!
Regards
Sazzad
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Can't locate all plugins in Nagios server

Post by tmcdonald »

I assume you found them? If so, are we clear to close this thread?
Former Nagios employee
lsazzad
Posts: 72
Joined: Tue Apr 07, 2015 6:52 am
Location: ​Osnabrück, Deutschland
Contact:

Re: Can't locate all plugins in Nagios server

Post by lsazzad »

Yap. Requested to close the thread!
Regards
Sazzad
Locked