host status keep showing as being down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host status keep showing as being down

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
crystal
Posts: 25
Joined: Wed Sep 20, 2017 10:29 am

Re: host status keep showing as being down

Post by crystal »

it doesn't work..
ip: 192.168.64.1
nagios: 192.168.64.82
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host status keep showing as being down

Post by tgriep »

Is the remote server you are trying to monitor a windows system?
Be sure to check out our Knowledgebase for helpful articles and solutions!
crystal
Posts: 25
Joined: Wed Sep 20, 2017 10:29 am

Re: host status keep showing as being down

Post 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
crystal
Posts: 25
Joined: Wed Sep 20, 2017 10:29 am

Re: host status keep showing as being down

Post by crystal »

I'm not sure between ipv4 and default gateway ip address which one I can use to monitor my window server.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host status keep showing as being down

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
crystal
Posts: 25
Joined: Wed Sep 20, 2017 10:29 am

Re: host status keep showing as being down

Post by crystal »

i got this
You do not have the required permissions to view the files attached to this post.
crystal
Posts: 25
Joined: Wed Sep 20, 2017 10:29 am

Re: host status keep showing as being down

Post by crystal »

I used 192.168.64.70 ip address to monitor my windows server
this is what i got
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: host status keep showing as being down

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
crystal
Posts: 25
Joined: Wed Sep 20, 2017 10:29 am

Re: host status keep showing as being down

Post 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?
You do not have the required permissions to view the files attached to this post.
Locked