mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
244 stars 94 forks source link

OP5 - Failed to add counter: Submission Queue Length PdhAddCounter failed: c0000bb8: The specified object was not found on the computer. #652

Open danielvandertuin opened 4 years ago

danielvandertuin commented 4 years ago

Unknown service Exchange Submission Queue Length in the OP5 monitor after installing Exchange Server 2016 CU 14.

Template: default-service Service_description: Exchange Submission Queue length Check_command: a_check_win_counter_title Check_command_args: $_HOSTCUSTOMPORT$!Submission Queue Length!\MSExchangeTransport Queues(_total)\Submission Queue Length!MaxWarn=15 MaxCrit=40 File_id: /etc/services.cfg

When checking if the counter is present so it can be used, the following command is used: Get-Counter "\MSExchangeTransport Queues(_total)\Submission Queue Length"

This returns in valid counters (default: 0)

But the output shows in OP5:

Failed to add counter: Submission Queue Length PdhAddCounter failed: c0000bb8: The specified object was not found on the computer.

T

danielvandertuin commented 4 years ago

Also tried other counter:

$_HOSTCUSTOMPORT$!Submission Queue Length!\\MSExchangeTransport Queues(_total)\\Active Remote Delivery Queue Length!MaxWarn=15 MaxCrit=40 Result: USER1/check_nrpe -s -H DNSHOSTNAME -p 5668 -t 20 -c CheckCounter -a "Counter:Submission Queue Length=\MSExchangeTransport Queues(_total)\Retry Remote Delivery Queue Length" ShowAll MaxWarn=15 MaxCrit=40 Result code: UNKNOWN Failed to add counter: Submission Queue Length PdhAddCounter failed: c0000bb9: The specified counter could not be found.

$_HOSTCUSTOMPORT$!Submission Queue Length!\\MSExchangeTransport Queues(_total)\\Active Mailbox Delevery Queue Length!MaxWarn=15 MaxCrit=40 Result: USER1/check_nrpe -s -H DNSHOSTNAME -p 5668 -t 20 -c CheckCounter -a "Counter:Submission Queue Length=\MSExchangeTransport Queues(_total)\Active Remote Delivery Queue Length" ShowAll MaxWarn=15 MaxCrit=40 Result code: UNKNOWN Failed to add counter: Submission Queue Length PdhAddCounter failed: c0000bb9: The specified counter could not be found.

$_HOSTCUSTOMPORT$!Submission Queue Length!\\MSExchangeTransport Queues(_total)\\Active Mailbox Delevery Queue Length!MaxWarn=15 MaxCrit=40 Result: USER1/check_nrpe -s -H DNSHOSTNAME -p 5668 -t 20 -c CheckCounter -a "Counter:Submission Queue Length=\MSExchangeTransport Queues(_total)\Active Mailbox Delevery Queue Length" ShowAll MaxWarn=15 MaxCrit=40 Result code: UNKNOWN Failed to add counter: Submission Queue Length PdhAddCounter failed: c0000bb9: The specified counter could not be found.