Hello

I could remove the dot after the permissions. and now the error
message when sending a notification from nagios has changed.. but
startles me is that if sent via the command line using mail command it
works but not from nagios or check_mk

the error i have now is
Feb 27 12:44:17 IFSRV210 sendmail[24063]: NOQUEUE: SYSERR(macintosh):
can not write to queue directory /var/spool/clientmqueue/
(RunAsGid=500, required=51): Permission denied
500 is the group id for macintosh user

thank you

Mario.


On 26 February 2014 17:15, Mario Garcia <[email protected]> wrote:
> Hello,
> Unfortunately I already tried that and the permissions match...
>
> spool]# ls -l /usr/sbin/sendmail.sendmail
> -r-xr-sr-x 1 root smmsp 833512 Nov 11  2010 /usr/sbin/sendmail.sendmail
>
> ls -l /var/spool
> ...
> total 32
> drwxr-xr-x. 2 root  smmsp 4096 Jan 22 13:07 anacron
> drwxrwx---. 2 smmsp smmsp 4096 Feb 26 16:24 clientmqueue
> drwx------. 2 root  smmsp 4096 Feb 26 09:34 cron
> drwxr-xr-x. 2 root  smmsp 4096 Sep 23  2011 lpd
> drwxrwxr-x. 2 root  smmsp 4096 Feb 24 16:38 mail
> drwx------. 2 root  smmsp 4096 Feb 26 16:24 mqueue
>
> the only difference is the dot at the end of permissions.. that means
> file in question has a SELinux security context but selinux is
> disabled.. so I do not know how this could affect things in my case.
>
> thank you
>
>
>
> On 26 February 2014 16:52, Otterbein, Karl <[email protected]> wrote:
>> Just in a quick search I found the following:
>>
>> check the permissions on the following files:
>>
>> # ls -l /usr/sbin/sendmail.sendmail
>> -r-xr-sr-x root smmsp /usr/sbin/sendmail.sendmail
>>
>> # ls -l /var/spool
>> drwxrwx--- smmsp smmsp /var/spool/clientmqueue
>> If your permissions are mis-matched, you can modify them by doing the 
>> following:
>>
>> # chown root.smmsp /usr/sbin/sendmail.sendmail
>> # chmod g+s /usr/sbin/sendmail.sendmail
>> # chown smmsp.smmsp /var/spool/clientmqueue
>> After changing permissions, you need to restart the Sendmail service, type:
>>
>> # service sendmail restart
>>
>> -----Original Message-----
>> From: Mario Garcia [mailto:[email protected]]
>> Sent: Wednesday, February 26, 2014 10:47 AM
>> To: Otterbein, Karl
>> Cc: [email protected]
>> Subject: Re: [omd-users] omd cannot send notifications from nagios/check_Mk
>>
>> Hello Karl.
>>
>> here is it is:
>> OMD[macintosh]:/$ id
>> uid=498(macintosh) gid=500(macintosh) groups=500(macintosh),51(smmsp) 
>> OMD[macintosh]:/$ cd /var OMD[macintosh]:/var$ cd ./spool 
>> OMD[macintosh]:/var/spool$
>>
>>
>> On 26 February 2014 16:39, Otterbein, Karl <[email protected]> wrote:
>>> When logged in as your site user, try to cd through the path:
>>>
>>> cd /var
>>> cd ./spool
>>>
>>> it looks like your user may not be able to iterate through the full
>>> path- I've seen this a couple of times where if your user does not
>>> have the permissions to the base directories, it will not be able to
>>> access the program-
>>>
>>> -----Original Message-----
>>> From: Mario Garcia [mailto:[email protected]]
>>> Sent: Wednesday, February 26, 2014 10:28 AM
>>> To: Otterbein, Karl
>>> Cc: [email protected]
>>> Subject: Re: [omd-users] omd cannot send notifications from
>>> nagios/check_Mk
>>>
>>> Hello
>>> I can send mail from the omd site in command line.
>>>
>>> i added my site user to the group smmsp
>>>
>>> my site name is macintosh
>>>
>>> when logged in as macintosh this command send an email properly:
>>> the command used is this one:
>>>
>>> echo "test messages from macintosh" | mail [email protected]
>>>
>>> but when in check_mk  click send a custom notification i get the error :
>>> sendmail[11046]: NOQUEUE: SYSERR(macintosh): can not
>>> chdir(/var/spool/clientmqueue/): Permission denied
>>>
>>> the permissions of /var/spool/clientmqueue:
>>>
>>> log]# ls -la /var/spool/clientmqueue/
>>> total 8
>>> drwxrwx---.  2 smmsp smmsp 4096 Feb 26 14:40 .
>>> drwxrwx---. 10 root  smmsp 4096 Feb 19 17:29 ..
>>>
>>> selinux is off
>>> [root@log]# sestatus
>>> SELinux status:                 disable
>>>
>>> On 26 February 2014 16:08, Otterbein, Karl <[email protected]> wrote:
>>>> Can you provide an output of: ls-al /var/spool/clientmqueue/
>>>>
>>>> Are you running the mail command using the check_mk site username?
>>>>
>>>> This looks like an issue with your user permissions for clientmqueue.
>>>>
>>>> -K
>>>>
>>>> -----Original Message-----
>>>> From: [email protected]
>>>> [mailto:[email protected]] On Behalf Of
>>>> Mario Garcia
>>>> Sent: Wednesday, February 26, 2014 5:52 AM
>>>> To: [email protected]
>>>> Subject: [omd-users] omd cannot send notifications from
>>>> nagios/check_Mk
>>>>
>>>> Hello
>>>>
>>>> I have installed omd on centos 6.5
>>>>
>>>> when i sent a mail via command line everything is fine. the mail
>>>> reaches its destination. when I sent a test notification from
>>>> check_mk I get
>>>>
>>>> can not chdir(/var/spool/clientmqueue/): Permission denied
>>>>
>>>> I disabled selinux as root
>>>> sestatus return selinux disabled.
>>>>
>>>> is there something i can do to solve this issue?
>>>>
>>>> thank you
>>>>
>>>> Mario
>>>> _______________________________________________
>>>> omd-users mailing list
>>>> [email protected]
>>>> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
>>>
>>>
>>>
>>> --
>>> Mario Garcia
>>> ABSI NV | System Engineer
>>> Humaniteitslaan 224 - Bld de l'Humanité - 1190 Bruxelles [email protected] / 
>>> http://www.absi.be / Tel: +32(0)2 333 40 00 Fax:
>>> +32(0)2 333 40 60
>>
>>
>>
>> --
>> Mario Garcia
>> ABSI NV | System Engineer
>> Humaniteitslaan 224 - Bld de l'Humanité - 1190 Bruxelles [email protected] / 
>> http://www.absi.be / Tel: +32(0)2 333 40 00 Fax:
>> +32(0)2 333 40 60
>
>
>
> --
> Mario Garcia
> ABSI NV | System Engineer
> Humaniteitslaan 224 - Bld de l'Humanité - 1190 Bruxelles
> [email protected] / http://www.absi.be / Tel: +32(0)2 333 40 00 Fax:
> +32(0)2 333 40 60



-- 
Mario Garcia
ABSI NV | System Engineer
Humaniteitslaan 224 - Bld de l'Humanité - 1190 Bruxelles
[email protected] / http://www.absi.be / Tel: +32(0)2 333 40 00 Fax:
+32(0)2 333 40 60
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to