check_nrpe operations on windows

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.
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

check_nrpe operations on windows

Post by Pierogi »

I currently have a Nagios 4.2.0 server in production and monitoring our Microsoft Exchange environment. It is monitoring all critical services but I'd like to start running some scripts as well for more information, like the amount of items in the mail queues. As I understand it, I need "check_nrpe" commands to work.

To test whether it works, I try the command below and get the current results:

/usr/local/nagios/libexec/check_nrpe -H 10.192.3.172
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

I've made a number of changes in the nsclient.ini but none seem to fix it.

Does anyone have a good idea of where to focus to resolve this?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_nrpe operations on windows

Post by scottwilkerson »

Can you share your nsclient.ini and version?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post by Pierogi »

Please see attached.

Running version .5.2035

I have another install where I made a lot of changes to the ini file but still same results. I can share that as well.
Attachments
2018-0703-204-nsclient.ini
(28.83 KiB) Downloaded 446 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_nrpe operations on windows

Post by scottwilkerson »

See page 2-4 of this doc on how to enable the listener
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post by Pierogi »

Will do. I started the process about a week ago but that particular client stopped working when I ran the first command so I'll see what errors I get and find what changed. Be back shortly!
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe operations on windows

Post by lmiltchev »

Let us know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post by Pierogi »

So I've run through the article and getting the same result:

./check_nrpe -H 10.192.3.173
CHECK_NRPE: Received 0 bytes from daemon.

Below is the debug info from the client.

2018-08-15 00:59:05: debug:c:\source\master\include\nrpe/server/protocol.hpp:92: Accepting connection from: 10.192.0.7, count=1
2018-08-15 00:59:05: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol
2018-08-15 00:59:05: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings.

I'll keep diving into the SSL communication but hit a wall with this earlier. Any insight is appreciated.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe operations on windows

Post by lmiltchev »

Add the following two lines to the nsclient.ini file under the [/settings/NRPE/server] section:

Code: Select all

allowed ciphers = ALL:!MD5:@STRENGTH
verify mode = none
and restart the nsclient service.

Let us know if this fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post by Pierogi »

Thanks lmiltchev.

So I opened the nsclient.ini file on Windows node 10.192.3.173, went to the [/settings/NRPE/server] section.

"verify mode = none" was there from following the previously mentioned article.

I added "allowed ciphers = ALL:!MD5:@STRENGTH" under the same section, saved and restarted the nsclient++ monitoring agent service.

On the Nagios server, I navigated "/usr/local/nagios/libexec$" and ran "./check_nrpe -H 10.192.3.173"

I got the same result: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

In the client log, I also see the same thing:

2018-08-15 11:25:47: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol
2018-08-15 11:25:47: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe operations on windows

Post by lmiltchev »

I just noticed that you have the following line in the nsclient.ini file:

Code: Select all

insecure = false
Change it to:

Code: Select all

insecure = true
save, exit, and restart the nsclient service.

Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked