NagiosXI Alerts Will Not Email
Re: NagiosXI Alerts Will Not Email
So that test worked...I was testing it by turning the server off and waiting for the message to go...so why wouldn't that be working.
Re: NagiosXI Alerts Will Not Email
Update - tests are only working when I use the Forced option.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagiosXI Alerts Will Not Email
Hi rpearson,
Making progress, glad to see that's getting through. For the user account that you are using, let's make sure the preferences are not overriding the configurations. Click on the username in the upper right-hand of the screen and select Notification Preferences. Is everything enabled? Next, let's force a hard down state on a host and collect some log output. Enable phpmailer logging in the Email Settings (Admin > System Config > Email Settings Run the following tail command and then leave it running.
Then go to Home > Details > Host Status:
- Find the Host and click on it
- Click the + tab (Advanced)
- Click the "Submit passive check result" link
- Select the Check Result, choose DOWN and type in some text for the Check Output
- Click the Submit button Make sure the state type is HARD Down to send the notification, you should see the notification execute in the nagios.log. Then paste the full output from the tail command into the thread. Thanks, Benjamin
Making progress, glad to see that's getting through. For the user account that you are using, let's make sure the preferences are not overriding the configurations. Click on the username in the upper right-hand of the screen and select Notification Preferences. Is everything enabled? Next, let's force a hard down state on a host and collect some log output. Enable phpmailer logging in the Email Settings (Admin > System Config > Email Settings Run the following tail command and then leave it running.
Code: Select all
tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log /usr/local/nagios/var/nagios.log
- Find the Host and click on it
- Click the + tab (Advanced)
- Click the "Submit passive check result" link
- Select the Check Result, choose DOWN and type in some text for the Check Output
- Click the Submit button Make sure the state type is HARD Down to send the notification, you should see the notification execute in the nagios.log. Then paste the full output from the tail command into the thread. Thanks, Benjamin
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI Alerts Will Not Email
Of note I am trying to get emails to go to a Contact and not a normal user - although emails are not going to normal users either. I checked and all of those things were checked. Of note BackupExec was the server I "downed"
login as: rpearson
Pre-authentication banner message from server:
|
|
| ***************************************************************************
| NOTICE TO USERS
| This system is the property of The Krell Institute and is for authorized
| use only. Use of this system constitutes consent to monitoring. Monitoring
| may be conducted for protection against improper or unauthorized use or
| access, or to perform security audits.
| ****************************************************************************
|
End of banner message from server
rpearson@mon's password:
Linux mon.krellinst.org 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 26 14:10:45 2021 from 10.10.0.136
rpearson@mon:~$ tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log /usr/local/nagios/var/nagios.log
tail: cannot open '/var/log/maillog' for reading: No such file or directory
tail: cannot open '/usr/local/nagiosxi/tmp/phpmailer.log' for reading: No such file or directory
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESSED 0 EVENTS
...................
PROCESSED 0 EVENTS
....................
PROCESSED 0 EVENTS
....................
PROCESSED 0 EVENTS
....................
PROCESSED 0 EVENTS
.............
==> /usr/local/nagios/var/nagios.log <==
[1619806428] HOST ALERT: file0;UP;HARD;1;OK - file0.krellinst.org rta 0.215ms lost 0%
[1619806442] HOST ALERT: backupexec;UP;HARD;1;OK - backupexec.krellinst.org rta 0.155ms lost 0%
[1619806487] HOST ALERT: proxy;UP;HARD;1;OK - proxy.krellinst.org rta 0.183ms lost 0%
[1619806515] HOST ALERT: vermont;UP;HARD;1;OK - vermont.krellinst.org rta 0.371ms lost 0%
[1619806517] HOST ALERT: kiddos;UP;HARD;1;OK - kiddos.krellinst.org rta 23.542ms lost 0%
[1619806533] HOST ALERT: jira;UP;HARD;1;OK - jira.krellinst.org rta 0.175ms lost 0%
[1619806556] HOST ALERT: www;UP;HARD;1;OK - www.krellinst.org rta 0.374ms lost 0%
[1619806558] HOST ALERT: wwwstage2;UP;HARD;1;OK - wwwstage2.krellinst.org rta 0.177ms lost 0%
[1619806572] HOST ALERT: www-c;UP;HARD;1;OK - www-cvpn.krellinst.org rta 47.074ms lost 0%
[1619806588] HOST ALERT: repo;UP;HARD;1;OK - repo.krellinst.org rta 0.166ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
...
==> /usr/local/nagios/var/nagios.log <==
[1619806607] HOST ALERT: vertigo;UP;HARD;1;OK - vertigo.krellinst.org rta 0.438ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806620] HOST ALERT: wwwstage;UP;HARD;1;OK - wwwstage.krellinst.org rta 0.180ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESSED 0 EVENTS
..
==> /usr/local/nagios/var/nagios.log <==
[1619806624] HOST ALERT: nessus;UP;HARD;1;OK - nessus.krellinst.org rta 0.169ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806628] HOST ALERT: dc3;UP;HARD;1;OK - dc3.krellinst.org rta 0.206ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806640] HOST ALERT: certserver;UP;HARD;1;OK - certserver.krellinst.org rta 0.211ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
...
==> /usr/local/nagios/var/nagios.log <==
[1619806648] HOST ALERT: scribe;UP;HARD;1;OK - scribe.krellinst.org rta 0.191ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806660] HOST ALERT: kids;UP;HARD;1;OK - kids.krellinst.org rta 0.165ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806663] HOST ALERT: www3;UP;HARD;1;OK - www3.krellinst.org rta 0.360ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
..
==> /usr/local/nagios/var/nagios.log <==
[1619806670] HOST ALERT: backupexec;DOWN;HARD;1;This is a test
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESS EVENT: ID=458088, SOURCE=2, TYPE=1, TIME=2021-04-30 13:17:50
*** GLOBAL HANDLER...
Array
(
[event_id] => 458088
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:17:50
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => DOWN
[hoststateid] => 1
[lasthoststate] => UP
[lasthoststateid] => 0
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59178
[hostproblemid] => 27475
[hostoutput] => This is a test
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
*** GLOBAL HANDLER (snmptrapsender)...
Array
(
[event_id] => 458088
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:17:50
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => DOWN
[hoststateid] => 1
[lasthoststate] => UP
[lasthoststateid] => 0
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59178
[hostproblemid] => 27475
[hostoutput] => This is a test
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
SNMP TRAP SENDER NOT CONFIGURED!
....
==> /usr/local/nagios/var/nagios.log <==
[1619806680] HOST ALERT: db0;UP;HARD;1;OK - db0.krellinst.org rta 0.364ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESSED 1 EVENTS
......
==> /usr/local/nagios/var/nagios.log <==
[1619806698] HOST ALERT: db0rep;UP;HARD;1;OK - db0rep.krellinst.org rta 0.383ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806701] HOST ALERT: db0-c;UP;HARD;1;OK - db0-cvpn.krellinst.org rta 50.081ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806714] HOST ALERT: dc4;UP;HARD;1;OK - dc4.krellinst.org rta 0.219ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806726] HOST ALERT: file0;UP;HARD;1;OK - file0.krellinst.org rta 0.199ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806729] HOST ALERT: backupexec;UP;HARD;1;OK - backupexec.krellinst.org rta 0.149ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESS EVENT: ID=458089, SOURCE=2, TYPE=1, TIME=2021-04-30 13:18:49
*** GLOBAL HANDLER...
Array
(
[event_id] => 458089
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:18:49
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => UP
[hoststateid] => 0
[lasthoststate] => DOWN
[lasthoststateid] => 1
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59179
[hostproblemid] => 0
[hostoutput] => OK - backupexec.krellinst.org rta 0.149ms lost 0%
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
*** GLOBAL HANDLER (snmptrapsender)...
Array
(
[event_id] => 458089
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:18:49
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => UP
[hoststateid] => 0
[lasthoststate] => DOWN
[lasthoststateid] => 1
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59179
[hostproblemid] => 0
[hostoutput] => OK - backupexec.krellinst.org rta 0.149ms lost 0%
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
SNMP TRAP SENDER NOT CONFIGURED!
...
PROCESSED 1 EVENTS
................
==> /usr/local/nagios/var/nagios.log <==
[1619806786] HOST ALERT: proxy;UP;HARD;1;OK - proxy.krellinst.org rta 0.175ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
PROCESSED 0 EVENTS
.....
==> /usr/local/nagios/var/nagios.log <==
[1619806813] HOST ALERT: vermont;UP;HARD;1;OK - vermont.krellinst.org rta 0.353ms lost 0%
[1619806815] HOST ALERT: kiddos;UP;HARD;1;OK - kiddos.krellinst.org rta 23.532ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
......
==> /usr/local/nagios/var/nagios.log <==
[1619806831] HOST ALERT: jira;UP;HARD;1;OK - jira.krellinst.org rta 0.178ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.......
==> /usr/local/nagios/var/nagios.log <==
[1619806854] HOST ALERT: www;UP;HARD;1;OK - www.krellinst.org rta 0.350ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806856] HOST ALERT: wwwstage2;UP;HARD;1;OK - wwwstage2.krellinst.org rta 0.163ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
PROCESSED 0 EVENTS
..
login as: rpearson
Pre-authentication banner message from server:
|
|
| ***************************************************************************
| NOTICE TO USERS
| This system is the property of The Krell Institute and is for authorized
| use only. Use of this system constitutes consent to monitoring. Monitoring
| may be conducted for protection against improper or unauthorized use or
| access, or to perform security audits.
| ****************************************************************************
|
End of banner message from server
rpearson@mon's password:
Linux mon.krellinst.org 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 26 14:10:45 2021 from 10.10.0.136
rpearson@mon:~$ tail -F /var/log/maillog /usr/local/nagiosxi/tmp/phpmailer.log /usr/local/nagiosxi/var/eventman.log /usr/local/nagios/var/nagios.log
tail: cannot open '/var/log/maillog' for reading: No such file or directory
tail: cannot open '/usr/local/nagiosxi/tmp/phpmailer.log' for reading: No such file or directory
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESSED 0 EVENTS
...................
PROCESSED 0 EVENTS
....................
PROCESSED 0 EVENTS
....................
PROCESSED 0 EVENTS
....................
PROCESSED 0 EVENTS
.............
==> /usr/local/nagios/var/nagios.log <==
[1619806428] HOST ALERT: file0;UP;HARD;1;OK - file0.krellinst.org rta 0.215ms lost 0%
[1619806442] HOST ALERT: backupexec;UP;HARD;1;OK - backupexec.krellinst.org rta 0.155ms lost 0%
[1619806487] HOST ALERT: proxy;UP;HARD;1;OK - proxy.krellinst.org rta 0.183ms lost 0%
[1619806515] HOST ALERT: vermont;UP;HARD;1;OK - vermont.krellinst.org rta 0.371ms lost 0%
[1619806517] HOST ALERT: kiddos;UP;HARD;1;OK - kiddos.krellinst.org rta 23.542ms lost 0%
[1619806533] HOST ALERT: jira;UP;HARD;1;OK - jira.krellinst.org rta 0.175ms lost 0%
[1619806556] HOST ALERT: www;UP;HARD;1;OK - www.krellinst.org rta 0.374ms lost 0%
[1619806558] HOST ALERT: wwwstage2;UP;HARD;1;OK - wwwstage2.krellinst.org rta 0.177ms lost 0%
[1619806572] HOST ALERT: www-c;UP;HARD;1;OK - www-cvpn.krellinst.org rta 47.074ms lost 0%
[1619806588] HOST ALERT: repo;UP;HARD;1;OK - repo.krellinst.org rta 0.166ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
...
==> /usr/local/nagios/var/nagios.log <==
[1619806607] HOST ALERT: vertigo;UP;HARD;1;OK - vertigo.krellinst.org rta 0.438ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806620] HOST ALERT: wwwstage;UP;HARD;1;OK - wwwstage.krellinst.org rta 0.180ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESSED 0 EVENTS
..
==> /usr/local/nagios/var/nagios.log <==
[1619806624] HOST ALERT: nessus;UP;HARD;1;OK - nessus.krellinst.org rta 0.169ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806628] HOST ALERT: dc3;UP;HARD;1;OK - dc3.krellinst.org rta 0.206ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806640] HOST ALERT: certserver;UP;HARD;1;OK - certserver.krellinst.org rta 0.211ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
...
==> /usr/local/nagios/var/nagios.log <==
[1619806648] HOST ALERT: scribe;UP;HARD;1;OK - scribe.krellinst.org rta 0.191ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806660] HOST ALERT: kids;UP;HARD;1;OK - kids.krellinst.org rta 0.165ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806663] HOST ALERT: www3;UP;HARD;1;OK - www3.krellinst.org rta 0.360ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
..
==> /usr/local/nagios/var/nagios.log <==
[1619806670] HOST ALERT: backupexec;DOWN;HARD;1;This is a test
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESS EVENT: ID=458088, SOURCE=2, TYPE=1, TIME=2021-04-30 13:17:50
*** GLOBAL HANDLER...
Array
(
[event_id] => 458088
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:17:50
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => DOWN
[hoststateid] => 1
[lasthoststate] => UP
[lasthoststateid] => 0
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59178
[hostproblemid] => 27475
[hostoutput] => This is a test
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
*** GLOBAL HANDLER (snmptrapsender)...
Array
(
[event_id] => 458088
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:17:50
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => DOWN
[hoststateid] => 1
[lasthoststate] => UP
[lasthoststateid] => 0
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59178
[hostproblemid] => 27475
[hostoutput] => This is a test
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
SNMP TRAP SENDER NOT CONFIGURED!
....
==> /usr/local/nagios/var/nagios.log <==
[1619806680] HOST ALERT: db0;UP;HARD;1;OK - db0.krellinst.org rta 0.364ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESSED 1 EVENTS
......
==> /usr/local/nagios/var/nagios.log <==
[1619806698] HOST ALERT: db0rep;UP;HARD;1;OK - db0rep.krellinst.org rta 0.383ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806701] HOST ALERT: db0-c;UP;HARD;1;OK - db0-cvpn.krellinst.org rta 50.081ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806714] HOST ALERT: dc4;UP;HARD;1;OK - dc4.krellinst.org rta 0.219ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
==> /usr/local/nagios/var/nagios.log <==
[1619806726] HOST ALERT: file0;UP;HARD;1;OK - file0.krellinst.org rta 0.199ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806729] HOST ALERT: backupexec;UP;HARD;1;OK - backupexec.krellinst.org rta 0.149ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
PROCESS EVENT: ID=458089, SOURCE=2, TYPE=1, TIME=2021-04-30 13:18:49
*** GLOBAL HANDLER...
Array
(
[event_id] => 458089
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:18:49
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => UP
[hoststateid] => 0
[lasthoststate] => DOWN
[lasthoststateid] => 1
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59179
[hostproblemid] => 0
[hostoutput] => OK - backupexec.krellinst.org rta 0.149ms lost 0%
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
*** GLOBAL HANDLER (snmptrapsender)...
Array
(
[event_id] => 458089
[event_source] => 2
[event_type] => 1
[event_time] => 2021-04-30 13:18:49
[event_meta] => Array
(
[handler-type] => host
[host] => backupexec
[hostaddress] => backupexec.krellinst.org
[hoststate] => UP
[hoststateid] => 0
[lasthoststate] => DOWN
[lasthoststateid] => 1
[hoststatetype] => HARD
[currentattempt] => 1
[maxattempts] => 5
[hosteventid] => 59179
[hostproblemid] => 0
[hostoutput] => OK - backupexec.krellinst.org rta 0.149ms lost 0%
[longhostoutput] =>
[hostdowntime] => 0
)
[logging_enabled] => 1
)
SNMP TRAP SENDER NOT CONFIGURED!
...
PROCESSED 1 EVENTS
................
==> /usr/local/nagios/var/nagios.log <==
[1619806786] HOST ALERT: proxy;UP;HARD;1;OK - proxy.krellinst.org rta 0.175ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
....
PROCESSED 0 EVENTS
.....
==> /usr/local/nagios/var/nagios.log <==
[1619806813] HOST ALERT: vermont;UP;HARD;1;OK - vermont.krellinst.org rta 0.353ms lost 0%
[1619806815] HOST ALERT: kiddos;UP;HARD;1;OK - kiddos.krellinst.org rta 23.532ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
......
==> /usr/local/nagios/var/nagios.log <==
[1619806831] HOST ALERT: jira;UP;HARD;1;OK - jira.krellinst.org rta 0.178ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.......
==> /usr/local/nagios/var/nagios.log <==
[1619806854] HOST ALERT: www;UP;HARD;1;OK - www.krellinst.org rta 0.350ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
==> /usr/local/nagios/var/nagios.log <==
[1619806856] HOST ALERT: wwwstage2;UP;HARD;1;OK - wwwstage2.krellinst.org rta 0.163ms lost 0%
==> /usr/local/nagiosxi/var/eventman.log <==
.
PROCESSED 0 EVENTS
..
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagiosXI Alerts Will Not Email
Hi @rpearson,
Configuring Core Contacts to Use Nagios XI PHPMailer SMTP Settings
Also, double check the contact settings on backupexec, I'm not seeing a 'Core" contact assigned to this host object as well nothing in the admins contact group.
Please try to configure the Contact required to use the notification handlers in the guide, add this person as a contact to backupexec, and then run the notification tests once more and let me know if the issue is resolved.
Best Regards,
Benjamin
For SMTP mail setup, there is another step to configure Contacts to use the SMTP notification handlers. We have setup instructions in the following guide, please follow that to configure this contact.Of note I am trying to get emails to go to a Contact and not a normal user - although emails are not going to normal users eithe
Configuring Core Contacts to Use Nagios XI PHPMailer SMTP Settings
Also, double check the contact settings on backupexec, I'm not seeing a 'Core" contact assigned to this host object as well nothing in the admins contact group.
Code: Select all
define host {
host_name backupexec
alias backupexec
address backupexec.krellinst.org
parents sw-server
check_period xi_timeperiod_24x7
check_command check_xi_host_ping!3000.0!80%!5000.0!100%
contact_groups admins
notification_period xi_timeperiod_24x7
initial_state o
importance 0
check_interval 5.000000
retry_interval 1.000000
max_check_attempts 5
active_checks_enabled 1
passive_checks_enabled 1
obsess 1
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options a
freshness_threshold 0
check_freshness 0
notification_options d,u
notifications_enabled 1
notification_interval 60.000000
first_notification_delay 3.000000
stalking_options u
process_perf_data 1
icon_image win_server.png
statusmap_image win_server.png
retain_status_information 1
retain_nonstatus_information 1
_XIWIZARD ncpa
}
# The Admins contact group.
define contactgroup {
contactgroup_name admins
alias Nagios Administrators
}
Best Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI Alerts Will Not Email
Still no luck. The email goes to IT_TXT and IT Notify if I use the "Forced" option. Without it no emails. What would it cost me to just get an actual support session. I feel like this probably would be resolved rather quickly with a screen share. Otherwise do you have any more ideas? I have redone my profile and will PM it to you. I really need to get this resolved quickly.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagiosXI Alerts Will Not Email
Hi,
The configurations look good, and since you are receiving notifications when you force a HARD down, that means it's working from our tests, so it's not an issue with the mail server or email settings.
During normal operations, are you sure the host is down and notifying? From the reporting menu, can you run a State History report on the host object to determine when it went HARD down, and then compare this with the Notification Report, over the same period of time.
Additionally, if it did go down without sending the proper notification, I'd like to review the nagios log from that day, they are located in the following directory.
The logs are archived once a day, so if it says 5-2-2021, the data in the log would be from 5-1-2021.
Thanks,
Benjamin
The configurations look good, and since you are receiving notifications when you force a HARD down, that means it's working from our tests, so it's not an issue with the mail server or email settings.
During normal operations, are you sure the host is down and notifying? From the reporting menu, can you run a State History report on the host object to determine when it went HARD down, and then compare this with the Notification Report, over the same period of time.
Additionally, if it did go down without sending the proper notification, I'd like to review the nagios log from that day, they are located in the following directory.
Code: Select all
/usr/local/nagios/var/archives
Thanks,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI Alerts Will Not Email
It is not emailing when it is a HARD down. It only emails when I click the "Force" check box. The machine definitely goes down I wait longer then necessary and our Nagios Core install on a separate server is alerting to the down. I will look into the logs and upload them later tonight.
Re: NagiosXI Alerts Will Not Email
PM'd you the last few days of logs.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NagiosXI Alerts Will Not Email
Hi @rpearson,
Thanks for sending over the logs files. I search through all the files that particular hosts and all the notifications on that host. I'm not seeing any entries in the log results showing the host going down, so that would explain why the notification was not sent.
Additionally, all the corresponding notifications for the host are for a Custom Notification. I've sent the output files back to you in a Private Message so you can review the data.
I would recommend scheduling a State History Report on this host, so we can determine if it goes down, whether the notation was sent or not going forward.
Regards,
Benjamin
Thanks for sending over the logs files. I search through all the files that particular hosts and all the notifications on that host. I'm not seeing any entries in the log results showing the host going down, so that would explain why the notification was not sent.
Additionally, all the corresponding notifications for the host are for a Custom Notification. I've sent the output files back to you in a Private Message so you can review the data.
I would recommend scheduling a State History Report on this host, so we can determine if it goes down, whether the notation was sent or not going forward.
Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!