Page 1 of 1

Error message when adding a Service

Posted: Fri Jan 03, 2014 2:31 pm
by manymiles
When I navigate to CCM-Services and I click "Add New", I think the whole page is displayed, but, I also get 15 of the following error messages.

Code: Select all

Notice: Undefined index: hosts_tploptions in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 114
Any help would be greatly appreciated.

Here's my Profile

Code: Select all

Nagios XI Installation Profile

Download Profile
System:

Nagios XI Version : 2012R2.7
nagios 2.6.32-220.7.1.el6.x86_64 x86_64
CentOS release 6.2 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/30.0.1599.114 Chrome/30.0.1599.114 Safari/537.36
Server Name: nagios
Server Address: 10.83.21.115
Server Port: 80
Date/Time

PHP Timezone: US/Eastern 
PHP Time: Fri, 03 Jan 2014 14:27:46 -0500
System Time: Fri, 03 Jan 2014 14:27:46 -0500
Nagios XI Data

License ends in: PMMRQO

nagios (pid 1258) is running...
NPCD running (pid 1139).
ndo2db (pid 1280) is running...
CPU Load 15: 0.50 
Total Hosts: 31 
Total Services: 196 
Function 'get_base_uri' returns: http://nagios/nagiosxi/
Function 'get_base_url' returns: http://nagios/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://nagios/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost

Running:
/bin/ping -c 3 localhost 2>&1 
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.048 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.055 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.058 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.048/0.053/0.058/0.009 ms
Test wget To locahost

WGET From URL: http://localhost/nagiosql/index.php 
Running:
/usr/bin/wget http://localhost/nagiosql/index.php 
--2014-01-03 14:27:48-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: "/tmp/nagiosql_index.tmp"

0K ..... 100% 260M=0s

2014-01-03 14:27:48 (260 MB/s) - "/tmp/nagiosql_index.tmp" saved [5259/5259]

Re: Error message when adding a Service

Posted: Fri Jan 03, 2014 2:56 pm
by lmiltchev
Can you run the database repair script just to rule out the database corruption?

http://assets.nagios.com/downloads/nagi ... tabase.pdf

Re: Error message when adding a Service

Posted: Fri Jan 03, 2014 3:11 pm
by manymiles
I've run the repair utility and still the problem exists

Re: Error message when adding a Service

Posted: Mon Jan 06, 2014 9:17 am
by lmiltchev
Did you run a repair on both, the nagios and nagiosql?

Code: Select all

./repairmysql.sh nagios
./repairmysql.sh nagiosql
Also try the following - go to: Admin->Reset Security Credentials, and click on "Update Credentials" without changing anything else. Let me know if this helped.

Re: Error message when adding a Service

Posted: Mon Jan 06, 2014 11:24 am
by scottwilkerson
Actually, these are just Notices that the variable referenced aren't set yet. I believe we have these suppressed in the TRUNK for the next release, so the errors will not be displayed.

Re: Error message when adding a Service

Posted: Mon Jan 06, 2014 4:56 pm
by manymiles
I've run the repair on nagios and nagiosql, and I have done the Reset Credentials thing. No change.

I understand they should disappear with the next update.

They are harmless then and I can add a service anyway?

Re: Error message when adding a Service

Posted: Mon Jan 06, 2014 5:01 pm
by abrist
They are indeed harmless.