<div class="gmail_quote">On Tue, Nov 17, 2009 at 2:36 AM, Cosmin Neagu <span dir="ltr"><<a href="mailto:cosmin.neagu@omnilogic.ro">cosmin.neagu@omnilogic.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello everybody,<br> From what i see from commands.cfg, by default it tries to send email<br>
with: /usr/bin/mail -s.<br>
But the email ends up in a local folder /var/mail/cosmin.<br>
Can anyone help me with some documentation or some advice on how can i<br>
make nagios send emails?<br>
Thanks.<br><br></blockquote><div><br></div><div>Looks like it is sending mail, and that mail is being delivered locally.   When you configured Nagios to send e-mail, what e-mail address did you tell it to send to?</div><div>
<br></div><div>Also, look for a file called /etc/aliases.  Open it, and see if there is a line like:</div><div><br></div><div>root:          cosmin</div></div><div><br></div>The name on the left may match the e-mail address you gave nagios, and the aliases file is re-directing that mail to the local user cosmin.  Replace cosmin with an e-mail address on a different domain.  Or modify Nagios to send to a an e-mail address on a domain different than the local machine.  Or configure the e-mail client on your computer to check the e-mail account on your Nagios machine.<div>
<br>-- <br>Mike <br>
</div>