Only Nagios doesn't works with sendmail?

quanta quanta.linux at gmail.com
Sun Jul 25 07:11:09 CEST 2010


Hi,

I am using sendmail 8.13.8-8 with Gmail SMTP.
sendmail works fine with OSSEC or test from command line, but it has
problem with Nagios:

sendmail[9026]: NOQUEUE: SYSERR(nagios): can not
chdir(/var/spool/clientmqueue/): Permission denied

Add the *smmsp* user to *nagios* group, I get the another error:

sendmail[26435]: NOQUEUE: SYSERR(nagios): can not write to queue
directory /var/spool/clientmqueue/ (RunAsGid=0, required=51): Permission
denied
 
The permissions of related files:

-rwxr-sr-x 1 root root 775064 Jun 29 23:46 /usr/sbin/sendmail
 -rw-r--r-- 1 root root 59061 Jun 30 11:23 sendmail.cf
 -rw-r--r-- 1 root root 40336 Jun 30 12:18 submit.cf
 drwxrwx--- 2 smmsp smmsp 114688 Jul 22 22:00 /var/spool/clientmqueue/
 drwx------ 2 root mail 4096 Jul 22 22:24 /var/spool/mqueue/

Nagios only send mail if I changed the permission of
*/var/spool/clientmqueue* to 777, but it is a dirty solution and I got
the warning:

sendmail[30462]: dangerous permissions=40777 on queue directory
/var/spool/clientmqueue/

PS: Nagios on the another server works fine with 770 permission of
/var/spool/clientmqueue.

Can anyone help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100725/94781334/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
-------------- next part --------------
_______________________________________________
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