Discussion:
[Nagios-users] [Nagiosplug-help] check_mailq with qmail
d***@alchera.it
2004-12-07 09:51:07 UTC
Permalink
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.


I've already download the lastest version of these plugins
(nagios-plugins-1.4.0alpha2).

Thanks for help



Davide De Boni
IT Architect

Email: ***@alchera.it

Alchera Solutions S.p.A.
C.so Risorgimento 5
28823 Ghiffa (VB)
ITALIA
Tel +39.0323.407733
Fax +39.0323.53558
Andreas Ericsson
2004-12-07 10:38:04 UTC
Permalink
Post by d***@alchera.it
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.
./check_mailq -M qmail -w 400 -c 500
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.
Post by d***@alchera.it
I've already download the lastest version of these plugins
(nagios-plugins-1.4.0alpha2).
Thanks for help
Davide De Boni
IT Architect
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
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 ***@op5.se
OP5 AB www.op5.se
Lead Developer
d***@alchera.it
2004-12-07 11:56:03 UTC
Permalink
Post by Andreas Ericsson
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 tried to run it with these other users:
qmailq
qmaill
qmaild
qmailr


which are the users who run qmail programs such as qmail-clean,
qmail-rspawn etc....

I always get the same error (except for the UID):

ERROR: is not executable by (uid 506:gid(503 503))



I have no problem if I run it on a system with postfix or sendmail..
Loading...