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).
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$ **" [email protected]
# ### This has sent mail successfully.
#
# su - nagios
$ /usr/bin/printf "%b" "***** Nagios *****\nNotification " | /usr/bin/mail -s
"** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is
$SERVICESTATE$ **" [email protected]
mail: Cannot open temporary file: Permission denied
Cannot open temporary file
System info:
# uname -a
Linux sbc-nagios-01 2.6.31-20-server #58-Ubuntu SMP Fri Mar 12 05:40:05 UTC
2010 x86_64 GNU/Linux
# ### nagios 3.2.0
# dpkg --list | egrep mailutil
ii libmailutils2 1:2.0+dfsg1-2
GNU Mail abstraction library
ii mailutils 1:2.0+dfsg1-2
GNU mailutils utilities for handling mail
#
Ewan Scott
Technical Officer
Servers and Storage
Business & Technology Solutions
Scottish Borders Council
Council Headquarters
Newtown St Boswells
Melrose
TD6 0SA
01835 824000 ext 5374
[email protected]<mailto:[email protected]>
http://www.scotborders.gov.uk <blocked::http://www.scotborders.gov.uk />
**********************************************************************
This email and any files transmitted with it are privileged, confidential and
subject to copyright. Any unauthorised use or disclosure of any part of this
email is prohibited. If you are not the intended recipient please inform the
sender immediately; you should then delete the email and remove any copies from
your system.
The views or opinions expressed in this communication may not necessarily be
those of Scottish Borders Council.
Please be advised that Scottish Borders Council's incoming and outgoing email
is subject to regular monitoring and any email may require to be disclosed by
the Council under the provisions of the Freedom of Information (Scotland) Act
2002.
**********************************************************************
------------------------------------------------------------------------------
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
[email protected]
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