Page 2 of 2

Re: Monitoring Exchange 2016

Posted: Wed Jan 02, 2019 12:05 pm
by ssax
On your service you would use:

Check command: check_xi_service_nsclient
$ARG1$: password
$ARG2$: COUNTER
$ARG3$: -l "\\SMTP Server(_Total)\\Remote Queue Length" -w 15 -c 50

For testing from the command line:

Code: Select all

/usr/local/nagios/libexec/check_nt -H X.X.X.X -s "password" -p 12489 -v COUNTER -l "\\SMTP Server(_Total)\\Remote Queue Length" -w 15 -c 50

Re: Monitoring Exchange 2016

Posted: Wed Jan 02, 2019 1:16 pm
by Kxfrancois
I have tried to use counter in the past and it does not work. I am now using NPRE. Is there a way to convert the syntax you sent me to work with NRPE?

Re: Monitoring Exchange 2016

Posted: Wed Jan 02, 2019 3:15 pm
by npolovenko
@Kxfrancois, If the counter doesn't work that means your server likely doesn't support it. But here's the NRPE syntax:
./check_nrpe -H X.X.X.X -c check_pdh -a "counter=\\SMTP Server(_Total)\\Remote Queue Length" 'warn=value<1000' 'crit=value<500' 'perf-config=*(suffix:none)'
https://support.nagios.com/kb/article/p ... s-779.html

Re: Monitoring Exchange 2016

Posted: Thu Jan 03, 2019 7:31 am
by Kxfrancois
/usr/local/nagios/libexec/check_nrpe -H burexc002 -t 30 -c check_pdh -a "counter=\\SMTP Server(_Total)\\Remote Queue Length" 'warn=value<1000' 'crit=value<500' 'perf-config=*(suffix:none)'

Failed to poll counter: \SMTP Server(_Total)\Remote Queue Length PdhAddCounter failed: c0000bb8: The specified object was not found on the computer.

Re: Monitoring Exchange 2016

Posted: Thu Jan 03, 2019 12:23 pm
by npolovenko
@Kxfrancois, You need to contact the manufacturer or refer to the Exchange 2016 manual to see the list of supported counters on your server. Unfortunately, I don't have the Exchange 2016 in the lab to test this command against.

Re: Monitoring Exchange 2016

Posted: Fri Jan 04, 2019 8:50 am
by Kxfrancois
I have been looking every where to try to find the exchange 2016 counter check for remote queue length.

The old command that no longer works is -l "\\SMTP Server(_Total)\\Remote Queue Length" -w 15 -c 30.

Does anyone have the correct check for exchange 2016?

thanks

Re: Monitoring Exchange 2016

Posted: Fri Jan 04, 2019 9:37 am
by scottwilkerson
You would need to see what counters are available on your server, something like this may find what you are looking for

Run the following from Windows cmd.exe to get a list of counters that contain "SMTP"

Code: Select all

typeperf.exe -q |findstr "SMTP"