all notifications failing
Morris, Patrick
patrick.morris at hp.com
Fri Apr 16 17:02:23 CEST 2010
Scott, Ewan wrote:
>
> Hi
>
>
>
> All my notifications are failing - no emails are being generated. Can
> someone confirm that it is the *nagios* user which sends the emails
> and not *root*. If this is the case then I seem to have created a file
> permissions problem on the system somehow and the nagios user cannot
> send mail. (This used to work until I installed *php5-cli* and ran a
> *notifications* script I picked up on exchange.nagios.org).
>
Mail will be sent as the user Nagios runs under.
>
> Although it is not really a nagios issue if anyone knows what the
> temporary file is that it is trying to open - see below - please let
> me know. (The same issue occurs for other non-root users sending mail).
>
>
>
> Thanks.
>
> Ewan
>
>
>
> # id
>
> uid=0(root) gid=0(root) groups=0(root)
>
> # /usr/bin/printf "%b" "***** Nagios *****\nNotification " |
> /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" ewscott at scotborders.gov.uk
>
> # ### This has sent mail successfully.
>
> #
>
> # su - nagios
>
> $ /usr/bin/printf "%b" "***** Nagios *****\nNotification " |
> /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert:
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" ewscott at scotborders.gov.uk
>
> mail: Cannot open temporary file: Permission denied
>
> Cannot open temporary file
>
Sounds like permissions on your temporary directory (most likely /tmp or
/var/tmp) are screwed up, or you've got a full disk.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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