httpd error_log entries?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

httpd error_log entries?

Post 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.
You do not have the required permissions to view the files attached to this post.
Last edited by jbennett on Fri Jul 12, 2013 7:57 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: httpd error_log entries?

Post 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!
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: httpd error_log entries?

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: httpd error_log entries?

Post by abrist »

What version of the nocscreen component and what version of XI are you running?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: httpd error_log entries?

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: httpd error_log entries?

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: httpd error_log entries?

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: httpd error_log entries?

Post by abrist »

Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

Re: httpd error_log entries?

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: httpd error_log entries?

Post by abrist »

What version of php (and modules/components) is running on your XI box?

Code: Select all

yum list installed | grep php
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked