My email notifications from nagios have stopped

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.
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

My email notifications from nagios have stopped

Post by billperrotta »

What service sends the nagios email notificaions? And how do I stop Start and restart it?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: My email notifications from nagios have stopped

Post by scottwilkerson »

It used /bin/mail by default, and depending on the system you need to restart the appropriate MTA, for example, if your system uses postfix it might be

Code: Select all

service postfix restart
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: My email notifications from nagios have stopped

Post by billperrotta »

besides postfix what other service might it be using?

i dont get a response for postfix start or restartî
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: My email notifications from nagios have stopped

Post by tmcdonald »

Can you show us exactly what you typed and what the output was?

Also, what OS and version is this on?
Former Nagios employee
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: My email notifications from nagios have stopped

Post by billperrotta »

service postfix restart

dont receive a response

suse linux 12.3

is there a way to send a test notification to test it?
îî
î
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: My email notifications from nagios have stopped

Post by slansing »

If you are not using postfix, what mail client "MTA" did you configure for notification sending?
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: My email notifications from nagios have stopped

Post by billperrotta »

The old admin left the company.

Do you have any suggestions how I can figure it out.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: My email notifications from nagios have stopped

Post by slansing »

The easiest way (other than searching for MTA packages) would be grepping for the notification commands that would have been defined:

Code: Select all

grep -R 'notify-host-by-email' /usr/local/nagios/etc/
Once you find the command, you should see a command_line defined in it, can you copy the entire command out of it's configuration file and share it here?
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: My email notifications from nagios have stopped

Post by billperrotta »

Not understanding

my nagios is installed in

/etc/nagios

not very familiar with grep

same command with my path?
billperrotta
Posts: 115
Joined: Fri Feb 21, 2014 11:44 am

Re: My email notifications from nagios have stopped

Post by billperrotta »

ahgmonitor:~ # grep -R 'notify-host-by-email' /etc/nagios
/etc/nagios/objects/commands.cfg:# 'notify-host-by-email' command definition
/etc/nagios/objects/commands.cfg: command_name notify-host-by-email
/etc/nagios/objects/templates.cfg: host_notification_commands notify-host-by-email ; send host notifications via email
ahgmonitor:~ #


is this correct?

EDIT: Locked other identical thread: http://support.nagios.com/forum/viewtop ... =7&t=25879
Locked