Page 1 of 2
httpd error_log entries?
Posted: Thu Jul 11, 2013 3:26 pm
by jbennett
I'm attempting to make sure that our server is running as efficiently as possible. In doing so, I've come across a number of errors logged in the error_log for httpd:
Code: Select all
[Thu Jul 11 14:57:50 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: min_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 115, referer: http://xxxxxxxx/nagiosxi/includes/components/nocscreen/noc.php
[Thu Jul 11 14:57:50 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: max_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 116, referer: http://xxxxxxxx/nagiosxi/includes/components/nocscreen/noc.php
[Thu Jul 11 14:57:50 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: avg_latency in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 117, referer: http://xxxxxxxx/nagiosxi/includes/components/nocscreen/noc.php
[Thu Jul 11 14:57:50 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: min_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 118, referer: http://xxxxxxxx/nagiosxi/includes/components/nocscreen/noc.php
[Thu Jul 11 14:57:50 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: max_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 119, referer: http://xxxxxxxx/nagiosxi/includes/components/nocscreen/noc.php
[Thu Jul 11 14:57:50 2013] [error] [client xx.xx.xx.xx] PHP Notice: Undefined index: avg_execution_time in /usr/local/nagiosxi/html/includes/utils-xmlsysstat.inc.php on line 120, referer: http://xxxxxxxx/nagiosxi/includes/components/nocscreen/noc.php
My php.ini is attached.
Re: httpd error_log entries?
Posted: Thu Jul 11, 2013 3:37 pm
by slansing
While these are labeled as errors that is how the error log notes any anomalies. They are just notices about a mismatch, nothing critical. We can try to hunt down the cause, though, in many cases it is just a time consumer. We'd be happy to help though!
Re: httpd error_log entries?
Posted: Fri Jul 12, 2013 7:56 am
by jbennett
I wouldn't mind trying to track them down, as a learning exercise mostly. Any help woudl be appreciated.
Looking at utils-xmlsysstat.inc.php, I see the following:
Code: Select all
case "activeservicecheckperf":
$output.="<activeservicecheckperf>\n";
$output.="<min_latency>".$varr["min_latency"]."</min_latency>\n";
$output.="<max_latency>".$varr["max_latency"]."</max_latency>\n";
$output.="<avg_latency>".$varr["avg_latency"]."</avg_latency>\n";
$output.="<min_execution_time>".$varr["min_execution_time"]."</min_execution_time>\n";
$output.="<max_execution_time>".$varr["max_execution_time"]."</max_execution_time>\n";
$output.="<avg_execution_time>".$varr["avg_execution_time"]."</avg_execution_time>\n";
$output.="</activeservicecheckperf>\n";
break;
Searching the file, this is the only instance of min_latency, max_latency, avg_latency I can find in the file?
Re: httpd error_log entries?
Posted: Fri Jul 12, 2013 9:13 am
by abrist
What version of the nocscreen component and what version of XI are you running?
Re: httpd error_log entries?
Posted: Fri Jul 12, 2013 9:40 am
by jbennett
1.0 of NOC and 2.2 of XI 2012
From the components list:
Operations Center
This component adds a read-only NOC screen for all current unhandled problems to the home menu.
Version: 1.0 Date: 01/24/2011 Author: Mike Guthrie. Nagios Enterprises, LLC
I'm a little confused though since the last release per this link has a different date but same version number?
http://exchange.nagios.org/directory/Ad ... nt/details
Ver: 1.0
Date: 2012-01-27
Re: httpd error_log entries?
Posted: Fri Jul 12, 2013 10:05 am
by abrist
The nocscreen is currently at version 1.2. Many old bugs were fixed in 1.2. You can update the component through the "Manage Components" option on the admin page.
Re: httpd error_log entries?
Posted: Fri Jul 12, 2013 10:15 am
by jbennett
abrist wrote:The nocscreen is currently at version 1.2. Many old bugs were fixed in 1.2. You can update the component through the "Manage Components" option on the admin page.
It appears that this doesn't work for systems that are behind a proxy, even with the proxy component installed and configured.
Where can I manually download the latest update for this and check for other updates on other components?
Re: httpd error_log entries?
Posted: Fri Jul 12, 2013 10:16 am
by abrist
Re: httpd error_log entries?
Posted: Mon Jul 15, 2013 7:47 am
by jbennett
I updated the component, but now when I check /httpd/error_log, I have the following:
Code: Select all
[Mon Jul 15 03:26:33 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 03:26:33 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 03:46:16 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 03:46:16 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 04:09:18 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 04:09:18 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 04:35:36 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 04:35:36 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 05:23:51 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 05:23:51 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 06:02:34 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 06:02:34 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 06:42:29 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 06:42:29 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
[Mon Jul 15 07:24:05 2013] [error] [client 127.0.0.1] PHP Warning: max() [<a href='function.max'>function.max</a>]: Array must contain atleast one element in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 3300
[Mon Jul 15 07:24:05 2013] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/pchart/pChart/pChart.class on line 2601
Re: httpd error_log entries?
Posted: Mon Jul 15, 2013 11:21 am
by abrist
What version of php (and modules/components) is running on your XI box?