No data was received from host!
-
robert.anderko
- Posts: 33
- Joined: Thu Apr 24, 2014 5:38 pm
Re: No data was received from host!
[root@mon01 ~]# nmap 10.82.186.11 -p 12489
Starting Nmap 6.47 ( http://nmap.org ) at 2017-08-11 03:04 CEST
Nmap scan report for server (10.82.186.11)
Host is up (0.00059s latency).
PORT STATE SERVICE
12489/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
[root@mon01 ~]#
I am sure, without network problems/issues...
Starting Nmap 6.47 ( http://nmap.org ) at 2017-08-11 03:04 CEST
Nmap scan report for server (10.82.186.11)
Host is up (0.00059s latency).
PORT STATE SERVICE
12489/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
[root@mon01 ~]#
I am sure, without network problems/issues...
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: No data was received from host!
are you using NAT at all?
generally, if there is a valid connection that's refused by the client, you should see a verbose message in the nsclient.log. In your case there appears to be nothing.
what happens if you run it with a strace in front of it? any good info outputted?
the other option may be running tcpdump / wireshark to see if packets are received.
generally, if there is a valid connection that's refused by the client, you should see a verbose message in the nsclient.log. In your case there appears to be nothing.
what happens if you run it with a strace in front of it? any good info outputted?
the other option may be running tcpdump / wireshark to see if packets are received.
Re: No data was received from host!
Can you post the nsclient.ini file from that server so we can view the settings for the agent?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
robert.anderko
- Posts: 33
- Joined: Thu Apr 24, 2014 5:38 pm
Re: No data was received from host!
my nsclient.ini
You do not have the required permissions to view the files attached to this post.
Re: No data was received from host!
The nsclient.ini file looks like it should work but I do have a test you can run on the Windows system
Login to the Windows system as an administrator and open a command prompt.
Change to the following directory
Run the following command and post the output.
That should printout any errors if any.
What version of NSClient++ do you have installed on the Windows server?
If you are running a newer 5.x.x version, there may be a bug and that is why the check_nt command is failing.
I suggest using the latest stable 4.4.xx version which you can download from the following link.
http://nsclient.org/download/0.4.4/
When you reinstall, remove the current version, delete the NSClient++ folder to make sure it is a fresh install and then install the new version.
Try that and post how it works for you.
Login to the Windows system as an administrator and open a command prompt.
Change to the following directory
Code: Select all
C:\Program Files\NSClient++Code: Select all
nscp testWhat version of NSClient++ do you have installed on the Windows server?
If you are running a newer 5.x.x version, there may be a bug and that is why the check_nt command is failing.
I suggest using the latest stable 4.4.xx version which you can download from the following link.
http://nsclient.org/download/0.4.4/
When you reinstall, remove the current version, delete the NSClient++ folder to make sure it is a fresh install and then install the new version.
Try that and post how it works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
robert.anderko
- Posts: 33
- Joined: Thu Apr 24, 2014 5:38 pm
Re: No data was received from host!
Code: Select all
[root@ceeprgpmon01 ~]# /usr/local/nagios/libexec/check_nt -H 10.82.186.11 -p 12489 -v USEDDISKSPACE -l C
No data was received from host!
could not fetch information from serverCode: Select all
[root@ceeprgpmon01 ~]# tcpdump host 10.82.186.11
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on bond0, link-type EN10MB (Ethernet), capture size 65535 bytes
09:13:03.467894 IP ceeprgpmon01.49808 > cz-prgfts011.12489: Flags [S], seq 1283576342, win 29200, options [mss 1460,sackOK,TS val 2557215642 ecr 0,nop,wscale 7], length 0
09:13:03.471152 IP cz-prgfts01112489 > ceeprgpmon01.49808: Flags [S.], seq 3277834892, ack 1283576343, win 8192, options [mss 1460,nop,wscale 8,sackOK,TS val 56980397 ecr 2557215642], length 0
09:13:03.471170 IP ceeprgpmon01.49808 > cz-prgfts01112489: Flags [.], ack 1, win 229, options [nop,nop,TS val 2557215645 ecr 56980397], length 0
09:13:03.471184 IP ceeprgpmon01.49808 > cz-prgfts011.12489: Flags [P.], seq 1:9, ack 1, win 229, options [nop,nop,TS val 2557215645 ecr 56980397], length 8
09:13:03.525937 IP cz-prgfts011.12489 > ceeprgpmon01.49808: Flags [.], ack 9, win 514, options [nop,nop,TS val 56980403 ecr 2557215645], length 0
09:13:12.480243 IP ceeprgpmon01.49808 > cz-prgfts01112489: Flags [F.], seq 9, ack 1, win 229, options [nop,nop,TS val 2557224654 ecr 56980403], length 0
09:13:12.482728 IP cz-prgfts01112489 > ceeprgpmon01.49808: Flags [.], ack 10, win 514, options [nop,nop,TS val 56981298 ecr 2557224654], length 0
09:13:12.482843 IP cz-prgfts011.12489 > ceeprgpmon01.49808: Flags [F.], seq 1, ack 10, win 514, options [nop,nop,TS val 56981299 ecr 2557224654], length 0
09:13:12.482859 IP ceeprgpmon01.49808 > cz-prgfts01112489: Flags [.], ack 2, win 229, options [nop,nop,TS val 2557224657 ecr 56981299], length 0
^C
9 packets captured
125 packets received by filter
45 packets dropped by kernel-
robert.anderko
- Posts: 33
- Joined: Thu Apr 24, 2014 5:38 pm
Re: No data was received from host!
thx all for response,
today i have installed NSclient 0.5.0.62, but same issues i have with version 0.4.4.19
output from nscp test
today i have installed NSclient 0.5.0.62, but same issues i have with version 0.4.4.19
output from nscp test
Code: Select all
PS C:\Program Files\NSClient++> .\nscp.exe test
L client Module: CommandClient
L client Command:
L client Extra Query:
L client Mode: 3
L client Boot: 1
L client Load All: 0
L client Warning module and boot specified only THAT module will be loaded
L client Arguments:
D core NSClient++ 0.5.0.62 2016-09-14 x64 Loading settings and logger...
D core Settings not ready so we cant lookup: base-path
D core Settings not ready so we cant lookup: exe-path
D settings Boot.ini found in: C:\Program Files\NSClient++/boot.ini
D core Settings not ready so we cant lookup: shared-path
D settings Activating: ini://${shared-path}/nsclient.ini
D settings Creating instance for: ini://${shared-path}/nsclient.ini
D core Settings not ready so we cant lookup: shared-path
D settings Loading: C:\Program Files\NSClient++/nsclient.ini
D core NSClient++ 0.5.0.62 2016-09-14 x64 booting...
D core Booted settings subsystem...
D core On crash: restart: NSCP
D core Archiving crash dumps in: C:\Program Files\NSClient++/crash-dumps
D core booting::loading plugins
D core Found: CheckDisk
D core Found: CheckEventLog
D core Found: CheckExternalScripts
D core Found: CheckHelpers
D core Found: CheckNSCP
D core Found: CheckSystem
D core Found: NRPEServer
D core Found: NSClientServer
D core C:\Program Files\NSClient++/modules\CheckDisk.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckDisk.dll
D core C:\Program Files\NSClient++/modules\CheckEventLog.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckEventLog.dll
D core C:\Program Files\NSClient++/modules\CheckExternalScripts.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckExternalScripts.dll
D core C:\Program Files\NSClient++/modules\CheckHelpers.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckHelpers.dll
D core C:\Program Files\NSClient++/modules\CheckNSCP.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckNSCP.dll
D core C:\Program Files\NSClient++/modules\CheckSystem.dll.dll
D core adding C:\Program Files\NSClient++/modules\CheckSystem.dll
D core C:\Program Files\NSClient++/modules\NRPEServer.dll.dll
D core adding C:\Program Files\NSClient++/modules\NRPEServer.dll
D core C:\Program Files\NSClient++/modules\NSClientServer.dll.dll
D core adding C:\Program Files\NSClient++/modules\NSClientServer.dll
D core Loading plugin: CheckDisk
D core Loading plugin: CheckEventLog
D core Loading plugin: CheckExternalScripts
D core Loading plugin: CheckHelpers
D core Loading plugin: CheckNSCP
D check_nscp Crash folder is: C:\Program Files\NSClient++/crash-dumps
D core Loading plugin: CheckSystem
D core Loading plugin: NRPEServer
D nrpe Allowed hosts definition: 10.43.174.4(255.255.255.255)
D nrpe Server config: address: :5666, ssl enabled: none, no certificate, dh: C:\Program Files\NSClient++/security/
nrpe_dh_512.pem, ciphers: ADH, ca: C:\Program Files\NSClient++/security/ca.pem, options:
D w32system Loading counter: disk_queue_length_0 C: = \\CZ-PRGFTS011\PhysicalDisk(0 C:)\% Disk Time
D w32system Loading counter: disk_queue_length_1 D: = \\CZ-PRGFTS011\PhysicalDisk(1 D:)\% Disk Time
D w32system Loading counter: disk_queue_length__Total = \\CZ-PRGFTS011\PhysicalDisk(_Total)\% Disk Time
D nrpe Binding to: [::]:5666(ipv6)
D nrpe Attempting to bind to: [::]:5666(ipv6)
D nrpe Binding to: 0.0.0.0:5666(ipv4), reopen: true, reuse: true
D nrpe Attempting to bind to: 0.0.0.0:5666(ipv4)
D core Loading plugin: NSClientServer
D check_nt Allowed hosts definition: 10.43.174.4(255.255.255.255)
D check_nt Binding to: [::]:12489(ipv6)
D check_nt Attempting to bind to: [::]:12489(ipv6)
D check_nt Binding to: 0.0.0.0:12489(ipv4), reopen: true, reuse: true
D check_nt Attempting to bind to: 0.0.0.0:12489(ipv4)
D core NSClient++ - 0.5.0.62 2016-09-14 Started!
D core C:\Program Files\NSClient++/modules\CommandClient.dll.dll
D core adding C:\Program Files\NSClient++/modules\CommandClient.dll
D core Loading plugin: CommandClient...
D cli Enter command to execute, help for help or exit to exit...
-
robert.anderko
- Posts: 33
- Joined: Thu Apr 24, 2014 5:38 pm
Re: No data was received from host!
after fresh installation of NSclient++ 0.4.4.19
Code: Select all
PS C:\Users\adm_randerko006> cd 'C:\Program Files\NSClient++'
PS C:\Program Files\NSClient++> .\nscp.exe test
L client Module: CommandClient
L client Command:
L client Extra Query:
L client Mode: 3
L client Boot: 1
L client Load All: 0
L client Warning module and boot specified only THAT module will be loaded
L client Arguments:
D core NSClient++ 0.4.4.19 2015-12-08 x64 Loading settings and logger...
D core Settings not ready so we cant lookup: base-path
D core Settings not ready so we cant lookup: exe-path
D settings Boot.ini found in: C:\Program Files\NSClient++/boot.ini
D core Settings not ready so we cant lookup: shared-path
D settings Activating: ini://${shared-path}/nsclient.ini
D settings Creating instance for: ini://${shared-path}/nsclient.ini
D core Settings not ready so we cant lookup: shared-path
D settings Loading: C:\Program Files\NSClient++/nsclient.ini
D core NSClient++ 0.4.4.19 2015-12-08 x64 booting...
D core Booted settings subsystem...
D core On crash: restart: NSCP
D core Archiving crash dumps in: c:\Program Files\NSClient++/crash-dumps
D core booting::loading plugins
D core Found: CheckDisk
D core Found: CheckEventLog
D core Found: CheckExternalScripts
D core Found: CheckHelpers
D core Found: CheckNSCP
D core Found: CheckSystem
D core Found: NRPEServer
D core Found: NSCAClient
D core Found: NSClientServer
D core Found: WEBServer
D core c:\Program Files\NSClient++/modules\CheckDisk.dll.dll
D core adding c:\Program Files\NSClient++/modules\CheckDisk.dll
D core c:\Program Files\NSClient++/modules\CheckEventLog.dll.dll
D core adding c:\Program Files\NSClient++/modules\CheckEventLog.dll
D core c:\Program Files\NSClient++/modules\CheckExternalScripts.dll.dll
D core adding c:\Program Files\NSClient++/modules\CheckExternalScripts.dll
D core c:\Program Files\NSClient++/modules\CheckHelpers.dll.dll
D core adding c:\Program Files\NSClient++/modules\CheckHelpers.dll
D core c:\Program Files\NSClient++/modules\CheckNSCP.dll.dll
D core adding c:\Program Files\NSClient++/modules\CheckNSCP.dll
D core c:\Program Files\NSClient++/modules\CheckSystem.dll.dll
D core adding c:\Program Files\NSClient++/modules\CheckSystem.dll
D core c:\Program Files\NSClient++/modules\NRPEServer.dll.dll
D core adding c:\Program Files\NSClient++/modules\NRPEServer.dll
D core c:\Program Files\NSClient++/modules\NSCAClient.dll.dll
D core adding c:\Program Files\NSClient++/modules\NSCAClient.dll
D core c:\Program Files\NSClient++/modules\NSClientServer.dll.dll
D core adding c:\Program Files\NSClient++/modules\NSClientServer.dll
D core c:\Program Files\NSClient++/modules\WEBServer.dll.dll
D core adding c:\Program Files\NSClient++/modules\WEBServer.dll
D core Loading plugin: CheckDisk
D core Loading plugin: CheckEventLog
D core Loading plugin: CheckExternalScripts
E ext-script Failed to find wrapping for type: exe
c:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:396
D core Loading plugin: CheckHelpers
D core Loading plugin: CheckNSCP
D check_nscp Crash folder is: c:\Program Files\NSClient++
D core Loading plugin: CheckSystem
D core Loading plugin: NRPEServer
D nrpe Allowed hosts definition: 10.43.174.4(255.255.255.255), 10.43.238.4(255.255.255.255)
D nrpe Binding to: [::]:5666(ipv6)
D nrpe Attempting to bind to: [::]:5666(ipv6)
D nrpe Binding to: 0.0.0.0:5666(ipv4), reopen: true, reuse: true
D nrpe Attempting to bind to: 0.0.0.0:5666(ipv4)
D core Loading plugin: NSCAClient
D core Loading plugin: NSClientServer
D check_nt Allowed hosts definition: 10.43.174.4(255.255.255.255), 10.43.238.4(255.255.255.255)
D check_nt Binding to: [::]:12489(ipv6)
D check_nt Attempting to bind to: [::]:12489(ipv6)
D check_nt Binding to: 0.0.0.0:12489(ipv4), reopen: true, reuse: true
D check_nt Attempting to bind to: 0.0.0.0:12489(ipv4)
D core Loading plugin: WEBServer
D web Using certificate: c:\Program Files\NSClient++/security/certificate.pem
D web Loading webserver on port: 8443s
E web No password set please run nscp web --help
c:\source\nscp\modules\WEBServer\WEBServer.cpp:662
D core NSClient++ - 0.4.4.19 2015-12-08 Started!
D core c:\Program Files\NSClient++/modules\CommandClient.dll.dll
D core adding c:\Program Files\NSClient++/modules\CommandClient.dll
D core Loading plugin: CommandClient.dll...
D cli Enter command to execute, help for help or exit to exit...Re: No data was received from host!
If there is any equipment that is between the Nagios XI server and that remote host that is doing Network Address Translation (NAT) then you would have to add that address to the Allowed Hosts option in the nsclient.ini file.
Try adding those addresses and restart the NSClient++ service to see if it works. If not, you will have to post the nsclient.log file for further analysis.
Try adding those addresses and restart the NSClient++ service to see if it works. If not, you will have to post the nsclient.log file for further analysis.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
robert.anderko
- Posts: 33
- Joined: Thu Apr 24, 2014 5:38 pm
Re: No data was received from host!
affected server is VM based on vmware. But another VMs on to same esx host, in same network works fine, without any issues with same config file...