Solved

Nagios email notification

Posted on 2008-10-27
8
1,197 Views
Last Modified: 2012-06-21
Hello Experts,

Just recently installed nagios (newbee) and added a four microsoft servers to monitor.  I notice that I am getting alarms but I am not getting any email notifications.  I recall that during the install I did enter the email address that nagios was to use.  Do I need to install sendmail?  DId I skip something?

As always, thank you in advance for your time on this matter.
0
Comment
Question by:coperator
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 22817984
yes, nagois use mail server to send email.
you need to install sendmail or any mail software  to send email from nagois server
0
 
LVL 14

Accepted Solution

by:
Deepak Kosaraju earned 250 total points
ID: 22817995
1: make sure enable_notification=1 is set is nagios.cfg(by default its 1) make sure you defined the contact names and group(depends) with correct email address.
2:  Nagios needs some MTA to send email out. Use sendmail (or) postfix any thing will work
3. make sure you don't any firewall rules blocking outgoing traffic over port 25(depends on MTA configuration)

0
 
LVL 1

Author Comment

by:coperator
ID: 22818090
If I already have an email server on another server, what do I need to configure on the nagios server.  Any howto is greatly appreciated.
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 29

Expert Comment

by:fosiul01
ID: 22818125
if you have sendmail
then you need to change this option from sendmail.mc

dnl define(`SMART_HOST', `smtp.your.provider')dnl

let me see if i can give you more article
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 22818157
There are certain limitation from nagios using external MTA's 1 reason os traffic and second is spam, so Nagios cannot be configure to use MTA Service present on another server, it needs to have it own MTA relay server. So try with sendmail (or) postfix. Most of the setups I observed and I configured are postfix.
Gud luck
0
 
LVL 29

Assisted Solution

by:fosiul01
fosiul01 earned 250 total points
ID: 22818216
http://docs.hp.com/en/32650-90906/ch10s07.html

http://docs.hp.com/en/32650-90906/ch10s07.html

Best one :
http://groups.google.com/group/comp.mail.sendmail/browse_thread/thread/23b85152b7c0ba6f?pli=1


Read this comments :
Use the sendmail.mc file, and add the line

    define(`SMART_HOST', `your.exchange.server')

somewhere above your MAILER() statements, then rebuild the sendmail.cf from
the sendmail.mc file.

Of course you'll lose any other changes you've directly edited in the
sendmail.cf file, so maybe you'll want to edit sendmail.cf directly again
and change:

# "Smart" relay host (may be null)
DSyour.exchange.server
0
 
LVL 1

Author Comment

by:coperator
ID: 22818814
So...just to verify, if I want email notification, I need to install an MTA like sendmail or postfix just to have email notification functionality in nagios.  Is that correct?  
0
 
LVL 14

Expert Comment

by:Deepak Kosaraju
ID: 22818929
Yes!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question