NagiosXI Emails Stoped working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
spcmidrange
Posts: 47
Joined: Fri Jun 15, 2012 12:54 pm

NagiosXI Emails Stoped working

Post by spcmidrange »

Good Day

Sometime since the weekend, our NagiosXI system has stopped sending emails via the xi_service_notification_handler or xi_host_notification_handler. They were working Friday, but by Monday they were not. The system does not send out alerts over the weekend, so dont have a good time when it stopped

NagiosXI is configured to send to exchange, but when we configured it to send via local posfix, we never saw the alerts enter the local que. Using mailx commands for emails via the local postfix que (which is smartrelay to exhchange) work and people using that for alerts are getting them. Anyone using the XI/phpmailer stuff is not

I have checked the user's notifications and mail is setup. We only have the one user setup this way.

I am at a loss here. We have restarted nagios and even rebooted the server, but still no emails via phpmailer. Any assistance is appreciated

Cheers!
spcmidrange
Posts: 47
Joined: Fri Jun 15, 2012 12:54 pm

Re: NagiosXI Emails Stoped working

Post by spcmidrange »

More info:
Test emails work via Admin -> Manage emails, and work under the user's account to test emails:
Errors in this log about ssl/tls were us testing,

Code: Select all

[root@lp-dc1-nagn1 var]# tail -50 /usr/local/nagiosxi/tmp/phpmailer.log
[11-19-2019 13:54:00] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 13:54:19] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 13:59:48] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:06:55] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:15:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:16:40] Message sent! (method=smtp;host=172.30.4.111;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:18:50] Message sent! (method=smtp;host=172.30.4.112;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:22:09] Message sent! (method=smtp;host=172.30.4.112;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:30:40] Message sent! (method=sendmail), Referer: admin/testemail.php
[11-19-2019 14:32:11] Message sent! (method=sendmail), Referer: admin/testemail.php
[11-19-2019 14:42:23] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:48:10] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=tls), Referer: admin/testemail.php
[11-19-2019 14:48:24] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=ssl), Referer: admin/testemail.php
[11-20-2019 08:26:24] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:25:33] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:39:22] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-20-2019 09:39:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
spcmidrange
Posts: 47
Joined: Fri Jun 15, 2012 12:54 pm

Re: NagiosXI Emails Stoped working

Post by spcmidrange »

haha More info:
1: Red Hat Enterprise Linux Server release 7.6 (Maipo)
2: x64
3: Manual Install
4: nothing special about the install
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Emails Stoped working

Post by benjaminsmith »

Hello @spcmidrange,

Any possibility someone made changes to the Exchange server that would prevent Nagios from logging in. Also, it sounds too simple but happens all the time is to verify the SMTP Settings. Often this will be filled by the browser automatically with incorrect or old credentials.

Go to Admin > Email Settings > Outbound and enable Logging for phpmailer, and let the server generate some notifications (or force them) and then send us the system profile. You can force a notification event from host or service by going to Home > Details > Host or Service Status and then go to the Advanced Tab and submit a series of passive non-OK check results until the host or service enters a HARD non-OK state.

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share this in a private message and then reply to this post to bring it up in the queue.

Also, the following article shows you how to enable debugging output to the display for phpmailer. This would be very helpful to capture the error messages and post a screenshot to the thread. Thanks.

PHPMailer - Troubleshooting Using Debug Logging
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!
spcmidrange
Posts: 47
Joined: Fri Jun 15, 2012 12:54 pm

Re: NagiosXI Emails Stoped working

Post by spcmidrange »

Good Day

So we asked exchange and they said no changes. And emails that are going through the local postfix (using mailx either CLI, or as a notify command in Nagios) that is pushed to exchange server is working fine
Go to Admin > Email Settings > Outbound and enable Logging for phpmailer,
This has been completed, and I pasted the output of the log, which is showing nothing is reaching that log, only the tests ones are.

I also tested this:

Admin > Email Settings > Changed from SMTP to Sendmail
Shutdown postfix locally on the NagiosXI server
Send Test email from Admin > Email Settings, it reaches the postfix mail que
Send test email from Configure > My Account Settings > Send Test notification and this email reaches the postfix mail que
Go to send a Custom notification on service/host, it never reaches this que
Once i enable postfix, i get the emails via exchange that were in the postfix mail que

Also:
Admin > Email Settings > Set to SMTP
Send Test email from Admin > Email Settings, and it reaches our mailbox
Send test email from Configure > My Account Settings > Send Test notification as the user and it reaches our mailbox
Go to send a Custom notification on service/host, and we don't get the email
Also, the following article shows you how to enable debugging output to the display for phpmailer. This would be very helpful to capture the error messages and post a screenshot to the thread. Thanks.
This is the problem, this test is ALWAYS successful. But host/service notifications are not reaching Exchange or the local postfix mail que

I have pm'd you the system profile

Thank you for your assistance
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Emails Stoped working

Post by benjaminsmith »

Hello @spcmidrange,

Thanks for sending over the system profile. The server is running an older version of Nagios XI and that does not include as much data in the system profile.

Let's check a few more items. Please post the output for the following commands.
NagiosXI is configured to send to exchange, but when we configured it to send via local postfix, we never saw the alerts enter the local que.
1. Apologies as I could use a little clarification. What configuration are you using now on the XI server, Sendmail or SMTP?

2. Test the domain name

Code: Select all

nslookup smtpmailroute.saskpower.sk.ca
3. Now that you have debugging enabled, I 'd like to see the nagios and mail logs again (they were not included in the profile).

Code: Select all

tail -n 50 /usr/local/nagios/var/nagios.log
tail -n 50 /var/log/maillog
tail -n 50 /usr/local/nagiosxi/tmp/phpmailer.log
4. Can you send me a screenshot of your SMTP settings ( Admin > Email Settings > Outbound Mail. Thank you!
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!
spcmidrange
Posts: 47
Joined: Fri Jun 15, 2012 12:54 pm

Re: NagiosXI Emails Stoped working

Post by spcmidrange »

1. Apologies as I could use a little clarification. What configuration are you using now on the XI server, Sendmail or SMTP?
We have a mixture of both. This specific setting is set to SMTP, but we have notification commands that will use mailx and local postfix (not xi/phpmailer) to send out notification that other contract groups are using. Us admins are trying to us the xi/phpmailer way that was working and now has stopped. The mailx/postifx way is working and always has been working, xi/phpmailer way is not and we changed the notification command for us admins to use the mailx/postfix way until the xi/phpmailer problem is resolved

Mailx/postfix way just pushes it to our exchange servers (using hostname smptmailroute.saskpower.sk.ca as the smartrelay)

2:

Code: Select all

[nagios@lp-dc1-nagn1 ~]$ nslookup smtpmailroute.saskpower.sk.ca
Server:  172.30.48.41
Address: 172.30.48.41#53

Name: smtpmailroute.saskpower.sk.ca
Address: 172.30.4.111
Name: smtpmailroute.saskpower.sk.ca
Address: 172.30.4.112

Code: Select all

[root@lp-dc1-nagn1 cron.d]#  tail -n 50 /usr/local/nagios/var/nagios.log
[1574284565] ndomod registered for log data'
[1574284565] ndomod registered for system command data'
[1574284565] ndomod registered for event handler data'
[1574284565] ndomod registered for notification data'
[1574284565] ndomod registered for comment data'
[1574284565] ndomod registered for downtime data'
[1574284565] ndomod registered for flapping data'
[1574284565] ndomod registered for program status data'
[1574284565] ndomod registered for host status data'
[1574284565] ndomod registered for service status data'
[1574284565] ndomod registered for adaptive program data'
[1574284565] ndomod registered for adaptive host data'
[1574284565] ndomod registered for adaptive service data'
[1574284565] ndomod registered for external command data'
[1574284565] ndomod registered for aggregated status data'
[1574284565] ndomod registered for retention data'
[1574284565] ndomod registered for contact data'
[1574284565] ndomod registered for contact notification data'
[1574284565] ndomod registered for acknowledgement data'
[1574284565] ndomod registered for state change data'
[1574284565] ndomod registered for contact status data'
[1574284565] ndomod registered for adaptive contact data'
[1574284565] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1574284566] Successfully launched command file worker with pid 24546
[1574284589] SERVICE ALERT: sap-hdq-ips;LPAR CPU Entitlement;OK;SOFT;1;CPU STATISTICS OK : LPAR is using 368.7 percent of the 0.10 CPU Entitled Capacity
[1574284597] SERVICE NOTIFICATION: amarz;sapxia;System Load;WARNING;page_alex;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE NOTIFICATION: jherperger;sapxia;System Load;WARNING;page_jherperger;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE NOTIFICATION: lselinger;sapxia;System Load;WARNING;page_lonny;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE NOTIFICATION: midrangeteam;sapxia;System Load;WARNING;notify-service-by-email;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE NOTIFICATION: oncall;sapxia;System Load;WARNING;page_oncall;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE NOTIFICATION: plieffers;sapxia;System Load;WARNING;page_paul;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE NOTIFICATION: redwards;sapxia;System Load;WARNING;page_ryan;WARNING - load average: 11.25, 11.50, 13.50
[1574284597] SERVICE ALERT: sapxia;System Load;WARNING;HARD;3;WARNING - load average: 11.25, 11.50, 13.50
[1574284816] SERVICE NOTIFICATION: intel_team;srv-reg-aspn-t1;CPU Usage;CRITICAL;notify-wintel-service-by-email;CRITICAL: \Processor(_total)\% Processor Time: 96.9232 > critical
[1574284816] SERVICE ALERT: srv-reg-aspn-t1;CPU Usage;CRITICAL;HARD;4;CRITICAL: \Processor(_total)\% Processor Time: 96.9232 > critical
[1574285009] SERVICE ALERT: sapxa8;Memory Used;WARNING;SOFT;1;WARNING: \Memory\% Committed Bytes In Use: 88.9003 > warning
[1574285116] SERVICE NOTIFICATION: intel_team;srv-reg-aspn-t1;CPU Usage;OK;notify-wintel-service-by-email;OK: \Processor(_total)\% Processor Time: 35.3867
[1574285116] SERVICE ALERT: srv-reg-aspn-t1;CPU Usage;OK;HARD;1;OK: \Processor(_total)\% Processor Time: 35.3867
[1574285129] SERVICE ALERT: sapxa8;Memory Used;OK;SOFT;1;OK: \Memory\% Committed Bytes In Use: 45.9194
[1574285415] SERVICE ALERT: srv-reg-aspn-t1;CPU Usage;CRITICAL;SOFT;1;CRITICAL: \Processor(_total)\% Processor Time: 96.9232 > critical
[1574285494] SERVICE FLAPPING ALERT: sapxia;System Load;STARTED; Service appears to have started flapping (24.4% change >= 20.0% threshold)
[1574285494] SERVICE NOTIFICATION: amarz;sapxia;System Load;FLAPPINGSTART (OK);page_alex;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE NOTIFICATION: jherperger;sapxia;System Load;FLAPPINGSTART (OK);page_jherperger;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE NOTIFICATION: lselinger;sapxia;System Load;FLAPPINGSTART (OK);page_lonny;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE NOTIFICATION: midrangeteam;sapxia;System Load;FLAPPINGSTART (OK);notify-service-by-email;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE NOTIFICATION: oncall;sapxia;System Load;FLAPPINGSTART (OK);page_oncall;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE NOTIFICATION: plieffers;sapxia;System Load;FLAPPINGSTART (OK);page_paul;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE NOTIFICATION: redwards;sapxia;System Load;FLAPPINGSTART (OK);page_ryan;OK - load average: 6.43, 8.29, 10.71
[1574285494] SERVICE ALERT: sapxia;System Load;OK;HARD;1;OK - load average: 6.43, 8.29, 10.71
[1574285576] SERVICE ALERT: srv-skt-xen-99;CPU Process Check;CRITICAL;SOFT;1;Critical - javaw is utilizing 111 percent CPU

Code: Select all

[root@lp-dc1-nagn1 cron.d]# tail -n 50 /var/log/maillog
Nov 20 14:44:46 lp-dc1-nagn1 postfix/pickup[6211]: BED90405651: uid=1000 from=<nagios>
Nov 20 14:44:46 lp-dc1-nagn1 postfix/cleanup[2861]: BED90405651: message-id=<[email protected]>
Nov 20 14:44:46 lp-dc1-nagn1 postfix/qmgr[10153]: BED90405651: from=<[email protected]>, size=815, nrcpt=1 (queue active)
Nov 20 14:44:47 lp-dc1-nagn1 postfix/smtp[2864]: BED90405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.23, delays=0.02/0/0/0.21, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63256278336729, Hostname=MSG-DC1-EXCH-2.saskpower.sk.ca] 2257 bytes in 0.186, 11.849 KB/sec Queued mail for delivery)
Nov 20 14:44:47 lp-dc1-nagn1 postfix/qmgr[10153]: BED90405651: removed
Nov 20 14:50:28 lp-dc1-nagn1 postfix/pickup[6211]: 203F5405651: uid=1000 from=<nagios>
Nov 20 14:50:28 lp-dc1-nagn1 postfix/cleanup[13758]: 203F5405651: message-id=<[email protected]>
Nov 20 14:50:28 lp-dc1-nagn1 postfix/qmgr[10153]: 203F5405651: from=<[email protected]>, size=732, nrcpt=1 (queue active)
Nov 20 14:50:28 lp-dc1-nagn1 postfix/smtp[13762]: 203F5405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.19, delays=0.04/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63342177682811, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2174 bytes in 0.134, 15.835 KB/sec Queued mail for delivery)
Nov 20 14:50:28 lp-dc1-nagn1 postfix/qmgr[10153]: 203F5405651: removed
Nov 20 14:51:15 lp-dc1-nagn1 postfix/pickup[6211]: 5EF67405651: uid=1000 from=<nagios>
Nov 20 14:51:15 lp-dc1-nagn1 postfix/cleanup[13758]: 5EF67405651: message-id=<[email protected]>
Nov 20 14:51:15 lp-dc1-nagn1 postfix/qmgr[10153]: 5EF67405651: from=<[email protected]>, size=729, nrcpt=1 (queue active)
Nov 20 14:51:15 lp-dc1-nagn1 postfix/smtp[13762]: 5EF67405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.19, delays=0.03/0/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63342177682831, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2171 bytes in 0.134, 15.802 KB/sec Queued mail for delivery)
Nov 20 14:51:15 lp-dc1-nagn1 postfix/qmgr[10153]: 5EF67405651: removed
Nov 20 14:51:17 lp-dc1-nagn1 postfix/pickup[6211]: 3A2E0405651: uid=1000 from=<nagios>
Nov 20 14:51:17 lp-dc1-nagn1 postfix/cleanup[13758]: 3A2E0405651: message-id=<[email protected]>
Nov 20 14:51:17 lp-dc1-nagn1 postfix/qmgr[10153]: 3A2E0405651: from=<[email protected]>, size=826, nrcpt=1 (queue active)
Nov 20 14:51:17 lp-dc1-nagn1 postfix/smtp[13762]: 3A2E0405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.21, delays=0.03/0/0.04/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63088774612336, Hostname=MSG-DC1-EXCH-3.saskpower.sk.ca] 2268 bytes in 0.133, 16.613 KB/sec Queued mail for delivery)
Nov 20 14:51:17 lp-dc1-nagn1 postfix/qmgr[10153]: 3A2E0405651: removed
Nov 20 15:01:14 lp-dc1-nagn1 postfix/pickup[6211]: 1B331405651: uid=1000 from=<nagios>
Nov 20 15:01:14 lp-dc1-nagn1 postfix/cleanup[31717]: 1B331405651: message-id=<[email protected]>
Nov 20 15:01:14 lp-dc1-nagn1 postfix/qmgr[10153]: 1B331405651: from=<[email protected]>, size=785, nrcpt=1 (queue active)
Nov 20 15:01:14 lp-dc1-nagn1 postfix/smtp[31724]: 1B331405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.3, delays=0.04/0.01/0.05/0.2, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63346472648749, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2227 bytes in 0.183, 11.836 KB/sec Queued mail for delivery)
Nov 20 15:01:14 lp-dc1-nagn1 postfix/qmgr[10153]: 1B331405651: removed
Nov 20 15:13:49 lp-dc1-nagn1 postfix/pickup[6211]: 793D3405651: uid=1000 from=<nagios>
Nov 20 15:13:49 lp-dc1-nagn1 postfix/cleanup[20240]: 793D3405651: message-id=<[email protected]>
Nov 20 15:13:49 lp-dc1-nagn1 postfix/qmgr[10153]: 793D3405651: from=<[email protected]>, size=865, nrcpt=1 (queue active)
Nov 20 15:13:49 lp-dc1-nagn1 postfix/smtp[20246]: 793D3405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.2, delays=0.04/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63093069578579, Hostname=MSG-DC1-EXCH-3.saskpower.sk.ca] 2307 bytes in 0.133, 16.935 KB/sec Queued mail for delivery)
Nov 20 15:13:49 lp-dc1-nagn1 postfix/qmgr[10153]: 793D3405651: removed
Nov 20 15:16:37 lp-dc1-nagn1 postfix/pickup[6211]: E3F4D405651: uid=1000 from=<nagios>
Nov 20 15:16:37 lp-dc1-nagn1 postfix/cleanup[25323]: E3F4D405651: message-id=<[email protected]>
Nov 20 15:16:37 lp-dc1-nagn1 postfix/qmgr[10153]: E3F4D405651: from=<[email protected]>, size=763, nrcpt=1 (queue active)
Nov 20 15:16:38 lp-dc1-nagn1 postfix/smtp[25330]: E3F4D405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.28, delays=0.04/0.01/0/0.23, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63346472649122, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2205 bytes in 0.189, 11.384 KB/sec Queued mail for delivery)
Nov 20 15:16:38 lp-dc1-nagn1 postfix/qmgr[10153]: E3F4D405651: removed
Nov 20 15:20:16 lp-dc1-nagn1 postfix/pickup[6211]: A8A8D405651: uid=1000 from=<nagios>
Nov 20 15:20:16 lp-dc1-nagn1 postfix/cleanup[31548]: A8A8D405651: message-id=<[email protected]>
Nov 20 15:20:16 lp-dc1-nagn1 postfix/qmgr[10153]: A8A8D405651: from=<[email protected]>, size=848, nrcpt=1 (queue active)
Nov 20 15:20:16 lp-dc1-nagn1 postfix/smtp[31552]: A8A8D405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.2, delays=0.04/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63346472649233, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2290 bytes in 0.131, 16.943 KB/sec Queued mail for delivery)
Nov 20 15:20:16 lp-dc1-nagn1 postfix/qmgr[10153]: A8A8D405651: removed
Nov 20 15:25:16 lp-dc1-nagn1 postfix/pickup[6211]: 3621A405651: uid=1000 from=<nagios>
Nov 20 15:25:16 lp-dc1-nagn1 postfix/cleanup[7498]: 3621A405651: message-id=<[email protected]>
Nov 20 15:25:16 lp-dc1-nagn1 postfix/qmgr[10153]: 3621A405651: from=<[email protected]>, size=820, nrcpt=1 (queue active)
Nov 20 15:25:16 lp-dc1-nagn1 postfix/smtp[7501]: 3621A405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.43, delays=0.08/0.01/0/0.34, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63093069578842, Hostname=MSG-DC1-EXCH-3.saskpower.sk.ca] 2262 bytes in 0.330, 6.687 KB/sec Queued mail for delivery)
Nov 20 15:25:16 lp-dc1-nagn1 postfix/qmgr[10153]: 3621A405651: removed
Nov 20 15:31:34 lp-dc1-nagn1 postfix/pickup[6211]: 4E31D405651: uid=1000 from=<nagios>
Nov 20 15:31:34 lp-dc1-nagn1 postfix/cleanup[18037]: 4E31D405651: message-id=<[email protected]>
Nov 20 15:31:34 lp-dc1-nagn1 postfix/qmgr[10153]: 4E31D405651: from=<[email protected]>, size=758, nrcpt=1 (queue active)
Nov 20 15:31:34 lp-dc1-nagn1 postfix/smtp[18042]: 4E31D405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.2, delays=0.04/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63260573303542, Hostname=MSG-DC1-EXCH-2.saskpower.sk.ca] 2200 bytes in 0.141, 15.218 KB/sec Queued mail for delivery)
Nov 20 15:31:34 lp-dc1-nagn1 postfix/qmgr[10153]: 4E31D405651: removed

Code: Select all

[root@lp-dc1-nagn1 cron.d]# tail -n 50 /usr/local/nagiosxi/tmp/phpmailer.log
[11-19-2019 13:54:00] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 13:54:19] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 13:59:48] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:06:55] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:15:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:16:40] Message sent! (method=smtp;host=172.30.4.111;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:18:50] Message sent! (method=smtp;host=172.30.4.112;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:22:09] Message sent! (method=smtp;host=172.30.4.112;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:30:40] Message sent! (method=sendmail), Referer: admin/testemail.php
[11-19-2019 14:32:11] Message sent! (method=sendmail), Referer: admin/testemail.php
[11-19-2019 14:42:23] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:48:10] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=tls), Referer: admin/testemail.php
[11-19-2019 14:48:24] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=ssl), Referer: admin/testemail.php
[11-20-2019 08:26:24] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:25:33] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:39:22] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-20-2019 09:39:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-20-2019 12:21:56] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
I have attached the screenshot as requested
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Emails Stoped working

Post by benjaminsmith »

Hello @spcmidrange,

Looking over the configuration files, it appears that notifications are not enabled for the contacts using the phpmailer notification handlers ( xi_host_notification_handler or xi_service_notification_handler).

Please enable notifications for those contacts and let us know if the problem is resolved.
define contact {
contact_name bkazuska
alias Bonnie Kazuska
service_notification_period bkazuska_notification_times
host_notification_period bkazuska_notification_times
service_notification_options r,w,u,c,f,s
host_notification_options r,d,u,f,s
service_notification_commands xi_service_notification_handler
host_notification_commands xi_host_notification_handler
email [email protected]
minimum_importance 0
host_notifications_enabled 0
service_notifications_enabled 0
can_submit_commands 1
retain_status_information 1
retain_nonstatus_information 1
}
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!
spcmidrange
Posts: 47
Joined: Fri Jun 15, 2012 12:54 pm

Re: NagiosXI Emails Stoped working

Post by spcmidrange »

Good Day

Thank you for looking this over. I should provide more info.

The account you have pointed out should be disabled. The account i am concerned about is the "midrangeteam" account which is a group email for our team (hence why the notifications on the account you mentioned is disabled, user would get email from the midrangeteam group email). Now in that service profile i may have made changes to move off Xi notifications as i needed emails to work. I have since changed the account back, verified that enable notifications is on in Core (host and service) and in XI. I verified emails are not working again, but testing from the User account email test works:

Code: Select all

define contact {
    contact_name                     midrangeteam
    alias                            midrange
    host_notifications_enabled       1
    service_notifications_enabled    1
    host_notification_options        d,u,r,f,s,
    service_notification_options     w,u,c,r,f,s,
    host_notification_commands       xi_host_notification_handler
    service_notification_commands    xi_service_notification_handler
    email                            [email protected]
    use                              xi_contact_generic
}

Code: Select all

[root@lp-dc1-nagn1 cron.d]# tail -n 50 /usr/local/nagios/var/nagios.log
[1574345363] wproc: Registry request: name=Core Worker 27641;pid=27641
[1574345363] wproc: Registry request: name=Core Worker 27642;pid=27642
[1574345363] wproc: Registry request: name=Core Worker 27644;pid=27644
[1574345363] wproc: Registry request: name=Core Worker 27643;pid=27643
[1574345363] wproc: Registry request: name=Core Worker 27645;pid=27645
[1574345363] wproc: Registry request: name=Core Worker 27646;pid=27646
[1574345363] wproc: Registry request: name=Core Worker 27647;pid=27647
[1574345363] wproc: Registry request: name=Core Worker 27648;pid=27648
[1574345363] wproc: Registry request: name=Core Worker 27651;pid=27651
[1574345363] wproc: Registry request: name=Core Worker 27649;pid=27649
[1574345363] ndomod: NDOMOD 2.1.2 (11-14-2016) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1574345363] ndomod: Successfully connected to data sink.  0 queued items to flush.
[1574345363] ndomod registered for process data
[1574345363] ndomod registered for log data'
[1574345363] ndomod registered for system command data'
[1574345363] ndomod registered for event handler data'
[1574345363] ndomod registered for notification data'
[1574345363] ndomod registered for comment data'
[1574345363] ndomod registered for downtime data'
[1574345363] ndomod registered for flapping data'
[1574345363] ndomod registered for program status data'
[1574345363] ndomod registered for host status data'
[1574345363] ndomod registered for service status data'
[1574345363] ndomod registered for adaptive program data'
[1574345363] ndomod registered for adaptive host data'
[1574345363] ndomod registered for adaptive service data'
[1574345363] ndomod registered for external command data'
[1574345363] ndomod registered for aggregated status data'
[1574345363] ndomod registered for retention data'
[1574345363] ndomod registered for contact data'
[1574345363] ndomod registered for contact notification data'
[1574345363] ndomod registered for acknowledgement data'
[1574345363] ndomod registered for state change data'
[1574345363] ndomod registered for contact status data'
[1574345363] ndomod registered for adaptive contact data'
[1574345363] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1574345364] Successfully launched command file worker with pid 27728
[1574345434] SERVICE NOTIFICATION: trsmith;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);xi_service_notification_handler;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: amarz;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);page_alex;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: bkazuska;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);xi_service_notification_handler;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: jherperger;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);page_jherperger;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: lselinger;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);page_lonny;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: midrangeteam;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);xi_service_notification_handler;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: oncall;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);page_oncall;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: plieffers;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);page_paul;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345434] SERVICE NOTIFICATION: redwards;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);page_ryan;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
[1574345476] SERVICE ALERT: sapxa8;Memory Used;WARNING;SOFT;1;WARNING: \Memory\% Committed Bytes In Use: 80.3658 > warning
[1574345552] SERVICE ALERT: ami-skt-mdm-t1;System Load;WARNING;SOFT;1;WARNING - load average: 5.01, 2.73, 2.30
[1574345597] SERVICE ALERT: sapxa8;Memory Used;OK;SOFT;1;OK: \Memory\% Committed Bytes In Use: 44.627
[1574345610] SERVICE ALERT: ami-skt-mdm-t1;System Load;OK;SOFT;1;OK - load average: 3.59, 2.74, 2.33

Code: Select all

[root@lp-dc1-nagn1 cron.d]# tail -n 50 /var/log/maillog
Nov 20 16:15:15 lp-dc1-nagn1 postfix/pickup[23074]: A336B405651: uid=1000 from=<nagios>
Nov 20 16:15:15 lp-dc1-nagn1 postfix/cleanup[26597]: A336B405651: message-id=<[email protected]>
Nov 20 16:15:15 lp-dc1-nagn1 postfix/qmgr[10153]: A336B405651: from=<[email protected]>, size=844, nrcpt=1 (queue active)
Nov 20 16:15:15 lp-dc1-nagn1 postfix/smtp[26601]: A336B405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.21, delays=0.04/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63350767616474, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2286 bytes in 0.137, 16.210 KB/sec Queued mail for delivery)
Nov 20 16:15:15 lp-dc1-nagn1 postfix/qmgr[10153]: A336B405651: removed
Nov 20 16:25:58 lp-dc1-nagn1 postfix/pickup[23074]: 389B6405651: uid=1000 from=<nagios>
Nov 20 16:25:58 lp-dc1-nagn1 postfix/cleanup[12099]: 389B6405651: message-id=<[email protected]>
Nov 20 16:25:58 lp-dc1-nagn1 postfix/qmgr[10153]: 389B6405651: from=<[email protected]>, size=871, nrcpt=1 (queue active)
Nov 20 16:25:58 lp-dc1-nagn1 postfix/smtp[12105]: 389B6405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.19, delays=0.03/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63097364546318, Hostname=MSG-DC1-EXCH-3.saskpower.sk.ca] 2313 bytes in 0.132, 17.077 KB/sec Queued mail for delivery)
Nov 20 16:25:58 lp-dc1-nagn1 postfix/qmgr[10153]: 389B6405651: removed
Nov 20 16:56:07 lp-dc1-nagn1 postfix/pickup[23074]: 1CFA7405651: uid=1000 from=<nagios>
Nov 20 16:56:07 lp-dc1-nagn1 postfix/cleanup[30295]: 1CFA7405651: message-id=<[email protected]>
Nov 20 16:56:07 lp-dc1-nagn1 postfix/qmgr[10153]: 1CFA7405651: from=<[email protected]>, size=755, nrcpt=1 (queue active)
Nov 20 16:56:07 lp-dc1-nagn1 postfix/smtp[30300]: 1CFA7405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.22, delays=0.03/0.01/0/0.17, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63350767617393, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2197 bytes in 0.133, 16.118 KB/sec Queued mail for delivery)
Nov 20 16:56:07 lp-dc1-nagn1 postfix/qmgr[10153]: 1CFA7405651: removed
Nov 20 18:25:38 lp-dc1-nagn1 postfix/pickup[22294]: 2ED21405651: uid=1000 from=<nagios>
Nov 20 18:25:38 lp-dc1-nagn1 postfix/cleanup[18242]: 2ED21405651: message-id=<[email protected]>
Nov 20 18:25:38 lp-dc1-nagn1 postfix/qmgr[10153]: 2ED21405651: from=<[email protected]>, size=844, nrcpt=1 (queue active)
Nov 20 18:25:38 lp-dc1-nagn1 postfix/smtp[18245]: 2ED21405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.112]:25, delay=0.22, delays=0.05/0.01/0/0.16, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63359357550714, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2286 bytes in 0.145, 15.388 KB/sec Queued mail for delivery)
Nov 20 18:25:38 lp-dc1-nagn1 postfix/qmgr[10153]: 2ED21405651: removed
Nov 20 18:50:32 lp-dc1-nagn1 postfix/pickup[26211]: 12DB3405651: uid=1000 from=<nagios>
Nov 20 18:50:32 lp-dc1-nagn1 postfix/cleanup[27454]: 12DB3405651: message-id=<[email protected]>
Nov 20 18:50:32 lp-dc1-nagn1 postfix/qmgr[10153]: 12DB3405651: from=<[email protected]>, size=820, nrcpt=1 (queue active)
Nov 20 18:50:32 lp-dc1-nagn1 postfix/smtp[27458]: 12DB3405651: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.23, delays=0.04/0.01/0/0.18, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63273458204864, Hostname=MSG-DC1-EXCH-2.saskpower.sk.ca] 2262 bytes in 0.161, 13.657 KB/sec Queued mail for delivery)
Nov 20 18:50:32 lp-dc1-nagn1 postfix/qmgr[10153]: 12DB3405651: removed
Nov 21 03:50:08 lp-dc1-nagn1 postfix/pickup[28229]: 4407C4026BF: uid=0 from=<root>
Nov 21 03:50:08 lp-dc1-nagn1 postfix/cleanup[1654]: 4407C4026BF: message-id=<[email protected]>
Nov 21 03:50:08 lp-dc1-nagn1 postfix/qmgr[10153]: 4407C4026BF: from=<[email protected]>, size=1355, nrcpt=1 (queue active)
Nov 21 03:50:08 lp-dc1-nagn1 postfix/local[1659]: 4407C4026BF: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.06, delays=0.04/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 21 03:50:08 lp-dc1-nagn1 postfix/qmgr[10153]: 4407C4026BF: removed
Nov 21 07:00:44 lp-dc1-nagn1 postfix/pickup[15079]: CC0C24026BF: uid=0 from=<root>
Nov 21 07:00:44 lp-dc1-nagn1 postfix/cleanup[6184]: CC0C24026BF: message-id=<[email protected]>
Nov 21 07:00:44 lp-dc1-nagn1 postfix/qmgr[10153]: CC0C24026BF: from=<[email protected]>, size=4218, nrcpt=1 (queue active)
Nov 21 07:00:44 lp-dc1-nagn1 postfix/local[6189]: CC0C24026BF: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.06, delays=0.04/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Nov 21 07:00:44 lp-dc1-nagn1 postfix/qmgr[10153]: CC0C24026BF: removed
Nov 21 08:01:32 lp-dc1-nagn1 postfix/pickup[15079]: F3EE54026BF: uid=1000 from=<nagios>
Nov 21 08:01:32 lp-dc1-nagn1 postfix/cleanup[13809]: F3EE54026BF: message-id=<[email protected]>
Nov 21 08:01:32 lp-dc1-nagn1 postfix/qmgr[10153]: F3EE54026BF: from=<[email protected]>, size=871, nrcpt=1 (queue active)
Nov 21 08:01:32 lp-dc1-nagn1 postfix/smtp[13816]: F3EE54026BF: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.21, delays=0.05/0.01/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63419487092788, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2313 bytes in 0.135, 16.715 KB/sec Queued mail for delivery)
Nov 21 08:01:32 lp-dc1-nagn1 postfix/qmgr[10153]: F3EE54026BF: removed
Nov 21 08:02:15 lp-dc1-nagn1 postfix/pickup[15079]: 128DE4026BF: uid=1000 from=<nagios>
Nov 21 08:02:15 lp-dc1-nagn1 postfix/cleanup[13809]: 128DE4026BF: message-id=<[email protected]>
Nov 21 08:02:15 lp-dc1-nagn1 postfix/qmgr[10153]: 128DE4026BF: from=<[email protected]>, size=867, nrcpt=1 (queue active)
Nov 21 08:02:15 lp-dc1-nagn1 postfix/smtp[13816]: 128DE4026BF: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.2, delays=0.04/0/0/0.16, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63419487092809, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2309 bytes in 0.144, 15.609 KB/sec Queued mail for delivery)
Nov 21 08:02:15 lp-dc1-nagn1 postfix/qmgr[10153]: 128DE4026BF: removed
Nov 21 08:03:54 lp-dc1-nagn1 postfix/pickup[15079]: 037B64026BF: uid=1000 from=<nagios>
Nov 21 08:03:54 lp-dc1-nagn1 postfix/cleanup[13809]: 037B64026BF: message-id=<[email protected]>
Nov 21 08:03:54 lp-dc1-nagn1 postfix/qmgr[10153]: 037B64026BF: from=<[email protected]>, size=867, nrcpt=1 (queue active)
Nov 21 08:03:54 lp-dc1-nagn1 postfix/smtp[13816]: 037B64026BF: to=<[email protected]>, relay=smtpmailroute.saskpower.sk.ca[172.30.4.111]:25, delay=0.17, delays=0.02/0/0/0.15, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=63419487092846, Hostname=MSG-DC1-EXCH-1.saskpower.sk.ca] 2309 bytes in 0.134, 16.766 KB/sec Queued mail for delivery)
Nov 21 08:03:54 lp-dc1-nagn1 postfix/qmgr[10153]: 037B64026BF: removed

Code: Select all

root@lp-dc1-nagn1 cron.d]# tail -n 50 /usr/local/nagiosxi/tmp/phpmailer.log
[11-19-2019 13:54:00] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 13:54:19] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 13:59:48] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:06:55] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:15:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:16:40] Message sent! (method=smtp;host=172.30.4.111;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:18:50] Message sent! (method=smtp;host=172.30.4.112;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:22:09] Message sent! (method=smtp;host=172.30.4.112;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:30:40] Message sent! (method=sendmail), Referer: admin/testemail.php
[11-19-2019 14:32:11] Message sent! (method=sendmail), Referer: admin/testemail.php
[11-19-2019 14:42:23] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-19-2019 14:48:10] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=tls), Referer: admin/testemail.php
[11-19-2019 14:48:24] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=ssl), Referer: admin/testemail.php
[11-20-2019 08:26:24] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:25:33] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:39:22] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-20-2019 09:39:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-20-2019 12:21:56] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-21-2019 08:09:45] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
I have downloaded a new system profile, and will send it to you shortly
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Emails Stoped working

Post by benjaminsmith »

Hello,

Thanks for clearing that up, that makes sense. Looking over the logs once again, all of the test messages are connecting without security enabled over port 25.

Code: Select all

[11-20-2019 08:26:24] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:25:33] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: admin/testemail.php
[11-20-2019 09:39:22] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
[11-20-2019 09:39:42] Message sent! (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=none), Referer: account/testnotification.php > PHPmailer Test
However, the failed connections are over either SSL or TLS on port 25. Usually encyrptied connections use another port such as 587 or 465. Can you verify the port settings with your mail admin?

Code: Select all

[11-19-2019 14:48:10] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=tls), Referer: admin/testemail.php
[11-19-2019 14:48:24] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting (method=smtp;host=smtpmailroute.saskpower.sk.ca;port=25;security=ssl), Referer: admin/testemail.php
This notification went out to the midrangeteam at 8:10:24 on 11/21. Can you find the corresponding entry in the phpmailer log as the tail did not go back this far.

Code: Select all

[1574345434] SERVICE NOTIFICATION: midrangeteam;adms-dc2-nms-t1;NRPE Client SSL Expiration;CUSTOM (CRITICAL);xi_service_notification_handler;SSL_CERT CRITICAL localhost: x509 certificate will expire in 5 day(s) on Nov 26 22:08:55 2019 GMT;Ryan Edwards;Testing!
Also, take a look at the troubleshooting guide from PHPmailer to help resolve it.

https://github.com/PHPMailer/PHPMailer/ ... leshooting
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!
Locked