Exchange 2010 Remote Queue Length Always 0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
heritages
Posts: 58
Joined: Thu Jan 16, 2014 11:55 am

Exchange 2010 Remote Queue Length Always 0

Post by heritages »

Hello,

I used the Monitoring Wizard to setup Exchange 2010 monitoring. After doing so I noticed that the Remote Queue Length service always reports the queue at 0 even though I see that there are messages in the queue when the service is run. Also noticed that there isn't a graph of results and therefore i'm unable to identify if it ever reports anything but 0.

How can I ensure that this is working? Our environment has 225 active mailboxes and there should be times when the queue is more than 0.

Same applies to the Messages Pending Routing monitor. It is also always 0 with no graph.

Remote Queue Length Config

Code: Select all

###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2014-03-20 09:38:50
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define service {
	host_name			Mis1MsMf01,Mis1MsMf02
	service_description		SVC - Exchange Remote Queue Length
	use				xiwizard_windowsserver_nsclient_service
	check_command			check_xi_service_nsclient!S3rv3rk3y!COUNTER!-l "\\SMTP Server(_Total)\\Remote Queue Length" -w 25 -c 50!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contact_groups			IT Infrastructure 24-7 Email
	_xiwizard			exchange
	register			1
	}	

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
Messages Pending Routing Config

Code: Select all

###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2014-03-20 09:37:55
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define service {
	host_name			Mis1MsMc01,Mis1MsMc02,Mis1MsMf01,Mis1MsMf02
	service_description		SVC - Exchange Messages Pending Routing
	use				xiwizard_windowsserver_nsclient_service
	check_command			check_xi_service_nsclient!S3rv3rk3y!COUNTER!-l "\\SMTP Server(_Total)\\Messages Pending Routing" -w 25 -c 100!!!!!
	max_check_attempts		5
	check_interval			5
	retry_interval			1
	check_period			xi_timeperiod_24x7
	notification_interval		60
	notification_period		xi_timeperiod_24x7
	contact_groups			IT Infrastructure 24-7 Email
	_xiwizard			exchange
	register			1
	}	

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Exchange 2010 Remote Queue Length Always 0

Post by slansing »

Has it ever raised above '0'? It is entirely possible, based on the traffic over your exchange server, that nagios is simply checking between when the queue spikes up, and drops. I would recommend waiting for the queue to grow, and then manually running a check either from the command line, or via "Schedule Immediate Check" from the service's detail's page. Let us know if you need assistance with this, and what your findings are.
heritages
Posts: 58
Joined: Thu Jan 16, 2014 11:55 am

Re: Exchange 2010 Remote Queue Length Always 0

Post by heritages »

I've already done that and even though I see the queue at say 7 the immediate change results at 0. That's why I have the impression that something isn't right.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Exchange 2010 Remote Queue Length Always 0

Post by WillemDH »

And what if you try with nrpe instead of check_nt?
See https://www.nsclient.org/nscp/wiki/Chec ... eckCounter for documentation.

I'm using nrpe to monitor all kinds of Exchange 2010 related counters. Seems to work fine. You could temporarily run them together and compare.

Willem
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Exchange 2010 Remote Queue Length Always 0

Post by sreinhardt »

I would agree with Willem here, it's entirely possible that the baked in perf counter functions are not properly handling the path to exchange counters. In addition to nrpe, I will have a powershell script specifically for NCPA and NSclient relating to performance counters within the next few days that I can share and you can give a try if you like.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
heritages
Posts: 58
Joined: Thu Jan 16, 2014 11:55 am

Re: Exchange 2010 Remote Queue Length Always 0

Post by heritages »

i'm taking a look now at trying to get the nrpe counters working.

I"ll definitely take a look at the powershell script when you have it too.

Thanks
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Exchange 2010 Remote Queue Length Always 0

Post by WillemDH »

Also looking forward to have a look at your Powershell script...
Nagios XI 5.8.1
https://outsideit.net
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Exchange 2010 Remote Queue Length Always 0

Post by tmcdonald »

heritages, let us know how NRPE works out.

I've made a reminder to poke sreinhardt about the script every few days and will get back to you when he has it :D
Former Nagios employee
Locked