Recent Upgrade Woes
Posted: Thu May 07, 2015 2:24 pm
I recently upgraded Nagios XI from 2012 R12 to 2014 R2.6 and encountered a few issues.
^ I have tried completely removing this host and Service(s) and still get this error; I also checked line 223 (and all lines before/after) and noted that it has a host/service_description for each service line.
I have also reverted snapshots to the point just after nagios was upgraded. Prior to the error above I was getting the old duplicate time period problem I experienced after an upgrade in 2013. - Working with support we did some database scripting to change time periods on many hosts. Please also note that I have never manually changed anything in this deployment; all edits were done via the XI interface/Core Config Manager.
Code: Select all
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/<redacted>msd1.ems.local.cfg', starting on line 223)I have also reverted snapshots to the point just after nagios was upgraded. Prior to the error above I was getting the old duplicate time period problem I experienced after an upgrade in 2013. - Working with support we did some database scripting to change time periods on many hosts. Please also note that I have never manually changed anything in this deployment; all edits were done via the XI interface/Core Config Manager.
Code: Select all
Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2014R2.6
Nagios.Ems.local 2.6.32-504.12.2.el6.i686 i686
CentOS release 6.6 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Server Name: pinnnagios
Server Address: 10.60.10.60
Server Port: 80
Date/Time
PHP Timezone: America/New_York
PHP Time: Thu, 07 May 2015 15:21:42 -0400
System Time: Thu, 07 May 2015 15:21:42 -0400
Nagios XI Data
License ends in: SNTMQU
nagios (pid 1803) is running...
NPCD running (pid 1690).
ndo2db (pid 1831) is running...
CPU Load 15: 0.35
Total Hosts: 110
Total Services: 824
Function 'get_base_uri' returns: http://pinnnagios/nagiosxi/
Function 'get_base_url' returns: http://pinnnagios/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://pinnnagios/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 (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.022 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.048 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.040 ms
--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.022/0.036/0.048/0.012 ms
Test wget To localhost
WGET From URL: http://localhost/nagiosxi/includes/components/ccm/
Running:
/usr/bin/wget http://localhost/nagiosxi/includes/components/ccm/
--2015-05-07 15:21:44-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: "/usr/local/nagiosxi/tmp/ccm_index.tmp"
0K ........ 595K=0.01s
2015-05-07 15:21:44 (595 KB/s) - "/usr/local/nagiosxi/tmp/ccm_index.tmp" saved [8385]
Network Settings
1: lo: mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:50:56:b0:00:09 brd ff:ff:ff:ff:ff:ff
inet 10.60.10.60/24 brd 10.60.10.255 scope global eth0
inet6 fe80::250:56ff:feb0:9/64 scope link
valid_lft forever preferred_lft forever
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.60.10.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 1002 0 0 eth0
default 10.60.10.1 0.0.0.0 UG 0 0 0 eth0