Page 1 of 1

Scheduled reports not working

Posted: Wed Sep 11, 2019 4:19 am
by RIDS_I2MP
Hi Team,

We have few scheduled reports in our Nagios XI that are sent to different teams and users.

Last week, we upgraded our Nagios servers OS from Centos 6.4 to CentOS 7.6 and the restoration was completed successfully.
After the upgrade, we are facing issue with the scheduled reports. We are able to see the reports but Nagios is not sending reports to the respective teams and users.

We have checked the user permissions and it is as per the requirement.

The only thing is, users are not receiving the reports. Please help us with the same on priority.

Thanks in advance!!

Re: Scheduled reports not working

Posted: Wed Sep 11, 2019 12:50 pm
by benjaminsmith
Hello @RIDS_I2MP,
We are able to see the reports but Nagios is not sending reports to the respective teams and users.
Just for clarification, you are not receiving any emails for scheduled reports. Is this correct? Typically if there's an issue with reports, it will be sent but maybe empty or not populating data correctly..

Run the following tail command, schedule the report to send in a minute or two and then post the output. Thanks.

Code: Select all

tail -f /var/log/httpd/*error_log
Also, post the output of the mail log.
For SMTP:

Code: Select all

tail /usr/local/nagiosxi/tmp/phpmailer.log
For Sendmail:

Code: Select all

tail /var/log/maillog

Re: Scheduled reports not working

Posted: Thu Sep 12, 2019 8:22 am
by RIDS_I2MP
Hi Team,

Please find the details of below commands.

[root@eu1papu003 ~]# tail -f /var/log/httpd/*error_log
==> /var/log/httpd/error_log <==
[Wed Sep 11 04:54:59.366578 2019] [:error] [pid 23516] [client 10.147.151.246:46463] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/reports/
[Wed Sep 11 04:54:59.373464 2019] [:error] [pid 31416] [client 10.147.151.246:46462] PHP Warning: simplexml_load_string(): Entity: line 31: parser error : XML declaration allowed only at the start of the document in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/reports/
[Wed Sep 11 04:54:59.373491 2019] [:error] [pid 31416] [client 10.147.151.246:46462] PHP Warning: simplexml_load_string(): AL;SOFT;1;Error: Could not parse XML from http://10.144.223.155/nagiosxi/ (<?xml in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/reports/
[Wed Sep 11 04:54:59.373498 2019] [:error] [pid 31416] [client 10.147.151.246:46462] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/reports/
[Wed Sep 11 16:23:57.280883 2019] [:error] [pid 8044] [client 10.147.151.246:52874] PHP Warning: simplexml_load_string(): Entity: line 40: parser error : XML declaration allowed only at the start of the document in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/
[Wed Sep 11 16:23:57.280916 2019] [:error] [pid 8044] [client 10.147.151.246:52874] PHP Warning: simplexml_load_string(): AL;SOFT;1;Error: Could not parse XML from http://10.144.223.155/nagiosxi/ (<?xml in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/
[Wed Sep 11 16:23:57.280923 2019] [:error] [pid 8044] [client 10.147.151.246:52874] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/
[Wed Sep 11 16:23:57.291038 2019] [:error] [pid 13555] [client 10.147.151.246:52875] PHP Warning: simplexml_load_string(): Entity: line 40: parser error : XML declaration allowed only at the start of the document in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/
[Wed Sep 11 16:23:57.291071 2019] [:error] [pid 13555] [client 10.147.151.246:52875] PHP Warning: simplexml_load_string(): AL;SOFT;1;Error: Could not parse XML from http://10.144.223.155/nagiosxi/ (<?xml in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/
[Wed Sep 11 16:23:57.291078 2019] [:error] [pid 13555] [client 10.147.151.246:52875] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: http://10.144.223.156/nagiosxi/


[root@eu1papu003 ~]# tail /var/log/maillog
Sep 12 14:00:02 eu1papu003 postfix/qmgr[7357]: 24C61420B13: from=<[email protected]>, size=33446, nrcpt=1 (queue active)
Sep 12 14:00:02 eu1papu003 postfix/smtp[28601]: 24C61420B13: enabling PIX workarounds: disable_esmtp delay_dotcrlf for kecgate05.infosys.com[122.98.14.31]:25
Sep 12 14:01:07 eu1papu003 postfix/pickup[574]: CE506420B14: uid=1001 from=<[email protected]>
Sep 12 14:01:07 eu1papu003 postfix/cleanup[28598]: CE506420B14: message-id=<2e709a78ccf45febb64210a2e8663244@eu1papu003>
Sep 12 14:01:07 eu1papu003 postfix/qmgr[7357]: CE506420B14: from=<[email protected]>, size=2658, nrcpt=1 (queue active)
Sep 12 14:01:08 eu1papu003 postfix/smtp[30448]: CE506420B14: enabling PIX workarounds: disable_esmtp delay_dotcrlf for kecgate04.infosys.com[122.98.10.32]:25
Sep 12 14:01:12 eu1papu003 postfix/smtp[30448]: CE506420B14: to=<[email protected]>, relay=kecgate04.infosys.com[122.98.10.32]:25, delay=4.7, delays=0.02/0.01/0.49/4.1, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as E55101246B9)
Sep 12 14:01:12 eu1papu003 postfix/qmgr[7357]: CE506420B14: removed
Sep 12 14:01:14 eu1papu003 postfix/smtp[28601]: 24C61420B13: to=<[email protected]>, relay=kecgate05.infosys.com[122.98.14.31]:25, delay=73, delays=0.05/0/1.2/72, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 85383565BF)
Sep 12 14:01:14 eu1papu003 postfix/qmgr[7357]: 24C61420B13: removed


[root@eu1papu003 ~]# tail /usr/local/nagiosxi/tmp/phpmailer.log
Could not instantiate mail function. (method=sendmail)
Could not instantiate mail function. (method=sendmail)
Could not instantiate mail function. (method=sendmail)

Please check and update us.

Re: Scheduled reports not working

Posted: Thu Sep 12, 2019 12:51 pm
by benjaminsmith
Hello,

I see there are two different IP addresses specified for the Nagios XI server. Which is the correct one - the ip address ending in 155 or 156? Go to Admin > System Config > System Settings to verify you have set the correct Program and Exteranl URL's (if they differ). This values need to be correct in order for Nagios XI to generate reports.
porgram-url.png