check_mailq usage
Upayavira
uv at upaya.co.uk
Mon Apr 26 21:32:19 CEST 2004
kollasch.drew at bvrmc.org wrote:
> I have since migrated my mail server and my nagios server together
> (onto the same box) and I still get the same error. IT was suggested
> that I get the newest one via CVS. I am lost on knowing how to do that
> though. If there are other ideas/solutions also, please let me know.
Try at a prompt:
/usr/bin/mailq
What do you get?
Basically, the perl script is expecting either the word "empty" or a
number on the line that contains "mqueue". But it seems that yours isn't
doing that.
Upayavira
>
> gentoo1 nagios # mailq
> Mail queue is empty
> gentoo1 nagios # /usr/nagios/libexec/check_mailq -w5 -c10 -v
> Use of uninitialized value in concatenation (.) or string at
> /usr/nagios/libexec/check_mailq line 110.
> Use of uninitialized value in concatenation (.) or string at
> /usr/nagios/libexec/check_mailq line 110.
> | mailq =
> Use of uninitialized value in exit at /usr/nagios/libexec/check_mailq
> line 111.
> gentoo1 nagios #
>
> -----Original Message-----
> *From:* Drew Kollasch
> *Sent:* Friday, April 16, 2004 3:18 PM
> *To:* nagios-users at lists.sourceforge.net
> *Subject:* RE: [Nagios-users] check_mailq usage
>
> IC...well that's no fun now is it?
> This machine DOES have a mailq on it, its just not the one that I
> want to check.
>
>
> -------------------------------------------------------
> Drew Kollasch
> Network/Desktop Technician
> Buena Vista Regional Medical Center
> kollasch.drew at bvrmc.org
> 712-732-4455x2153
>
> -----Original Message-----
> *From:* Marc Powell [mailto:marc at ena.com]
> *Sent:* Friday, April 16, 2004 3:17 PM
> *To:* Drew Kollasch; nagios-users at lists.sourceforge.net
> *Subject:* Re: [Nagios-users] check_mailq usage
>
> The plugin expects to be run on the machine with the mail
> queue you want to check. That's probably why it's failing.
> Like the majority of the plugins that check non-network
> related items, there is no support for connecting to a remote
> host to check local stats. You'll need to use a transport
> mechanism such as NRPE or check-by-ssh.
>
> --
> Marc
>
> -----Original Message-----
> From: kollasch.drew at bvrmc.org <kollasch.drew at bvrmc.org>
> To: nagios-users at lists.sourceforge.net
> <nagios-users at lists.sourceforge.net>
> Sent: Fri Apr 16 15:00:15 2004
> Subject: [Nagios-users] check_mailq usage
>
> I am attempting to get the check_mailq check to work, but am
> having some troubles.
> Executing from the CLI,
> ...
> gentoo1 nagios # /usr/nagios/libexec/check_mailq -w 5 -c 10
> Use of uninitialized value in concatenation (.) or string at
> /usr/nagios/libexec/check_mailq line 110.
> Use of uninitialized value in concatenation (.) or string at
> /usr/nagios/libexec/check_mailq line 110.
> | mailq =
> Use of uninitialized value in exit at
> /usr/nagios/libexec/check_mailq line 111.
> ...
>
> any ideas? also the mailq that I wish to check IS on a
> different host, how would I specify that?
> Thanks in advance.
>
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list