Page 1 of 1

Can't get check_nrpe or check_nt to work on a Windows Host

Posted: Mon Sep 16, 2019 10:05 am
by craigtho
Hi all,

So I configured my own Nagios core server (version 4.4.3) on Ubuntu 18.04 LTS VM. I have set it up to monitor most of the hosts on my infra, both Linux & Windows.

On my web interface, I can see that my machine I'm monitoring has picked up all the defined check_nt services I have listed in my .cfg directory:

https://imgur.com/a/CG1uE6h

The hosts .cfg file is as follows:
nsclient.ini
nsclient.ini
(7.13 KiB) Downloaded 120 times
When I run the same commands on the termial however, it get a timeout error. Adding the -t flag doesn't help either:

https://imgur.com/a/hY9ccdK


nsclient.ini here:
nsclient.ini
nsclient.ini
(7.13 KiB) Downloaded 120 times

Re: Can't get check_nrpe or check_nt to work on a Windows Ho

Posted: Mon Sep 16, 2019 10:13 am
by scottwilkerson
You need to add the port (-p 12489)

Code: Select all

/usr/local/nagios/libexec/check_nt -H 192.168.60.41 -p 12489 -v CLIENTVERSION

Re: Can't get check_nrpe or check_nt to work on a Windows Ho

Posted: Mon Sep 16, 2019 10:14 am
by craigtho
Damn...

Well, post closed.

I'm still getting issues using NRPE on the Windows host, but ill post that seperately.

Re: Can't get check_nrpe or check_nt to work on a Windows Ho

Posted: Mon Sep 16, 2019 10:16 am
by scottwilkerson
craigtho wrote:Damn...

Well, post closed.

I'm still getting issues using NRPE on the Windows host, but ill post that seperately.
ok

Locking