<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-abbreviated" href="mailto:admin@lctn.org">admin@lctn.org</a> wrote:
<blockquote cite="mid2593.64.8.148.4.1171644044.squirrel@lctn.org"
type="cite">
<blockquote type="cite">
<pre wrap="">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" <a class="moz-txt-link-abbreviated" href="mailto:admin@domain.com">admin@domain.com</a>
</pre>
</blockquote>
<pre wrap=""><!---->
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?
</pre>
</blockquote>
<font size="-1"><font face="Arial">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.)<br>
<br>
Either that, or you need a script/plugin that will receive your text
and send the mail via SMTP instead of local submission.<br>
<br>
Somebody familiar with sendmail may be able to help, I'm afraid I'm not.<br>
<br>
Andy.<br>
</font></font>
</body>
</html>