Error message when adding a Service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Error message when adding a Service

Post 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]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error message when adding a Service

Post by lmiltchev »

Can you run the database repair script just to rule out the database corruption?

http://assets.nagios.com/downloads/nagi ... tabase.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Re: Error message when adding a Service

Post by manymiles »

I've run the repair utility and still the problem exists
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error message when adding a Service

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error message when adding a Service

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Re: Error message when adding a Service

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Error message when adding a Service

Post by abrist »

They are indeed harmless.
Former 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.
Locked