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.
False reporting of Unreachable after server move
-
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: False reporting of Unreachable after server move
Your host check definition is exiting with a return code of 3. You should investigate why.
Previous Nagios employee
Re: False reporting of Unreachable after server move
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!
chmod u+s /usr/bin/ping and it works now thanks!