email notice problem
Andy Shellam (Mailing Lists)
andy.shellam-lists at mailnetwork.co.uk
Fri Feb 16 17:47:22 CET 2007
admin at lctn.org wrote:
>> The trick is to (while logged in or "su'd" to the Nagios user) manually
>> type out a command and keep adjusting until it works - then put that
>> into Nagios.
>> e.g. echo "Test e-mail"|/usr/sbin/sendmail -s "Host DOWN" admin at domain.com
>>
>
>
> OK, now we're getting somewhere..... Here is the error I get under the
> nagios user:
>
> WARNING: RunAsUser for MSP ignored, check group ids (egid=1001, want=120)
> can not chdir(/var/spool/mqueue-client/): Permission denied
> Program mode requires special privileges, e.g., root or TrustedUser.
>
> What is the best way to resolve this without causing a security problem?
>
>
This is within your MTA - you'll have to read up (in sendmail's
documentation) on how to set your nagios shell user as a trusted user
within sendmail - this tells sendmail the users that are allowed to use
it in "program-mode" (i.e. local submission, not over an SMTP connection.)
Either that, or you need a script/plugin that will receive your text and
send the mail via SMTP instead of local submission.
Somebody familiar with sendmail may be able to help, I'm afraid I'm not.
Andy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070216/5e306e57/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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