Page 1 of 1

getting continuous error on httpd ssl_error

Posted: Sat Sep 29, 2018 2:36 pm
by Gonela
Hi

getting continuous error on /httpd/ssl_error_log

please help me on this.

Code: Select all

[root@nagihpcorp01 ~]# tail -f /var/log/httpd/ssl_error_log
[Sun Sep 30 05:28:23.794663 2018] [:error] [pid 12220] [client 10.122.34.76:53839] PHP Notice:  Array to string conversion in /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php on line 1386, referer: https://nagihpcorp01/nagiosxi/admin/sysstat.php?pageopt=monitoringengine
[Sun Sep 30 05:28:26.213071 2018] [:error] [pid 12220] [client 10.122.34.76:53839] PHP Notice:  Array to string conversion in /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php on line 1386, referer: https://nagihpcorp01/nagiosxi/admin/sysstat.php?pageopt=monitoringengine
[Sun Sep 30 05:28:29.289871 2018] [:error] [pid 12220] [client 10.122.34.76:53839] PHP Notice:  Array to string conversion in /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php on line 1386, referer: https://nagihpcorp01/nagiosxi/admin/sysstat.php?pageopt=monitoringengine

Re: getting continuous error on httpd ssl_error

Posted: Mon Oct 01, 2018 11:33 am
by cdienger
Thanks for pointing this out. I'm able to verify the behavior and will check with our dev team regarding it.

Re: getting continuous error on httpd ssl_error

Posted: Mon Oct 01, 2018 12:08 pm
by cdienger
It will be fixed in the next patch release. You can work around it in the meantime by changing the line to:

Code: Select all

$output .= "    <eventtotals type='" . $event_type . "'>" . intval($total_events) . "</eventtotals>\n";

Re: getting continuous error on httpd ssl_error

Posted: Mon Oct 01, 2018 3:15 pm
by Gonela
Can you share where will i change that parameter ?

Re: getting continuous error on httpd ssl_error

Posted: Mon Oct 01, 2018 3:40 pm
by cdienger
Line 1386 of /usr/local/nagiosxi/html/includes/utils-xmlstatus.inc.php.

Re: getting continuous error on httpd ssl_error

Posted: Mon Oct 08, 2018 4:23 am
by Gonela
Thanks for help,

Now getting following error

Code: Select all

[Mon Oct 08 20:21:05.519577 2018] [:error] [pid 25424] [client 10.122.2.99:61601] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://nagihpcorp01/nagios/pnp/index.php?host=.pnp-internal&view=0
[Mon Oct 08 20:21:05.519587 2018] [:error] [pid 25424] [client 10.122.2.99:61601] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://nagihpcorp01/nagios/pnp/index.php?host=.pnp-internal&view=0
[Mon Oct 08 20:21:05.571683 2018] [:error] [pid 18059] [client 10.122.2.99:61605] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1044, referer: https://nagihpcorp01/nagios/pnp/index.php?host=.pnp-internal&view=0
[Mon Oct 08 20:21:05.613154 2018] [:error] [pid 25860] [client 10.122.2.99:61602] PHP Deprecated:  Assigning the return value of new by reference is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1044, referer: https://nagihpcorp01/nagios/pnp/index.php?host=.pnp-internal&view=0

Re: getting continuous error on httpd ssl_error

Posted: Mon Oct 08, 2018 11:13 am
by cdienger
The error is actually a notice that will not impact anything. You can turn the messages off by editing the /etc/php.ini and adding:

error_reporting = E_ALL & ~E_DEPRECATED

Re: getting continuous error on httpd ssl_error

Posted: Tue Oct 09, 2018 10:27 am
by cdienger
I've split the new error to it's own thread - https://support.nagios.com/forum/viewto ... 16&t=50581