Page 1 of 1
Issue with deployment of Nagios
Posted: Mon Aug 24, 2020 10:20 am
by wade3590
Hello there! I have been placed in a position where I am having to learn nagios/linux to monitor a network we have for a local business. So far I have been able to get everything installed and running. I added all the hosts that I needed to be monitored and everything was shown as up. I unplug the Raspberry Pi and drive 5 min down the road and get it deployed on the network and now it shows as everything is DOWN. I can ping all of the hosts, and I know none of them are down. Any help would be great here, I have read this may be an issue with the "ping plugin"? Any help would be great as my boss needs this as a way the client can feel a little more secure over the network. The date/time is also wrong. I'm not exactly sure what has happened from the time I shut it down to booting back up, no changes were ever made.
Thanks!!
Re: Issue with deployment of Nagios
Posted: Mon Aug 24, 2020 1:35 pm
by benjaminsmith
Hi
@wade3590,
Sounds like you have Nagios installed on Rapsberry Pi. If the time is off, you just need to reset the system time. Or even better, setup time sync using ntp, see instructions below:
https://raspberrytips.com/time-sync-raspberry-pi/
What error message are you seeing in the interface when the ping checks fail? Can you post a screenshot. If you run the check command directly from the plugins in folder, does it work correctly? For example:
Code: Select all
/usr/local/nagios/libexec/check_icmp -H mysite.com -c 20,5%
Re: Issue with deployment of Nagios
Posted: Tue Aug 25, 2020 9:31 am
by wade3590
Thank you so much I'll be heading over to the device later this evening to check that out, like I said I'm very new to all of this, could the firewall be an issue with nagios?
Re: Issue with deployment of Nagios
Posted: Tue Aug 25, 2020 2:06 pm
by wade3590
check_ping: Invalid hostname/address - [192.168.101.31]
Usage:
check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
[-p packets] [-t timeout] [-4
this is the error it is giving me for each host. I just don't know enough about linux and nagios to be able to make a possible path for me to even know what I need to do to fix this. Could it be the firewall?
Re: Issue with deployment of Nagios
Posted: Wed Aug 26, 2020 1:30 pm
by gormank
Well, this is probably not it, but you aren't surrounding the address with brackets [] are you?