First of all I’d like to say that I’m a complete newbie on Linux-related items. My 30-years old experience as a wintel administrator was much needed when installing Nagios
I’ve got the package up and running on an Ubuntu 8.04.1 desktop version. Everything seems to work, with one exception: sending mails
I know the manual indicates I have to install mailx, but refers to the community with help on how to install and configure it.
I have been reading several forums, hoping to find some step-by-step help, without luck.
So this forum is sort of my last resort: can anyone point me in the right direction on how to configure mail or mailx (or any other command line capabale mail sending program that works with nagios) so it sends all mails to our local SMTP server (Exchange 2003)???
Any help would be greatly appreciated, as we definitly want to use this program, it is by far the most complete piece of monitoring software we have tested during the past months…
I got mine working (having, like you, less than an appreciable knowledge of linu:evil: through configuring sendmail - after a bit of guesstimation, a bit of light googling, and a lot of trial and error… It was a while ago for sure, but looking at my /etc/mail/sendmail.mc file I appear to have changed some or all of the following lines:
define(`SMART_HOST', `mail.ourdomain.com')dnl
MASQUERADE_AS(`nagios.ourdomain.com')dnl
FEATURE(masquerade_envelope)dnl
FEATURE(masquerade_entire_domain)dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
…then I guess I must have done a “make -C /etc/mail” (at least that what it tells me to do at the beginning of that file so I guess that was what happened, like I said, was a while ago) and then restarted sendmail.
I am having the exact same issue. I am using Ubuntu 8.10 and was following the Ubuntu quick start guide. The documentation is quite thorough in explaining all other aspects of the installation except email notifications. I followed the brief directions to the letter in regard to setting up email notifications but I still do not get notifications. Is there a better guide related specificly to getting email notifications to work?