check_nrpe operations on windows

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

check_nrpe operations on windows

Postby Pierogi » Thu Jul 26, 2018 2:22 pm

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

Re: check_nrpe operations on windows

Postby scottwilkerson » Fri Jul 27, 2018 12:14 pm

Can you share your nsclient.ini and version?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12053
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_nrpe operations on windows

Postby Pierogi » Mon Jul 30, 2018 1:33 pm

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

Re: check_nrpe operations on windows

Postby scottwilkerson » Mon Jul 30, 2018 1:47 pm

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12053
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_nrpe operations on windows

Postby Pierogi » Fri Aug 10, 2018 1:58 pm

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

Re: check_nrpe operations on windows

Postby lmiltchev » Fri Aug 10, 2018 2:24 pm

Let us know if you have any more questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 10927
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe operations on windows

Postby Pierogi » Wed Aug 15, 2018 12:02 am

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

Re: check_nrpe operations on windows

Postby lmiltchev » Wed Aug 15, 2018 9:26 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 10927
Joined: Mon May 23, 2011 12:15 pm

Re: check_nrpe operations on windows

Postby Pierogi » Wed Aug 15, 2018 10:32 am

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

Re: check_nrpe operations on windows

Postby lmiltchev » Wed Aug 15, 2018 2:34 pm

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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 10927
Joined: Mon May 23, 2011 12:15 pm

Next

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 22 guests