Undefined index

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Undefined index

Post by SteveBeauchemin »

I hesitate to post this as I do plan on moving from Nagios XI 5.3.4 to the latest version tomorrow.

But, I am seeing this in my /var/log/httpd/ssl_error_log file. (sanitized slightly)

Code: Select all

PHP Notice:  Undefined index: id in /usr/local/nagiosxi/html/includes/components/ccm/classes/data_class.php on line 1611, 
referer: https://[XI Host]/nagiosxi/includes/components/ccm/index.php?cmd=modify&type=hosttemplate&id=113&page=1&returnUrl=index.php%3Fcmd%3Dview%26type%3Dhosttemplate%26page%3D1

PHP Notice:  Undefined index: idMaster in /usr/local/nagiosxi/html/includes/components/ccm/classes/data_class.php on line 1612, 
referer: https://[yup the host again]/nagiosxi/includes/components/ccm/index.php?cmd=modify&type=hosttemplate&id=113&page=1&returnUrl=index.php%3Fcmd%3Dview%26type%3Dhosttemplate%26page%3D1

PHP Notice:  Undefined index: permusers in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php on line 677, 
referer: https://[same host]/nagiosxi/admin/components.php
These were taken at different times from the log today, this morning. I do not know what triggered them, only that they imply some SQL indexes that I do not have.

Should I have those indexes created? Where in the upgrade process would that have happened. I will guess the ndo2db section.

Should I do something to create the indexes? If so, please provide some syntax.

If this will be addressed when I upgrade to Nagios XI 5.4.x tomorrow, then I may not care. I can wait until after the upgrade to add indexes, but should I.

Please advise.

Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Undefined index

Post by avandemore »

It's just notice message, it's safe to ignore it.
Previous Nagios employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Undefined index

Post by SteveBeauchemin »

On the latest Nagios install, this is no longer showing.

Please close this thread.

Thanks

Steve B
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
Locked