Postfix queue ckeck in Nagios Xi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Postfix queue ckeck in Nagios Xi

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Postfix queue ckeck in Nagios Xi

Post 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]
Former Nagios employee
https://www.mcapra.com/
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Postfix queue ckeck in Nagios Xi

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Postfix queue ckeck in Nagios Xi

Post 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
Former Nagios employee
https://www.mcapra.com/
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Postfix queue ckeck in Nagios Xi

Post by mdsupersonic »

Thank you very much for your help
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Postfix queue ckeck in Nagios Xi

Post by mcapra »

Happy to be of assistance! Let us know if you have any issues with the document I posted.
Former Nagios employee
https://www.mcapra.com/
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Postfix queue ckeck in Nagios Xi

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Postfix queue ckeck in Nagios Xi

Post by mcapra »

It should also support postfix via the -M argument.
Former Nagios employee
https://www.mcapra.com/
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Postfix queue ckeck in Nagios Xi

Post by mdsupersonic »

and What should I put for 'MTA' option?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Postfix queue ckeck in Nagios Xi

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked