Page 1 of 1

No data was received from host!

Posted: Mon Nov 20, 2017 4:41 am
by sac1472
Randomly, i am receiving warning alerts for multiple windows services. & generating bulk alerts which didn't mean anything.

Also, I am able to access those servers, there is no high cpu usage, everything is fine. still getting alerts like below :

****Nagios XI Incident*****
Type:service
Time:2017-11-18 03:07:26
Host:TASPLTCWINVP835
Service: CPU Usage
Status: WARNING
Output: No data was received from host!

can you provide any solution to overcome this problem?
Thanks in advance

Re: No data was received from host!

Posted: Mon Nov 20, 2017 2:14 pm
by dwasswa
Hi @sac1472,

What monitoring agent are you using for checks on your windows machine; NSCLient or NCPA?

How do you have your check commands defined on the Nagios XI server?

Please PM your system profile by following the steps below:

Go to Admin >> System Profile >> Download Profile
Download_system_profile.PNG
Then, PM the system profile after downloading it.

Re: No data was received from host!

Posted: Tue Nov 21, 2017 3:29 am
by sac1472
We are using NSclient to monitor windows servers. "randomly getting alerts like NO data received from host."
see attached screenshot for better understanding.

while nsclient.log file on win server contains error like :

2017-11-21 08:10:30: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:10:32: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &2&5
2017-11-21 08:10:32: debug:modules\NSClientListener\NSClientListener.cpp:171: Data: 5
2017-11-21 08:10:32: debug:NSClient++.cpp:1144: Injecting: checkCPU: 5, nsclient
2017-11-21 08:10:32: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: 蕈: No value has been collected yet
2017-11-21 08:10:32: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get data for 5 perhaps we don't collect data this far back?'
2017-11-21 08:10:32: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:10:36: debug:modules\NSCAAgent\NSCAThread.cpp:240: Nothing to report, thus not reporting anything...
2017-11-21 08:11:13: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &3
2017-11-21 08:11:13: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:11:13: debug:NSClient++.cpp:1144: Injecting: checkUpTime: nsclient
2017-11-21 08:11:13: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:11:13: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get value'
2017-11-21 08:11:13: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:11:36: debug:modules\NSCAAgent\NSCAThread.cpp:240: Nothing to report, thus not reporting anything...
2017-11-21 08:12:15: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &7
2017-11-21 08:12:15: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:12:15: debug:NSClient++.cpp:1144: Injecting: checkMem: nsclient
2017-11-21 08:12:15: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:12:15: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Failed to get PDH value.'
2017-11-21 08:12:15: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:12:30: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &2&5
2017-11-21 08:12:30: debug:modules\NSClientListener\NSClientListener.cpp:171: Data: 5
2017-11-21 08:12:30: debug:NSClient++.cpp:1144: Injecting: checkCPU: 5, nsclient
2017-11-21 08:12:30: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: 蕈: No value has been collected yet
2017-11-21 08:12:30: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get data for 5 perhaps we don't collect data this far back?'
2017-11-21 08:12:30: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:12:36: debug:modules\NSCAAgent\NSCAThread.cpp:240: Nothing to report, thus not reporting anything...
2017-11-21 08:13:11: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &3
2017-11-21 08:13:11: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:13:11: debug:NSClient++.cpp:1144: Injecting: checkUpTime: nsclient
2017-11-21 08:13:11: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:13:11: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get value'
2017-11-21 08:13:11: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:13:36: debug:modules\NSCAAgent\NSCAThread.cpp:240: Nothing to report, thus not reporting anything...
2017-11-21 08:14:13: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &7
2017-11-21 08:14:13: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:14:13: debug:NSClient++.cpp:1144: Injecting: checkMem: nsclient
2017-11-21 08:14:13: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:14:13: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Failed to get PDH value.'
2017-11-21 08:14:13: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:14:28: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &2&5
2017-11-21 08:14:28: debug:modules\NSClientListener\NSClientListener.cpp:171: Data: 5
2017-11-21 08:14:28: debug:NSClient++.cpp:1144: Injecting: checkCPU: 5, nsclient
2017-11-21 08:14:28: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: 蕈: No value has been collected yet
2017-11-21 08:14:28: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get data for 5 perhaps we don't collect data this far back?'
2017-11-21 08:14:28: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:14:36: debug:modules\NSCAAgent\NSCAThread.cpp:240: Nothing to report, thus not reporting anything...
2017-11-21 08:14:50: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &3
2017-11-21 08:14:50: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:14:50: debug:NSClient++.cpp:1144: Injecting: checkUpTime: nsclient
2017-11-21 08:14:50: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:14:50: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get value'
2017-11-21 08:14:50: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:15:04: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &7
2017-11-21 08:15:04: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:15:04: debug:NSClient++.cpp:1144: Injecting: checkMem: nsclient
2017-11-21 08:15:04: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:15:04: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Failed to get PDH value.'
2017-11-21 08:15:04: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:15:14: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &2&5
2017-11-21 08:15:14: debug:modules\NSClientListener\NSClientListener.cpp:171: Data: 5
2017-11-21 08:15:14: debug:NSClient++.cpp:1144: Injecting: checkCPU: 5, nsclient
2017-11-21 08:15:14: error:modules\CheckSystem\PDHCollector.cpp:271: Failed to get CPU value: 蕈: No value has been collected yet
2017-11-21 08:15:14: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Could not get data for 5 perhaps we don't collect data this far back?'
2017-11-21 08:15:14: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:15:28: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &5&ShowAll&BvSshServer
2017-11-21 08:15:28: debug:modules\NSClientListener\NSClientListener.cpp:171: Data: ShowAll&BvSshServer
2017-11-21 08:15:28: debug:NSClient++.cpp:1144: Injecting: checkServiceState: ShowAll, BvSshServer, nsclient
2017-11-21 08:15:28: debug:NSClient++.cpp:1180: Injected Result: OK 'BvSshServer: Started'
2017-11-21 08:15:28: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:15:32: debug:modules\NSClientListener\NSClientListener.cpp:146: Data: &7
2017-11-21 08:15:32: debug:modules\NSClientListener\NSClientListener.cpp:171: Data:
2017-11-21 08:15:32: debug:NSClient++.cpp:1144: Injecting: checkMem: nsclient
2017-11-21 08:15:32: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:15:32: debug:NSClient++.cpp:1180: Injected Result: WARNING 'ERROR: Failed to get PDH value.'
2017-11-21 08:15:32: debug:NSClient++.cpp:1181: Injected Performance Result: ''
2017-11-21 08:15:36: debug:modules\NSCAAgent\NSCAThread.cpp:240: Nothing to report, thus not reporting anything...
2017-11-21 08:15:39: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.328 2011-08-16
2017-11-21 08:15:48: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.328 2011-08-16
2017-11-21 08:15:56: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.328 2011-08-16
2017-11-21 08:15:57: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.328 2011-08-16
2017-11-21 08:15:57: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: c:\Program Files\NSClient++\\nsclient.log
2017-11-21 08:15:57: error:modules\CheckSystem\PDHCollector.cpp:140: Failed to open performance counters: \Processor(_total)\% Processor Time: PdhAddCounter failed: The specified object was not found on the computer. (C0000BB8)
2017-11-21 08:15:57: error:modules\CheckSystem\PDHCollector.cpp:185: Failed to open performance counters: \Memory\Commit Limit: PdhAddCounter failed: The specified object was not found on the computer. (C0000BB8)
2017-11-21 08:15:57: error:modules\CheckSystem\PDHCollector.cpp:219: No performance counters were found we will not wait for the end instead...
2017-11-21 08:16:03: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:16:10: error:modules\CheckSystem\PDHCollector.cpp:334: Failed to get MEM_CMT value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:16:19: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:17:54: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.328 2011-08-16
2017-11-21 08:18:14: debug:CACHENSClient++.cpp:557: Attempting to start NSCLient++ - 0.3.9.328 2011-08-16
2017-11-21 08:18:14: message:CACHEmodules\FileLogger\FileLogger.cpp:87: Log path is: c:\Program Files\NSClient++\\nsclient.log
2017-11-21 08:18:14: error:modules\CheckSystem\PDHCollector.cpp:328: Failed to get Mutex!
2017-11-21 08:18:18: error:modules\CheckSystem\PDHCollector.cpp:293: Failed to get UPTIME value: <UN ATTACHED>: No value has been collected yet
2017-11-21 08:18:39: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.328 2011-08-16
2017-11-21 08:18:52: message:modules\FileLogger\FileLogger.cpp:86: Starting to log for: NSClient++ - 0.3.9.328 2011-08-16

Re: No data was received from host!

Posted: Tue Nov 21, 2017 2:19 pm
by kyang
Could you show us your nsclient.ini file?

Usually located at:

Code: Select all

C:/Program Files/NSClient++
Could you also send in your Nagios XI Profile? On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me.

Just so we could see how you are defining the service checks.

Re: No data was received from host!

Posted: Wed Nov 22, 2017 3:08 am
by sac1472
see attached NSC.ini file.

i have PM nagios Profile to you @kyang

Re: No data was received from host!

Posted: Wed Nov 22, 2017 12:50 pm
by kyang
Thanks for the files!

Could you try running it on your XI machine? Is anything returned?

Code: Select all

/usr/local/nagios/libexec/check_nt -H <IPforTASPLTCWINVP835> -s "<passwordIfUsed>" -p 12489 -v CPULOAD -l 5,80,90
Let us know the output. Thanks.

Re: No data was received from host!

Posted: Thu Nov 23, 2017 2:57 am
by sac1472
Capture.PNG
see it's working as usual but would gives error randomly like : "NO data received from host." That's my problem.

It works most times but gives error randomly across our platform.

Re: No data was received from host!

Posted: Mon Nov 27, 2017 12:28 pm
by kyang
On your other Window Servers, do you have the same version of NSClient++? 0.3.9?

Or are they running a different version?

Here's something I found, in regards to CPU not being collected.

https://forums.nsclient.org/t/cpu-and-m ... oring/3413