Plugins for queue email

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Plugins for queue email

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Plugins for queue email

Post by eloyd »

Have you looked at:

Code: Select all

/usr/local/nagios/libexec/check_mailq
?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Plugins for queue email

Post 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
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Plugins for queue email

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Plugins for queue email

Post by lmiltchev »

How is "check_mailq" defined on the client? Can you show us the command definition?
Be sure to check out our Knowledgebase for helpful articles and solutions!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Plugins for queue email

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Plugins for queue email

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Plugins for queue email

Post 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 ?
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Plugins for queue email

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Plugins for queue email

Post by pianunix »

Okay this is the configuration that you need
Attachments
nagios_config.zip
(4.29 KiB) Downloaded 279 times
nrpe.txt
(7.47 KiB) Downloaded 456 times
Locked