Page 1 of 2

Plugins for queue email

Posted: Thu Jul 31, 2014 3:21 am
by pianunix
Hi,

Can we have a plugins that will monitor queue of mail on the server ?

Fyi we are using exim and qmail fro the mail server now.

Thanks.

Re: Plugins for queue email

Posted: Thu Jul 31, 2014 8:22 am
by eloyd
Have you looked at:

Code: Select all

/usr/local/nagios/libexec/check_mailq
?

Re: Plugins for queue email

Posted: Fri Aug 01, 2014 1:26 am
by pianunix
HI,

Yes i have seen this :

Code: Select all

# /usr/lib/nagios/plugins/check_mailq  -w 10 -c 20 -M exim
mailq: Mail queue is empty
OK: mailq (0) is below threshold (10/20)|unsent=0;10;20;0
but why the result was not the same as this command on the server :

Code: Select all

# exim -bpc
81
Can you fix or give the solution how are we gonna make the mail queue will have the same results ?

Thx

Re: Plugins for queue email

Posted: Fri Aug 01, 2014 2:32 am
by pianunix
One thing, on QMAIL when trying to monitor i still got this error :

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H server4210 -c check_mailq
Couldn't match /usr/sbin/qmail-qstat output
But when try this into the host server the result was correctly :

Code: Select all

/usr/lib/nagios/plugins/check_mailq -w 200 -c 400 -M qmail
CRITICAL: mailq is 575 (threshold c = 400)|unsent=575;200;400;0
Thanks.

Re: Plugins for queue email

Posted: Fri Aug 01, 2014 12:54 pm
by lmiltchev
How is "check_mailq" defined on the client? Can you show us the command definition?

Re: Plugins for queue email

Posted: Mon Aug 04, 2014 12:04 am
by pianunix
When doing on client side everything just rum smoothly

Code: Select all

# /usr/lib/nagios/plugins/check_mailq -w 200 -c 400 -M qmail
CRITICAL: mailq is 558 (threshold c = 400)|unsent=558;200;400;0
But when doing on monitor server wont run.

Thx

Re: Plugins for queue email

Posted: Mon Aug 04, 2014 10:12 am
by eloyd
We will need to see the services.cfg portion that includes the service check, the commands.cfg portion that includes the command definition, and the nrpe.cfg file on the client that includes the check_mailq command.

Re: Plugins for queue email

Posted: Mon Aug 04, 2014 9:51 pm
by pianunix
still wont solve the problem

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H server4210 -c check_mailq
Couldn't match /usr/sbin/qmail-qstat output
Any idea ?

Re: Plugins for queue email

Posted: Tue Aug 05, 2014 7:28 am
by eloyd
We will need to see the services.cfg portion that includes the service check, the commands.cfg portion that includes the command definition, and the nrpe.cfg file on the client that includes the check_mailq command.

Re: Plugins for queue email

Posted: Tue Aug 12, 2014 3:42 am
by pianunix
Okay this is the configuration that you need