Page 1 of 1

exchange 2013 message queue monitoring

Posted: Wed Mar 16, 2016 3:59 am
by bladezz
Hi I'm new to Nagios and looking at monitoring the Remote Queue Length and Messages Pending Routing I have used the Nagios xi exchange wizard and currently get the below errors logged in nsclient ++

2016-03-10 10:42:28: error:c:\source\nscp\modules\CheckSystem\check_pdh.cpp:250: Exception in Failed to poll counter: \SMTP Server(_Total)\Messages Pending Routing PdhAddCounter failed: c0000bb8: The specified object was not found on the computer. I get this on our DAG and on our cas server as well as the individual servers any ideas would be appreciated on the best way to monitor exchange 2013.

Re: exchange 2013 message queue monitoring

Posted: Wed Mar 16, 2016 3:23 pm
by hsmith
What version of NSClient is this?

Re: exchange 2013 message queue monitoring

Posted: Thu Mar 17, 2016 3:22 am
by bladezz
I have downgraded the nsclient to version 3.9.328 and now get an ok and a message count of 0 for Messages Pending Routing and Remote Queue Length
if I use the command get-transportservice | Get-Queue -Filter {MessageCount -gt 5} on exchange I see the following message count

DeliveryType Status MessageCount
ShadowRedundancy Ready 6074
ShadowRedundancy Ready 6001
ShadowRedundancy Ready 5971

the command in Nagios to check this is
check_xi_service_nsclient!Password!COUNTER!-l "\\SMTP Server(_Total)\\Remote Queue Length" -w 25 -c 50
I would expect to see an actual count rather than it saying ok 0

Re: exchange 2013 message queue monitoring

Posted: Thu Mar 17, 2016 1:10 pm
by rkennedy
Can you post your NSClient++ configuration file for us to look at?

Re: exchange 2013 message queue monitoring

Posted: Fri Apr 08, 2016 1:34 pm
by bladezz
Yes will post on Monday when back in office

Re: exchange 2013 message queue monitoring

Posted: Fri Apr 08, 2016 1:57 pm
by hsmith
Thank you.

Re: exchange 2013 message queue monitoring

Posted: Tue Apr 12, 2016 4:22 am
by bladezz
please find attached my nsclient++

the command im using is check_xi_service_nsclient!Pukka118!COUNTER!-l -p 12849 "\\SMTP Server(_Total)\\Messages Pending Routing" -w 25 -c 100

Re: exchange 2013 message queue monitoring

Posted: Tue Apr 12, 2016 2:36 pm
by hsmith
Can you expand out the SMTP Server(_Total)\\Messages Pending Routing perf counter in perfmon and show us a screenshot? It may not match up with exactly what the wizard is looking for, in which case we'll need to edit it.

Re: exchange 2013 message queue monitoring

Posted: Wed Apr 13, 2016 5:54 am
by bladezz
Hi,
It seems the counters have changed in ms Exchange 2013 so your right that the counters may be incorrect I have found a list of counters on TechNet so will probably need to just amend to look at the new counters.

Re: exchange 2013 message queue monitoring

Posted: Wed Apr 13, 2016 10:42 am
by rkennedy
Were you able to get it working with the new counter names?