Page 1 of 1

Checking Windows Host using check_nrpe

Posted: Mon Sep 18, 2017 7:33 am
by sheen.lim
Is there any documentation that I can use to monitor windows hosts using NRPE?

is check_nt deprecated? which one is better to use? check_nt? or check_nrpe for windows host?

Re: Checking Windows Host using check_nrpe

Posted: Mon Sep 18, 2017 8:18 am
by mcapra
sheen.lim wrote:is check_nt deprecated?
Not that I am aware of.
sheen.lim wrote:which one is better to use? check_nt? or check_nrpe for windows host?
check_nrpe offers much more functionality than check_nt, so on that basis I would say check_nrpe is better.

Here's some documentation for enabling the NRPE listener in NSClient++:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Feel free to chime in if you encounter any problems with that documentation.

Re: Checking Windows Host using check_nrpe

Posted: Mon Sep 18, 2017 10:23 am
by kyang
Thanks @mcapra! OP, as suggested let us know if you have any more questions.

To give you more options, you could take a look at NCPA if you wanted to monitor your windows hosts.

https://www.nagios.org/ncpa

https://www.nagios.org/ncpa/getting-started.php#windows

Re: Checking Windows Host using check_nrpe

Posted: Tue Sep 19, 2017 3:22 am
by DrNox
Check_nt and Check_nrpe is equal except that nrpe can use script. Is this ?

Re: Checking Windows Host using check_nrpe

Posted: Tue Sep 19, 2017 6:57 am
by dwhitfield
check_nrpe can be used on pretty much any operating system. I think your statement is on its face false.

However, both can be used through NSClient, so if that's where the question of equivalency comes from, the answer is true.

Re: Checking Windows Host using check_nrpe

Posted: Tue Sep 19, 2017 7:56 am
by DrNox
Yep, that's what i thougth ^.^
Check_nt is only for Windows but it's usefull for beginners like me !

Re: Checking Windows Host using check_nrpe

Posted: Tue Sep 19, 2017 1:31 pm
by dwhitfield
Did you have any other questions, or are we ready to lock the thread?

Re: Checking Windows Host using check_nrpe

Posted: Thu Sep 21, 2017 6:25 am
by sheen.lim
Okay, Sorry for the late reply.

So I've setup a test windows server and installed NSClient++ with insecure mode (so that I can use check_nt).
I have added the Nagios Server IP address and assigned a password on my Windows Host. I can confirm port 12489 is open on the windows host.

However when I start to test it from the nagios server i get the following message.
Image

Do I need to anything else on the NSClient++ on the Windows hosts?

Re: Checking Windows Host using check_nrpe

Posted: Thu Sep 21, 2017 6:38 am
by sheen.lim
Okay, I got it working.

On my windows host, the modules that are responsible for the OPTION i am using on check_nt are disabled.
Image

I changed the string from "disabled" to "enabled" and restarted the NSCLient++ service on the windows host and whala!!

Is there a documentation though in NSClient++ or nagios so that I can tell what module on the Windows host is the OPTION belongs to. (I couldn't find it on google by the way)

Re: Checking Windows Host using check_nrpe

Posted: Thu Sep 21, 2017 10:52 am
by scottwilkerson
Glad you were successful!

There is docs on their site, but they can be confusing
https://docs.nsclient.org/tutorial/#configuration