Hello,
We've updated our NSClient++ from version 0.3.9 to 0.5.2.35 and we're seeing some Unknown errors.
Specifically with Messages Pending Routing and Remote Queue Length within Exchange checks. They are throwing this error after the update: NSClient - ERROR: No performance data from command: check_pdh
I really hope this isn't the case but, I'll I can find in terms of help is that Nagios doesn't support version 0.5.x.
Here's the check that's being ran for Messages Pending Routing: check_xi_service_nsclient!!COUNTER!-l "\\SMTP Server(_Total)\\Messages Pending Routing" -w 25 -c 100!!!!!
We may need adjust the check, but I can't find anything online about it.
Thank you.
NSClient++ 0.5.2.35 - NSClient - ERROR: No performance data
Re: NSClient++ 0.5.2.35 - NSClient - ERROR: No performance d
Please attach a sanitized copy of your nsclient.ini from the remote system that you upgraded so that we can review it.
Nagios XI definitely supports NSClient++ 0.5.X, what does the nsclient.log show on the system after you've restarted the NSClient++ service and run the check a couple times?
Additionally, you might try doing this, I've seen that resolve it a number of times:
https://support.microsoft.com/en-us/hel ... ver-2008-6
Nagios XI definitely supports NSClient++ 0.5.X, what does the nsclient.log show on the system after you've restarted the NSClient++ service and run the check a couple times?
Additionally, you might try doing this, I've seen that resolve it a number of times:
https://support.microsoft.com/en-us/hel ... ver-2008-6
Re: NSClient++ 0.5.2.35 - NSClient - ERROR: No performance d
Attached is the .ini
Here is the output in the log file:
rce\master\modules\NSClientServer\NSClientServer.cpp:302: Real command: check_pdh counter=\SMTP Server(_Total)\Remote Queue Length
2019-04-10 00:35:59: error:c:\source\master\modules\CheckSystem\check_pdh.cpp:244: Exception in Failed to poll counter: \SMTP Server(_Total)\Remote Queue Length PdhAddCounter failed: c0000bb8: The specified object was not found on the computer.
rce\master\modules\NSClientServer\NSClientServer.cpp:302: Real command: check_pdh counter=\SMTP Server(_Total)\Messages Pending Routing
2019-04-10 00:36:41: error:c:\source\master\modules\CheckSystem\check_pdh.cpp:244: Exception in Failed to poll counter: \SMTP Server(_Total)\Messages Pending Routing PdhAddCounter failed: c0000bb8: The specified object was not found on the computer.
Here is the output in the log file:
rce\master\modules\NSClientServer\NSClientServer.cpp:302: Real command: check_pdh counter=\SMTP Server(_Total)\Remote Queue Length
2019-04-10 00:35:59: error:c:\source\master\modules\CheckSystem\check_pdh.cpp:244: Exception in Failed to poll counter: \SMTP Server(_Total)\Remote Queue Length PdhAddCounter failed: c0000bb8: The specified object was not found on the computer.
rce\master\modules\NSClientServer\NSClientServer.cpp:302: Real command: check_pdh counter=\SMTP Server(_Total)\Messages Pending Routing
2019-04-10 00:36:41: error:c:\source\master\modules\CheckSystem\check_pdh.cpp:244: Exception in Failed to poll counter: \SMTP Server(_Total)\Messages Pending Routing PdhAddCounter failed: c0000bb8: The specified object was not found on the computer.
You do not have the required permissions to view the files attached to this post.
Re: NSClient++ 0.5.2.35 - NSClient - ERROR: No performance d
Please try rebuilding the counters, the developer of NSClient++ also recommends it here:
https://forums.nsclient.org/t/failed-to ... ers/2283/2
https://forums.nsclient.org/t/failed-to ... ers/2283/2
Re: NSClient++ 0.5.2.35 - NSClient - ERROR: No performance d
I think we got this one figured out internally.
The counter we were using doesn't work with Exchange Server 2013+, but somehow the old NSClient++ version we had wasn't returning an Unknown or Critical... it was just returning 0 all the time.
When we updated the NSClient++ it returned properly as Unknown because the counter was invalid.
The correct commands for Exchange 2013+ are as follows:
Messages Pending Routing -
-l "\\MSExchangeTransport Queues(_total)\\Retry Remote Delivery Queue Length" -w 25 -c 100
Remote Queue Length -
-l "\\MSExchangeTransport Queues(_total)\\Active Remote Delivery Queue Length" -w 25 -c 50
The counter we were using doesn't work with Exchange Server 2013+, but somehow the old NSClient++ version we had wasn't returning an Unknown or Critical... it was just returning 0 all the time.
When we updated the NSClient++ it returned properly as Unknown because the counter was invalid.
The correct commands for Exchange 2013+ are as follows:
Messages Pending Routing -
-l "\\MSExchangeTransport Queues(_total)\\Retry Remote Delivery Queue Length" -w 25 -c 100
Remote Queue Length -
-l "\\MSExchangeTransport Queues(_total)\\Active Remote Delivery Queue Length" -w 25 -c 50
Re: NSClient++ 0.5.2.35 - NSClient - ERROR: No performance d
Nice find, thanks for posting your solution! I was going to ask you about that but thought the check was working prior based on the information you posted so didn't think it was relevant. Okay to lock this and mark it as resolved?
Re: NSClient++ 0.5.2.35 - NSClient - ERROR: No performance d
This can be locked. Thank you.