Errors in httpd/error_log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Errors in httpd/error_log

Post by rajasegar »

Please escalate to your developers to fix this issue below, the httpd.log file is full of this

Nagios 5.2.2
SNMP Trap Sender version: 1.5.1

Code: Select all

[Fri Dec 04 10:34:55 2015] [error] [client 10.17.44.201] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485, referer: http://10.17.19.234/nagiosxi/help/?xiwindow=api.php
[Fri Dec 04 10:34:56 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485
[Fri Dec 04 10:34:56 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485
[Fri Dec 04 10:35:01 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485
[Fri Dec 04 10:35:22 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485
[Fri Dec 04 10:35:26 2015] [error] [client 10.17.44.201] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485, referer: http://10.17.19.234/nagiosxi/help/?xiwindow=api.php
[Fri Dec 04 10:35:26 2015] [error] [client 10.17.44.201] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485, referer: http://10.17.19.234/nagiosxi/help/?xiwindow=api.php
[Fri Dec 04 10:35:26 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485
[Fri Dec 04 10:35:26 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485

Last edited by rajasegar on Fri Dec 04, 2015 2:21 am, edited 1 time in total.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Errors in httpd.log

Post by Box293 »

Can you do the following please:

Admin > System Extensions > Manage Components
Click Check for Updates
SNMP Trap Sender components should now show a 1.5.2 available
Click Install

Does that fix the errors in the logs?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Errors in httpd.log

Post by rajasegar »

Box293 wrote:Can you do the following please:

Admin > System Extensions > Manage Components
Click Check for Updates
SNMP Trap Sender components should now show a 1.5.2 available
Click Install

Does that fix the errors in the logs?
Looks like it stopped and replaced by a bunch of new errors.
Need to monitor for a while to be sure.

Code: Select all

[Fri Dec 04 11:52:08 2015] [error] [client 10.17.38.4] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485, referer: http://10.17.19.227/nagiosxi/index.php?
[Fri Dec 04 11:52:08 2015] [error] [client ::1] PHP Notice:  Undefined variable: f2 in /usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php on line 485
[Fri Dec 04 12:04:06 2015] [error] [client 10.17.44.70] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422
[Fri Dec 04 12:04:06 2015] [error] [client 10.17.44.70] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422
[Fri Dec 04 12:04:07 2015] [error] [client 10.17.44.70] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
[Fri Dec 04 12:04:07 2015] [error] [client 10.17.44.70] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
[Fri Dec 04 12:04:11 2015] [error] [client 10.17.44.70] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
[Fri Dec 04 12:04:11 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
[Fri Dec 04 12:04:12 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/index.php?
[Fri Dec 04 12:04:14 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/index.php?
[Fri Dec 04 12:04:15 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/index.php?
[Fri Dec 04 12:04:39 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/index.php?
[Fri Dec 04 12:04:39 2015] [error] [client 10.17.44.70] PHP Notice:  Undefined index: ccm_language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 719, referer: http://10.17.19.227/nagiosxi/includes/components/ccm/xi-index.php
[Fri Dec 04 12:04:39 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/ccm/xi-index.php
[Fri Dec 04 12:04:48 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/ccm/index.php?menu=invisible
[Fri Dec 04 12:04:50 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/ccm/index.php
[Fri Dec 04 12:04:53 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/ccm/?cmd=view&type=host
[Fri Dec 04 12:04:57 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/ccm/xi-index.php
[Fri Dec 04 12:04:57 2015] [error] [client 10.17.44.70] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/
[Fri Dec 04 12:20:32 2015] [error] [client 10.17.38.5] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/nocscreen/noc.php?host=&hostgroup=&servicegroup=&state=2&reporttimesubmitbutton=Update
[Fri Dec 04 12:20:34 2015] [error] [client 10.17.19.227] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422
[Fri Dec 04 12:20:37 2015] [error] [client 10.17.38.5] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/xicore/status.php?show=servicedetail&host=NET_MSB_REVERSE PROXY PRIMARY&service=Hardware Health
[Fri Dec 04 12:20:40 2015] [error] [client 10.17.38.5] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/xicore/status.php?host=NET_MSB_REVERSE+PROXY+PRIMARY
[Fri Dec 04 12:20:42 2015] [error] [client 10.17.19.227] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422
[Fri Dec 04 12:20:45 2015] [error] [client 10.17.38.5] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/xicore/status.php?show=hostdetail&host=NET_MSB_REVERSE+PROXY+PRIMARY
[Fri Dec 04 12:20:49 2015] [error] [client 10.17.38.5] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/
[Fri Dec 04 12:20:55 2015] [error] [client 10.17.38.5] PHP Notice:  unserialize(): Error at offset 0 of 1 bytes in /usr/local/nagiosxi/html/includes/components/helpsystem/helpsystem.inc.php on line 281, referer: http://10.17.19.227/nagiosxi/includes/components/nocscreen/noc.php
[Fri Dec 04 12:23:38 2015] [error] [client 10.17.44.34] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422
[Fri Dec 04 12:23:38 2015] [error] [client 10.17.44.34] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422
[Fri Dec 04 12:23:39 2015] [error] [client 10.17.44.34] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
[Fri Dec 04 12:23:40 2015] [error] [client 10.17.44.34] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1
[Fri Dec 04 12:23:41 2015] [error] [client 10.17.44.34] PHP Notice:  Undefined index: user_id in /usr/local/nagiosxi/html/includes/utils-users.inc.php on line 422, referer: http://10.17.19.227/nagiosxi/login.php?redirect=/nagiosxi/index.php%3f&noauth=1


5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Errors in httpd/error_log

Post by rajasegar »

More undefined variables

Code: Select all

[Fri Dec 04 15:20:42 2015] [error] [client 10.17.38.4] PHP Notice:  Undefined variable: host_ids_str in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 143, referer: http://10.17.19.227/nagiosxi/includes/components/nocscreen/noc.php?host=&hostgroup=CB_TEMP_WINTEL_SM1_PROD&servicegroup=&state=2&reporttimesubmitbutton=Update
[Fri Dec 04 15:20:42 2015] [error] [client 10.17.38.4] PHP Notice:  Undefined variable: service_ids_str in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 147, referer: http://10.17.19.227/nagiosxi/includes/components/nocscreen/noc.php?host=&hostgroup=CB_TEMP_WINTEL_SM1_PROD&servicegroup=&state=2&reporttimesubmitbutton=Update
[Fri Dec 04 15:20:42 2015] [error] [client 10.17.38.4] PHP Notice:  Undefined variable: service_ids in /usr/local/nagios
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Errors in httpd/error_log

Post by rkennedy »

Are these errors affecting the functionality of Nagios XI at all or are they only PHP Notices?
Former Nagios Employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Errors in httpd/error_log

Post by rajasegar »

rkennedy wrote:Are these errors affecting the functionality of Nagios XI at all or are they only PHP Notices?
So far I don't notice any issues.
However undefined variables is a fundamental programming issue and should not be treated as notices or warnings.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Errors in httpd/error_log

Post by lmiltchev »

However undefined variables is a fundamental programming issue and should not be treated as notices or warnings.
I tend to agree with you about this one. I posted an internal bug report (task id=7204) even though these notices don't affect the Nagios XI's functionality.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Errors in httpd/error_log

Post by rajasegar »

lmiltchev wrote:
However undefined variables is a fundamental programming issue and should not be treated as notices or warnings.
I tend to agree with you about this one. I posted an internal bug report (task id=7204) even though these notices don't affect the Nagios XI's functionality.
Thanks. I am sure the code is there for a reason. If it fails then there must be something impacted. It is just we have not encountered it yet.
Please close this ticket.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked