False reporting of Unreachable after server move

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
swdee
Posts: 4
Joined: Tue May 16, 2017 5:06 am

False reporting of Unreachable after server move

Post by swdee »

I have just moved Nagios from a physical server to a Vmware server, and every host is now being reported in the Nagios Core webpage as Unreachable, but they're all running ok.

The ping command is /usr/bin/ping -n -U -w 30 -c 5 {ip address}, which, when I run on the nagios linux console pings every host sucessfully.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: False reporting of Unreachable after server move

Post by avandemore »

Your host check definition is exiting with a return code of 3. You should investigate why.
Previous Nagios employee
swdee
Posts: 4
Joined: Tue May 16, 2017 5:06 am

Re: False reporting of Unreachable after server move

Post by swdee »

Ah it seems the Nagios user couldn't use the ping command, only root could use it so I did

chmod u+s /usr/bin/ping and it works now thanks!
Locked