No data was received from host!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

No data was received from host!

Post by robert.anderko »

Hi all,
i have problem with obtaining data from one Windows server. NRPE part works fine, but nsclient not works. I trying install new version of nslient, but same issue.

tested/not working with:
nsclient 0.4.4.19 & nsclient 0.5.0.62

/usr/local/nagios/libexec/check_nt -H XXX.XXX.XXX.XXX -s "" -p 12489 -v CPULOAD -l 5,90,95
No data was received from host!
could not fetch information from server

in log file:
2017-08-10 20:05:57: debug:c:\source\master\include\nrpe/server/protocol.hpp:72: Accepting connection from: XXX.XXX.XXX.XXX, count=1
2017-08-10 20:05:57: debug:c:\source\master\include\compat.cpp:21: Created command: warn=used>=85% crit=used>=95% show-all "detail-syntax=%(type): Total: %(size) - Used: %(used) (%(used_pct)%) - Free: %(free) (%(free_pct)%)" type=physical

NRPE part returning data without problems.
thx for any idea
bolson

Re: No data was received from host!

Post by bolson »

Hello Robert,

Open c:\program files\nsclient++\nsclient.ini and make sure your Nagios server's ip address is in the allowed hosts directive.

From the command line on the Nagios server, run:

Code: Select all

telnet windows-box-ip 12489
And post the result.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: No data was received from host!

Post by robert.anderko »

yes, parameter is configured

results:
[root@xxx~]# telnet windows.box 12489
Trying windows.box...
Connected to windows.box.
Escape character is '^]'.
^]
telnet> ^C
bolson

Re: No data was received from host!

Post by bolson »

Run this from the command line on the Nagios server:

Code: Select all

/usr/local/nagios/libexec/check_nt -H <ip_address>  -p 12489 -v MEMUSE
And post the result.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: No data was received from host!

Post by robert.anderko »

/usr/local/nagios/libexec/check_nt -H 10.82.186.11 -p 12489 -v MEMUSE
No data was received from host!
could not fetch information from server

but NRPE

/usr/local/nagios/libexec/check_nrpe -H 10.82.186.11 -p 5666 -c CheckMEM -a MaxWarn=85% MaxCrit=95% ShowAll type=physical
physical: Total: 93.749GB - Used: 18.033GB (19%) - Free: 75.716GB (80%)|'physical'=18.03263GB;79.68671;89.06162;0;93.74908 'physical %'=19%;85;95;0;100
bolson

Re: No data was received from host!

Post by bolson »

Please attach the nsclient.log file from c:\program files\nsclient++
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: No data was received from host!

Post by robert.anderko »

logfile
You do not have the required permissions to view the files attached to this post.
robert.anderko
Posts: 33
Joined: Thu Apr 24, 2014 5:38 pm

Re: No data was received from host!

Post by robert.anderko »

error:c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:396: Failed to find wrapping for type: exe

PS C:\Program Files\NSClient++> ./nscp.exe client --query alias_cpu
E ext-script Failed to find wrapping for type: exe
c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:396
E w32system Failed to get Mutex for: cput
c:\source\nscp\modules\CheckSystem\pdh_thread.cpp:280
E w32system Failed to get Mutex for: cput
c:\source\nscp\modules\CheckSystem\pdh_thread.cpp:280
PS C:\Program Files\NSClient++> ./nscp.exe client --query alias_cpu
E ext-script Failed to find wrapping for type: exe
c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:396
E w32system Failed to get Mutex for: cput
c:\source\nscp\modules\CheckSystem\pdh_thread.cpp:280
E w32system Failed to get Mutex for: cput
c:\source\nscp\modules\CheckSystem\pdh_thread.cpp:280
E w32system Failed to get Mutex for: cput
c:\source\nscp\modules\CheckSystem\pdh_thread.cpp:280
OK: CPU load is ok.|

This issue is reported in couple of servers and nsclient works fine. I think not related to reported issue
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: No data was received from host!

Post by tgriep »

The check_nt and the check_nrpe plugins use separate settings in the nsclient.ini file so to troubleshoot this issue, we would have to see your nsclient.ini file from that server.
Can you post it here?
Also, make sure the firewall allows inbound traffic on port 12489 on that server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bolson

Re: No data was received from host!

Post by bolson »

Please run the following command from the Nagios server and post the output. We want to verify that this isn't a firewall issue.

Code: Select all

nmap <windows-box-ip> -p T:12489
Locked