Page 3 of 4

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 10:02 am
by tgriep
Without knowing how the check is defined on the Nagios server, I am assuming you are using the check_nrpe plugin?

If so, you need to allow inbound connections through the firewall on the Windows system for port 5666
That could be one cause for the issue.

The other problem is that there are some wrong configuration settings in your nsclient.ini file so edit hat file and under this section

Code: Select all

[/settings/NRPE/server]
Change the following from

Code: Select all

insecure = false
ssl options = no-sslv2,no-sslv3
verify mode = peer-cert
extended response = 1
To

Code: Select all

insecure = true
ssl options = 
verify mode = none
extended response = 0

Save the nsclient.ini file and restart the NSClient++ agent on the Windows server.

If you still have problems, post the IP address of the Windows server and the Nagios server.
Post a screen shot of the error that you are seeing and an example of the command that is defined on the XI server.

Thanks

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 11:34 am
by crystal
it doesn't work..
ip: 192.168.64.1
nagios: 192.168.64.82

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 12:59 pm
by tgriep
Is the remote server you are trying to monitor a windows system?

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 1:15 pm
by crystal
yes. The ipv4 is 192.168.64.70 and the default gateway is 192.168.64.1. I used default gateway IP address to try to monitor my windows server

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 1:18 pm
by crystal
I'm not sure between ipv4 and default gateway ip address which one I can use to monitor my window server.

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 1:40 pm
by tgriep
Run this command to see if the Nagios server can connect to your Windows system.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 192.168.64.70
The host (-H option) has to be the IP address of the Windows host and not the Nagios server.

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 1:48 pm
by crystal
i got this

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 1:52 pm
by crystal
I used 192.168.64.70 ip address to monitor my windows server
this is what i got

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 2:09 pm
by tgriep
That looks great. The check_nrpe commands are working now.
If you want to fix the Host check and the Ping service check, you will have to allow inbound ICMP on the Windows server and you can search the internet for documents that show you how to do that.

Re: host status keep showing as being down

Posted: Tue Oct 03, 2017 3:13 pm
by crystal
it works, thank you for your patience.
I still have one more question, I also used default gateway address to monitor but I got the following result. Does it mean I cannot use default gateway address to monitor my server?