Discussion: Feeding Emails to Nagios
Ingo Lantschner
ingo.lists at vum.at
Tue Dec 12 14:24:01 CET 2006
Hello,
I designed a way to feed email from RAID-controllers (3ware) to Nagios
but I am not sure how save the proposed solution is.
First I added an alias to /etc/aliases:
nagios: "|/usr/local/nagios/libexec/eventhandlers/handle-RAID-mail"
Second I wrote the script nagios/libexec/eventhandlers/handle-RAID-mail
Finally I had the problem, that postfixs "local", who delivers the email
to handle-RAID-mail is chown nobody:nogroup which is far from being able
to write into nagios/var/rw/nagcmd.
So I did:
$ sudo postconf -e default_privs=nagios
Now "local" runs as user nagios and the checks are fed into Nagios
BUT: Is there a more secure solution around w/o tampering the
permissions of postfix?
TIA for your thoughts and suggestions - Ingo.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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