Page 1 of 1

False reporting of Unreachable after server move

Posted: Tue May 16, 2017 5:13 am
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.

Re: False reporting of Unreachable after server move

Posted: Tue May 16, 2017 11:15 am
by avandemore
Your host check definition is exiting with a return code of 3. You should investigate why.

Re: False reporting of Unreachable after server move

Posted: Tue May 16, 2017 11:19 am
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!