Page 1 of 1

Errors in httpd/error_log

Posted: Thu Dec 03, 2015 10:31 pm
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


Re: Errors in httpd.log

Posted: Thu Dec 03, 2015 10:36 pm
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?

Re: Errors in httpd.log

Posted: Fri Dec 04, 2015 12:13 am
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



Re: Errors in httpd/error_log

Posted: Fri Dec 04, 2015 2:22 am
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

Re: Errors in httpd/error_log

Posted: Fri Dec 04, 2015 3:20 pm
by rkennedy
Are these errors affecting the functionality of Nagios XI at all or are they only PHP Notices?

Re: Errors in httpd/error_log

Posted: Sun Dec 06, 2015 7:07 pm
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.

Re: Errors in httpd/error_log

Posted: Mon Dec 07, 2015 11:33 am
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.

Re: Errors in httpd/error_log

Posted: Mon Dec 07, 2015 6:56 pm
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.