[Nagiosplug-help] check_mailq
Furnish, Trever G
TGFurnish at herffjones.com
Tue Aug 28 20:37:22 CEST 2007
You could simply make check_mailq on the remote host a wrapper around
the real check_mailq and kick it off with some logging, including maybe
even kicking it off under strace. That way you'd be much more likely to
get clues about what's going on. This is a good technique that applies
to many similar unix troubleshooting needs.
--
Trever
> -----Original Message-----
> From: nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net] On
> Behalf Of Robert Cole
> Sent: Sunday, August 26, 2007 12:51 AM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: Re: [Nagiosplug-help] check_mailq
>
> Anyone have any ideas on this check_mailq issue I'm having?
>
> Thanks,
> Robert
>
> Robert Cole wrote:
> > I'm running plugins 1.4.9 and nrpe 2.8.1 on a RHEL 5 64bit host and
> > the check mailq seems to work fine on the local host:
> >
> > [root at mail001 ~]# /usr/local/nagios/libexec/check_mailq -w 20 -c 50
> > OK: mailq (17) is below threshold (20/50)|unsent=17;20;50;0
> > [root at mail001 ~]#
> >
> > But when I try it from nrpe from the nagios server I get this:
> >
> > ms1 ~ # /usr/nagios/libexec/check_nrpe -H mail001 -c check_mailq
> > CRITICAL: Error code 78 returned from /usr/bin/mailq
> > ms1 ~ # nano -w /etc/nagios/commands.cfg
> >
> > I've done some googling but can't seem to come up with anything.
> >
> > The nagios system isn't a 64 bit OS but I don't think that makes a
> > difference sense I'm passing through nrpe. There are other
> nrpe checks
> > that work just fine on this host.
> >
> > Anyone have any ideas?
> >
> > Thanks,
> > Robert
> >
> >
> >
> ----------------------------------------------------------------------
> > --- This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems? Stop.
> > Now Search log events and configuration files using AJAX
> and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Nagiosplug-help mailing list
> > Nagiosplug-help at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> > ::: Please include plugins version (-v) and OS when
> reporting any issue.
> > ::: Messages without supporting info will risk being sent
> to /dev/null
> >
> >
> >
>
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and
> a browser.
> Download your FREE copy of Splunk now >>
> http://get.splunk.com/ _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
More information about the Help
mailing list