My email notifications from nagios have stopped
-
billperrotta
- Posts: 115
- Joined: Fri Feb 21, 2014 11:44 am
My email notifications from nagios have stopped
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
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-
billperrotta
- Posts: 115
- Joined: Fri Feb 21, 2014 11:44 am
Re: My email notifications from nagios have stopped
besides postfix what other service might it be using?
i dont get a response for postfix start or restartî
i dont get a response for postfix start or restartî
Re: My email notifications from nagios have stopped
Can you show us exactly what you typed and what the output was?
Also, what OS and version is this on?
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
service postfix restart
dont receive a response
suse linux 12.3
is there a way to send a test notification to test it?
îî
î
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
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
The old admin left the company.
Do you have any suggestions how I can figure it out.
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
The easiest way (other than searching for MTA packages) would be grepping for the notification commands that would have been defined:
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?
Code: Select all
grep -R 'notify-host-by-email' /usr/local/nagios/etc/-
billperrotta
- Posts: 115
- Joined: Fri Feb 21, 2014 11:44 am
Re: My email notifications from nagios have stopped
Not understanding
my nagios is installed in
/etc/nagios
not very familiar with grep
same command with my path?
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
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
/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