Error in Core Config Manager after Nagios Upgrade
-
ssmiller_gfs
- Posts: 9
- Joined: Tue May 08, 2012 1:33 pm
Error in Core Config Manager after Nagios Upgrade
We are on a VMware appliance for Nagios XI (CentOS 6.6 32-bit) that has had Nagios upgraded several times. The last upgrade to Nagios XI 2014R2.7 appeared to go well, but today I went to configure a new service, and noticed that all existing services to do appear to be parsing correctly. A screenshot of the error I get with every service in CCM is attached. The full error that appears in the Config Name field is "Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53etl-servers" (The config name is "etl-servers" in this instance, so the error appears to be pre-pended).
The Nagios config files themselves looks ok, and Nagios is continuing to monitor devices. However, with this error I'm afaid to actually make an adjustment in CCM. Can anyone provide any insight into this error message?
Thanks,
Steve Miller
The Nagios config files themselves looks ok, and Nagios is continuing to monitor devices. However, with this error I'm afaid to actually make an adjustment in CCM. Can anyone provide any insight into this error message?
Thanks,
Steve Miller
You do not have the required permissions to view the files attached to this post.
Re: Error in Core Config Manager after Nagios Upgrade
Lets start by checking the mysql and httpd logs, post the output of the following:
Code: Select all
tail -25 /var/log/mysqld.log
tail -25 /var/log/httpd/error_logFormer 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.
"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.
-
ssmiller_gfs
- Posts: 9
- Joined: Tue May 08, 2012 1:33 pm
Re: Error in Core Config Manager after Nagios Upgrade
Here are the logs you requested:
Code: Select all
[root@mpnagiost ~]# tail -25 /var/log/mysqld.log
150605 14:05:05 [Note] /usr/libexec/mysqld: Shutdown complete
150605 14:05:05 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150605 14:05:45 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150605 14:05:46 InnoDB: Initializing buffer pool, size = 8.0M
150605 14:05:46 InnoDB: Completed initialization of buffer pool
150605 14:05:46 InnoDB: Started; log sequence number 0 44233
150605 14:05:46 [Note] Event Scheduler: Loaded 0 events
150605 14:05:46 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
150605 14:50:10 [Note] /usr/libexec/mysqld: Normal shutdown
150605 14:50:10 [Note] Event Scheduler: Purging the queue. 0 events
150605 14:50:10 InnoDB: Starting shutdown...
150605 14:50:15 InnoDB: Shutdown completed; log sequence number 0 44233
150605 14:50:15 [Note] /usr/libexec/mysqld: Shutdown complete
150605 14:50:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150605 14:51:02 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150605 14:51:03 InnoDB: Initializing buffer pool, size = 8.0M
150605 14:51:03 InnoDB: Completed initialization of buffer pool
150605 14:51:03 InnoDB: Started; log sequence number 0 44233
150605 14:51:03 [Note] Event Scheduler: Loaded 0 events
150605 14:51:03 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
Code: Select all
[root@mpnagiost ~]# tail -25 /var/log/httpd/error_log
[Fri Jun 26 10:53:46 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:53:46 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:53:57 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:53:59 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:53:59 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:03 2015] [error] [client 10.240.20.44] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:54:08 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:08 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:10 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:54:10 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:54:14 2015] [error] [client 10.240.20.44] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/index.php
[Fri Jun 26 10:54:41 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:41 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:43 2015] [error] [client 10.240.20.44] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:54:46 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:46 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:54:59 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:54:59 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:55:04 2015] [error] [client 10.240.20.44] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/index.php
[Fri Jun 26 10:55:08 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:55:08 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:55:11 2015] [error] [client 10.240.20.44] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Fri Jun 26 10:55:20 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:55:20 2015] [error] [client 10.240.20.44] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Fri Jun 26 10:55:25 2015] [error] [client 10.240.20.44] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
Re: Error in Core Config Manager after Nagios Upgrade
Open your "/etc/php.ini" file in a text editor, set:
and restart apache:
Remove the "offending" service and try to re-add it. Did this solve your issue?
Code: Select all
display_errors = OffCode: Select all
service httpd restartBe sure to check out our Knowledgebase for helpful articles and solutions!
-
ssmiller_gfs
- Posts: 9
- Joined: Tue May 08, 2012 1:33 pm
Re: Error in Core Config Manager after Nagios Upgrade
I turned php errors off in my test environment, and that removed the error message from appears in the "Config Name" text box. I am still getting those errors in my httpd error_log, so I feel like I'm just covering up this issue. Is this still safe? I've included the error messages from this morning below, although they seem to be the same errors I received earlier.
I did not rebuild the service, as this issue is occurring for all my services. I'd rather not rebuild my entire config unless I absolutely have to.
I did not rebuild the service, as this issue is occurring for all my services. I'd rather not rebuild my entire config unless I absolutely have to.
Code: Select all
[Mon Jun 29 09:31:11 2015] [error] [client 10.240.75.72] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jun 29 09:31:11 2015] [error] [client 10.240.75.72] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jun 29 09:31:13 2015] [error] [client 10.240.75.72] PHP Notice: Undefined index: template_name in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/common_settings.php on line 53, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/?cmd=view&type=service
[Mon Jun 29 09:31:20 2015] [error] [client 10.240.75.72] PHP Notice: Undefined variable: ac_needed_js_inject in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 176, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
[Mon Jun 29 09:31:20 2015] [error] [client 10.240.75.72] PHP Notice: Undefined variable: sync_table_status in /usr/local/nagiosxi/html/includes/components/ccm/page_templates/ccm_table.php on line 196, referer: http://mpnagiost.mps.gfs.com/nagiosxi/includes/components/ccm/xi-index.php
Re: Error in Core Config Manager after Nagios Upgrade
Could you create at least one new service for testing purposes? BTW, I've seen similar issues with the Bulk Host Cloning and Import wizard. Rerunning the wizard would fix the issue.I did not rebuild the service, as this issue is occurring for all my services. I'd rather not rebuild my entire config unless I absolutely have to.
It is possible this is a bug in XI. We can try to recreate the issue in-house. Can you describe in details how you add these services? Do you clone an existing service in the CCM?
In any case, you should not have "display_errors = On" in the "/etc/php.ini". It is NOT recommended for production environment.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
ssmiller_gfs
- Posts: 9
- Joined: Tue May 08, 2012 1:33 pm
Re: Error in Core Config Manager after Nagios Upgrade
I created a new service, and it tested OK. It was a passive service, but it created the Nagios configuration files as one would expect. The same error messages are still reported in Apache's error_log file. I just want to confirm if those error are expected or if something else is incorrect in our configuration.
I have disabled the display_errors in the php.ini file in our environments.
I have disabled the display_errors in the php.ini file in our environments.
Re: Error in Core Config Manager after Nagios Upgrade
You shouldn't worry about the notices as they won't affect the Nagios XI functionality. According to our developers, "the notices will be silenced" in the next major release of XI.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
ssmiller_gfs
- Posts: 9
- Joined: Tue May 08, 2012 1:33 pm
Re: Error in Core Config Manager after Nagios Upgrade
Sounds good. Thanks for looking into this.
Re: Error in Core Config Manager after Nagios Upgrade
Are we OK to mark this as resolved and lock the topic?