On 27/09/10 12:27, IT Toonz wrote:

Hi Assaf,

Thanks for the reply,

We tried and we get this...

[r...@nagios nagios]# locate check_mailq

/usr/lib/nagios/plugins/check_mailq

/var/www/dokuwiki/data/pages/plugins/check_mailq.txt

And the error is

Mailq CRITICAL (Return code of 127 is out of bounds - plugin may be missing)

What could be causing this?

In the commands.cfg file we have ...

# Check mailq in mail server

define  command {

    command_name    check_mailq

    command_line    check_mailq!-M qmail -w 500 -c 1000 -t 7

    }

Please advice.

Regards

Anth.



in the nagios installation directory - look at file resource.cfg and see where the alias $USER1$ points to .

this alias should proceed and command definition you have in the commands.cfg , co your mailq check command should be as such


define  command {

    command_name    check_mailq

    command_line    $USER1$/check_mailq!-M qmail -w 500 -c 1000 -t 7

    }




--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to