install & configure the email notification

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
shailesh
Posts: 5
Joined: Sun Aug 18, 2013 2:22 pm

install & configure the email notification

Post by shailesh »

Hi,

Please can someone help me how to install & configure the email notification on Nagios Core 3.5 Version.

Thanks,
Shailesh
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: install & configure the email notification

Post by slansing »

I'd recommend taking a look at this page here, which will guide you through notifications and help you to decide what way is best for you:

http://nagios.sourceforge.net/docs/3_0/ ... tions.html
shailesh
Posts: 5
Joined: Sun Aug 18, 2013 2:22 pm

Re: install & configure the email notification

Post by shailesh »

thanks for reply.

I have gone through of your link and understand about it.

Please let me know what is the steps to configure the mails alerts and which mail daemons I can install postfix or sendEmail or sendmail in my Nagios environment.

Please help...

Thanks,
Shailesh
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: install & configure the email notification

Post by gshergill »

Hi Shailesh,

This isn't official documentation, but I wrote an install guide for mail on Nagios Core with Ubuntu OS. Link is below (note that I've only set up on Ubuntu servers so not sure if this works on other OS).

http://www.globility.co.uk/?p=386

Hope this helps!

Kind Regards,

Gary Shergill
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: install & configure the email notification

Post by slansing »

Oh interesting, neat guide, I can see that being helpful to more than a few people here.
shailesh
Posts: 5
Joined: Sun Aug 18, 2013 2:22 pm

Re: install & configure the email notification

Post by shailesh »

Hi Gshergill,

Thanks Gshergill for reply, I am trying to installed Postfix & heirloom-mailx on Centos 6.3 64 bit.

I am trying to install heirloom-mailx package but it is giving error which mention below,

# yum install heirloom-mailx
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* base: centos.aol.in
* extras: centos.aol.in
* updates: centos.aol.in
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.0 MB 01:09
Setting up Install Process
No package heirloom-mailx available.
Error: Nothing to do

Please help me how i can deploy the configure the mails alerts with Nagios.

Thanks,
Shailesh...
User avatar
gshergill
Posts: 231
Joined: Tue Aug 07, 2012 5:08 am

Re: install & configure the email notification

Post by gshergill »

Hi Shailesh,

For CentOS, try using the below command instead;

Code: Select all

yum install mailx
I'm pretty sure that's how I installed it on CentOS before but it has been a while...

Kind Regards,

Gary Shergill
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: install & configure the email notification

Post by abrist »

Additionally, you will want to change your notification commands to use mailx (and the full path) instead of /usr/bin/mail or /bin/mail.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked