Profile received and shared with the fellow Nagios Techs.
Lets do some changes to the NSClient++ agent's ini file and see if you can get it to work consistently for you.
Edit the nsclient.ini file and under this section
Add this line to increase the time out to 120 seconds.
Then add this to the bottom to the ini file to enable debugging in the nsclient.log file.
Code: Select all
; Configure log properties.
[/settings/log]
; LOG LEVEL - Log level to use. Available levels are error,warning,info,debug,trace
level = debug
; FILENAME - The file to write log data to. Set this to none to disable log to file.
file name = nsclient.log
; DATEMASK - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve.
date format = %Y-%m-%d %H:%M:%S
Save and restart the NSClient++ agent.
Then the next time you get the No data or Fetch error, look in the nsclient.log file and see what the error is and resolve it is you can.
Most of the time we have heard about this type of failure, it is because the network between the Nagios server and the Windows server is NATing the IP address and to fix it, we have had to add the IP address in the device that is NATing the traffic and that fixed it.
Can you describe the path between the Nagios server and the Windows Host?
If the path is going through a device, try adding it's IP address to it and see if that helps.