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
_______________________________________________
omd-users mailing list
[email protected]
http://lists.mathias-kettner.de/mailman/listinfo/omd-users

Reply via email to