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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
craigtho
Posts: 16
Joined: Mon Sep 16, 2019 9:23 am

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

Post 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 72 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 72 times
Attachments
my-pc.cfg
my.cfg
(3.99 KiB) Downloaded 84 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
craigtho
Posts: 16
Joined: Mon Sep 16, 2019 9:23 am

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

Post by craigtho »

Damn...

Well, post closed.

I'm still getting issues using NRPE on the Windows host, but ill post that seperately.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked