simplexml_load_string errors
Posted: Tue Sep 24, 2019 2:36 am
Hello
i upgraded my Nagioxi devel and test environment and after that im getting a simplexml_load_string errors in apache ssl_error_log in both servers.
Both servers are Centos 7.6 and Nagiosxi 5.6.6. Both of them have few hosts(under 5) and few services to check, so there is no load on them. And is unmoddified configuration also.
First found the problem when i started to get alarms on Nagios Xi daemon/jobs alarms:
Error: Could not parse XML from https://servername/nagiosxi/ (?xml version=1.0 encoding=utf-8?
Devel errors:
[Tue Sep 24 10:09:21.422900 2019] [:error] [pid 29282] [client IP:61336] PHP Warning: simplexml_load_string(): Entity: line 25: 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: https://servername/nagiosxi/admin/
[Tue Sep 24 10:09:21.422932 2019] [:error] [pid 29282] [client IP:61336] PHP Warning: simplexml_load_string(): AL;SOFT;1;Error: Could not parse XML from https://servername/ (<?xml in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
[Tue Sep 24 10:09:21.422939 2019] [:error] [pid 29282] [client IP:61336] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
Test errors:
[Tue Sep 24 10:29:15.227679 2019] [:error] [pid 15538] [client IP:61929] PHP Warning: simplexml_load_string(): Entity: line 25: parser error : StartTag: invalid element name in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
[Tue Sep 24 10:29:15.227704 2019] [:error] [pid 15538] [client IP:61929] PHP Warning: simplexml_load_string(): ee;Memory Usage;STOPPED; Service appears to have stopped flapping (3.8% change < in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
[Tue Sep 24 10:29:15.227711 2019] [:error] [pid 15538] [client IP:61929] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
Dont want to upgrade live environment before these errors are corrected.
Thank you.
i upgraded my Nagioxi devel and test environment and after that im getting a simplexml_load_string errors in apache ssl_error_log in both servers.
Both servers are Centos 7.6 and Nagiosxi 5.6.6. Both of them have few hosts(under 5) and few services to check, so there is no load on them. And is unmoddified configuration also.
First found the problem when i started to get alarms on Nagios Xi daemon/jobs alarms:
Error: Could not parse XML from https://servername/nagiosxi/ (?xml version=1.0 encoding=utf-8?
Devel errors:
[Tue Sep 24 10:09:21.422900 2019] [:error] [pid 29282] [client IP:61336] PHP Warning: simplexml_load_string(): Entity: line 25: 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: https://servername/nagiosxi/admin/
[Tue Sep 24 10:09:21.422932 2019] [:error] [pid 29282] [client IP:61336] PHP Warning: simplexml_load_string(): AL;SOFT;1;Error: Could not parse XML from https://servername/ (<?xml in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
[Tue Sep 24 10:09:21.422939 2019] [:error] [pid 29282] [client IP:61336] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
Test errors:
[Tue Sep 24 10:29:15.227679 2019] [:error] [pid 15538] [client IP:61929] PHP Warning: simplexml_load_string(): Entity: line 25: parser error : StartTag: invalid element name in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
[Tue Sep 24 10:29:15.227704 2019] [:error] [pid 15538] [client IP:61929] PHP Warning: simplexml_load_string(): ee;Memory Usage;STOPPED; Service appears to have stopped flapping (3.8% change < in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
[Tue Sep 24 10:29:15.227711 2019] [:error] [pid 15538] [client IP:61929] PHP Warning: simplexml_load_string(): ^ in /usr/local/nagiosxi/html/includes/utils-systat.inc.php on line 17, referer: https://servername/nagiosxi/admin/
Dont want to upgrade live environment before these errors are corrected.
Thank you.