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