<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
carole gimenez wrote:
<blockquote cite="mid4231A17F.1040500@cict.fr" type="cite">Hi,
<br>
<br>
I use a patched version of check_mailq that permits to indicate the
configuration file that must be used.
<br>
<br>
In my nrpe.cfg, i define this command:
<br>
command[check_mail]=/usr/local/nagios/libexec/check_mailq -w $ARG1$ -c
$ARG2$ -f $ARG3$
<br>
<br>
and for example, in the definition of my service, i put this:
<br>
check_nrpe!check_mail!2000!3000!/etc/mail/sendmail.cf.delivery
<br>
<br>
I hope that help you.
<br>
<br>
Carole.
<br>
<br>
Askar Ali wrote:
<br>
<br>
<blockquote type="cite">hi list
<br>
<br>
anyone got an example of
<br>
<br>
Usage: check_mailq -w <warn> -c <crit> [-W <warn>]
[-C <crit>] [-M <MTA>] [-t <timeout>] [-v verbose]
<br>
<br>
MTA: qmail
<br>
<br>
for both check_command and ccheckcommand.cfg files ?
<br>
<br>
<br>
regards
<br>
<br>
<br>
<br>
<br>
-------------------------------------------------------
<br>
SF email is sponsored by - The IT Product Guide
<br>
Read honest & candid reviews on hundreds of IT Products from real
users.
<br>
Discover which products truly live up to the hype. Start reading now.
<br>
<a class="moz-txt-link-freetext" href="http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click">http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click</a>
<br>
_______________________________________________
<br>
Nagios-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
<br>
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. ::: Messages without supporting info will risk
being sent to /dev/null
<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
My nrpe.cfg is as follows, although I use postfix(just change to qmail):<br>
<b>command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 10 -c
20 [-W 10] [-C 20<br>
] -M postfix</b><br>
<br>
and in services:<br>
<br>
# Service definition<br>
define service{<br>
<br>
host_name my server<br>
service_description Check Mail Queue<br>
is_volatile 0<br>
check_period 24x7<br>
max_check_attempts x<br>
normal_check_interval x<br>
retry_check_interval x<br>
contact_groups admins<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options w,u,c,r<br>
<b>check_command check_nrpe!check_mailq</b><br>
}<br>
<br>
<b>Note: if you're not using the NRPE daemon then it would look
something like this:<br>
</b><br>
checkcommands.cfg:<br>
<br>
# 'check_mailq' command definition<br>
define command{<br>
command_name check_mailq<br>
command_line $USER1$/check_mailq <b>-w $ARG1$ -c $ARG2$ [-W
$ARG3$ [-C $ARG4$<br>
] -M $ARG5$</b><br>
}<br>
<br>
and services:<br>
<b>check_command check_mailq!10!20!10!20!qmail<br>
<br>
<br>
</b>I think one of these should do it. Hope this helps.<br>
Luis<br>
</body>
</html>