[Nagiosplug-help] check_mailq with qmail

Andreas Ericsson ae at op5.se
Tue Dec 7 13:37:08 CET 2004


davide.deboni at alchera.it wrote:
> Hi to everyone!
> 
> I've some problem with this plugin, check_mailq.
> I'm using it without any problem on two server, both with postfix.
> 
> Now I have to check a mail queue a of server with qmail as mta.
> When I try to run it:
> 
> ./check_mailq -M qmail -w 400 -c 500
> 
> I get this error:
> 
> ERROR:  is not executable by (uid 0:gid(0 10 6 4 3 2 1 0))
> 
> I'm logged as root.
> 
> If I try to run the command "qmail-qstat" as a normal command I get no 
> error.
> 

This seems to hint that the qmail program doesn't want to be run by the 
root user. Running as the root user is known to cause some obscure 
security risks where privilege separation isn't in place (although it 
seems like a fairly crude workaround for a program like qmail). Postfix 
does privilege separation and doesn't trust the contents of its own 
mailqueues, so it should work when run as root on that system.

> 
> I've already download the lastest version of these plugins 
> (nagios-plugins-1.4.0alpha2).
> 
> Thanks for help
> 
> 
> 
> Davide De Boni
> IT Architect
> 
> Email: davide.deboni at alchera.it
> 
> Alchera Solutions S.p.A.
> C.so Risorgimento 5
> 28823 Ghiffa (VB)
> ITALIA
> Tel +39.0323.407733
> Fax +39.0323.53558
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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