Page 1 of 2
Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 9:42 am
by mdsupersonic
Hi Nagios support team,
I want to check the queue count in postfix in Nagios XI.I see some nagios plugins in nagios exchange which is related to Nagios 3.x versions.
Which plugins do you recommend for Nagios XI?
Cheers
Majid
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 9:50 am
by mcapra
Does the
check_mailq plugin that is part of the nagios-plugins package (should be in your /usr/local/nagios/libexec path) not satisfy your use case?
Code: Select all
[root@localhost libexec]# ./check_mailq
Usage: check_mailq -w <warn> -c <crit> [-W <warn>] [-C <crit>] [-M <MTA>] [-t <timeout>] [-v verbose]
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 9:56 am
by mdsupersonic
Thank you for your response,
I didnt know about this plugin.how should I use it in Ngaios XI ?
I mean in GUI workspace not in CLI? I want to monitor the queue.
Cheers
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:02 am
by mcapra
Does this documentation offer any insight? It's basically the exact process I would be detailing in this post.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Step 1) Create a Command definition for the
check_mailq plugin
Step 2) Create a Service definition that uses the previous
check_mailq command
Step 3) Apply configuration
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:02 am
by mdsupersonic
Thank you very much for your help
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:05 am
by mcapra
Happy to be of assistance! Let us know if you have any issues with the document I posted.
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:10 am
by mdsupersonic
I'm trying to use this plugins for postfix,although in it's description is the support for sendmail and qmail.
Please don't close this thread until I see the proper result,otherwise I should search for another solution.
Cheers
Majid
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:16 am
by mcapra
It should also support postfix via the -M argument.
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:20 am
by mdsupersonic
and What should I put for 'MTA' option?
Re: Postfix queue ckeck in Nagios Xi
Posted: Tue Jul 26, 2016 10:24 am
by mcapra
Looking at the help menu, using
-M postfix should give you the result you want.
Code: Select all
-M (--mailserver) = [ sendmail | qmail | postfix | exim | nullmailer ] (default = sendmail)
It's leveraging the system's
mailq command though, so if there's something on your system forcing that command to check the sendmail queue there could be problems.