Page 1 of 3
My email notifications from nagios have stopped
Posted: Fri Feb 28, 2014 7:51 am
by billperrotta
What service sends the nagios email notificaions? And how do I stop Start and restart it?
Re: My email notifications from nagios have stopped
Posted: Fri Feb 28, 2014 8:48 am
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
Re: My email notifications from nagios have stopped
Posted: Fri Feb 28, 2014 2:16 pm
by billperrotta
besides postfix what other service might it be using?
i dont get a response for postfix start or restartî
Re: My email notifications from nagios have stopped
Posted: Fri Feb 28, 2014 2:57 pm
by tmcdonald
Can you show us exactly what you typed and what the output was?
Also, what OS and version is this on?
Re: My email notifications from nagios have stopped
Posted: Sun Mar 02, 2014 3:20 pm
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?
îî
î
Re: My email notifications from nagios have stopped
Posted: Mon Mar 03, 2014 11:35 am
by slansing
If you are not using postfix, what mail client "MTA" did you configure for notification sending?
Re: My email notifications from nagios have stopped
Posted: Mon Mar 03, 2014 1:52 pm
by billperrotta
The old admin left the company.
Do you have any suggestions how I can figure it out.
Re: My email notifications from nagios have stopped
Posted: Mon Mar 03, 2014 2:05 pm
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?
Re: My email notifications from nagios have stopped
Posted: Mon Mar 03, 2014 3:51 pm
by billperrotta
Not understanding
my nagios is installed in
/etc/nagios
not very familiar with grep
same command with my path?
Re: My email notifications from nagios have stopped
Posted: Mon Mar 03, 2014 3:54 pm
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