I'm having problems with a Nagios upgrade.
I have an existing 2011r1.8 VM (32b) and have created a new 2011r3.3 64b VM
I now need to migrate all the existing data from the old to the new.
I've run the backup_xi.sh on the old VM.
I've had to copy the old restore_xi.sh script to the new VM as the new script is not compatible with the backup file.
That all worked OK apart from some problems at the end complaing about wrong libraries.
No problems - the Nagios doc's has a work-around when restoring to a different OS/architecture.
I run the A-subcomponents script which fails - You also need to touch installed.timezone (Note: Update the Doc!)
A-subcomponents now appears to run OK through to the end.
I then run the build-perms-bin script - all OK.
When I point my browser at at the new Nagios, it now shows it as 2011r1.8 (was 3.3) - what's happened?
I then try to apply a configuration to force the new version - but this fails with permission problems.
I've reset the permissions and still no difference.
All my 640 hosts & 5900 services are configured & running on the new VM.
So at the moment I have 2 issues with the new VM - NagiosXI has reverted back to the old version & I can't apply a configuration
Fred Kroeger
NagiosXI Upgrade
-
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: NagiosXI Upgrade
Try running an upgrade - on the your Nagios XI server, first change to the /tmp directory:
Next, make sure you delete the “/tmp/nagiosxi” directory and the old “tar.gz” files first. You can do this by running the following
command in terminal:
Next, download the latest stable or development release to the /tmp directory on the Nagios XI server.
Note: You will need to have the link to the Nagios XI version you'd like to download before you can proceed with the next step. You can find download links by logging in to the Nagios Library and visiting the Nagios XI downloads page at:
http://library.nagios.com/library/produ ... loads/main
To download the latest stable release to your Nagios XI server, use the following command:
Unpack the update tarball you just downloaded (change the name to match your download):
Change to the new nagiosxi subdirectory that was created when you unpacked the tarball:
Run the upgrade script:
Let us know if this fixed your problem.
Code: Select all
cd /tmp
command in terminal:
Code: Select all
rm -rf nagiosxi xi*.tar.gz
Note: You will need to have the link to the Nagios XI version you'd like to download before you can proceed with the next step. You can find download links by logging in to the Nagios Library and visiting the Nagios XI downloads page at:
http://library.nagios.com/library/produ ... loads/main
To download the latest stable release to your Nagios XI server, use the following command:
Code: Select all
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
Code: Select all
tar xzf xi-latest.tar.gz
Code: Select all
cd /tmp/nagiosxi
Code: Select all
./upgrade
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: NagiosXI Upgrade
Thanks.... getting closer....
I've run the xi_restore script,
Run A-subcomponents
Run build-perms-bin
I the ran the upgrade
It eventually stopped at the following:
I have restarted the server, and the Nagios web page reports it is 2011R3.3 - but the Left menu frame is still like the R1.8 version ie: there is no Operations Centre links displayed in the Quick View section.
It looks Ok at the start, but when I look at the services for a host, I can't display the graphs anymore. Then after a while the icons for the hosts disappear in the Host Details page and I can no longer see any services for any of the hosts. If I select the Service Details page, then I can see all the services.
Fred
I've run the xi_restore script,
Run A-subcomponents
Run build-perms-bin
I the ran the upgrade
It eventually stopped at the following:
Code: Select all
Installing new XI templates...
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=dvrpba' -O nagiosql.login--2012-09-28 15:26:00-- http://localhost/nagiosql/index.php
Resolving proxyap02.XXX.XX... 10.19.224.32
Connecting to proxyap02.XXX.XX|10.19.224.32|:8200... connected.
Proxy request sent, awaiting response... 401 Unauthorized
Authorization failed.
NAGIOSQL LOGIN FAILED!
It looks Ok at the start, but when I look at the services for a host, I can't display the graphs anymore. Then after a while the icons for the hosts disappear in the Host Details page and I can no longer see any services for any of the hosts. If I select the Service Details page, then I can see all the services.
Fred
Re: NagiosXI Upgrade
It looks like your wget request to localhost is trying to go through the proxy. You'll need to turn off the proxy for localhost requests. Take a look at the following wiki:
http://support.nagios.com/wiki/index.ph ... th_Proxies
http://support.nagios.com/wiki/index.ph ... th_Proxies
-
- Posts: 588
- Joined: Wed Oct 19, 2011 11:36 pm
- Location: Perth, Western Australia
- Contact:
Re: NagiosXI Upgrade
Thanks - completely missed that it was trying to access the localhost.
made the recommended changes to wgetrc and now the upgrade script runs to completion.
Nagios starts OK and shows 2011R3.3 & I can write a new config file Ok via CCM.
However I still have a couple of strange problems.
1) Graphs not displaying & Graph Explorer only shows a handful of hosts to select from.
I've checked the perfdata directory for each host and I can see that the xml file is being updated OK, but the rrd file is still the same as when I copied them over from the old server.
Checking logs - perfdata.log is empty & npcd.log just has an entry for when the daemon started.
2) After about 15mins, the Host icon image disappears from the Host details screen and also shows Notification disabled.
Looking at any of the services for the Host, it shows "Service check pending...", however, previous to that, all sevice checks ran, updated & displayed OK
Is there still some 32b file that hasn't been updated to 64b when I ran the A-subcomponents script ?
regards.. Fred
made the recommended changes to wgetrc and now the upgrade script runs to completion.
Nagios starts OK and shows 2011R3.3 & I can write a new config file Ok via CCM.
However I still have a couple of strange problems.
1) Graphs not displaying & Graph Explorer only shows a handful of hosts to select from.
I've checked the perfdata directory for each host and I can see that the xml file is being updated OK, but the rrd file is still the same as when I copied them over from the old server.
Code: Select all
# ls -latr /usr/local/nagios/share/perfdata/megs
total 29524
drwxrwxr-x 898 nagios nagios 36864 Sep 28 16:53 ..
-rwxrwxr-x 1 nagios nagios 17546728 Sep 29 15:11 Disk_Usage_-_ZFS.rrd
-rwxrwxr-x 1 nagios nagios 384736 Oct 2 08:52 Users.rrd
-rwxrwxr-x 1 nagios nagios 768008 Oct 2 08:53 Ping.rrd
-rwxrwxr-x 1 nagios nagios 3191512 Oct 2 08:54 Memory_Usage.rrd
-rwxrwxr-x 1 nagios nagios 384736 Oct 2 08:54 __Disk_Usage.rrd
-rwxrwxr-x 1 nagios nagios 384736 Oct 2 08:54 Swap_Usage.rrd
-rwxrwxr-x 1 nagios nagios 1151280 Oct 2 09:00 Load.rrd
-rwxrwxr-x 1 nagios nagios 798976 Oct 2 09:00 NTP_Time.rrd
-rwxrwxr-x 1 nagios nagios 3191512 Oct 2 09:01 Disk_Usage_-_UFS.rrd
-rwxrwxr-x 1 nagios nagios 768008 Oct 2 09:27 _HOST_.rrd
-rwxrwxr-x 1 nagios nagios 1534552 Oct 2 09:51 CPU_Utilisation.rrd
-rw-rw-rw- 1 nagios nagios 2128 Oct 2 16:00 NTP_Time.xml
-rw-rw-rw- 1 nagios nagios 3456 Oct 2 16:02 Load.xml
-rw-rw-rw- 1 nagios nagios 2758 Oct 2 16:06 Ping.xml
-rw-rw-rw- 1 nagios nagios 4399 Oct 2 16:06 Disk_Usage_-_UFS.xml
-rw-rw-rw- 1 nagios nagios 2126 Oct 2 16:07 Swap_Usage.xml
-rw-rw-rw- 1 nagios nagios 2137 Oct 2 16:07 __Disk_Usage.xml
-rw-rw-rw- 1 nagios nagios 4078 Oct 2 16:07 Memory_Usage.xml
-rw-rw-rw- 1 nagios nagios 18518 Oct 2 16:07 Disk_Usage_-_ZFS.xml
-rw-rw-rw- 1 nagios nagios 2053 Oct 2 16:08 Users.xml
-rw-rw-rw- 1 nagios nagios 2591 Oct 2 16:09 _HOST_.xml
-rw-rw-rw- 1 nagios nagios 4070 Oct 2 16:10 CPU_Utilisation.xml
2) After about 15mins, the Host icon image disappears from the Host details screen and also shows Notification disabled.
Looking at any of the services for the Host, it shows "Service check pending...", however, previous to that, all sevice checks ran, updated & displayed OK
Is there still some 32b file that hasn't been updated to 64b when I ran the A-subcomponents script ?
regards.. Fred
Re: NagiosXI Upgrade
RRD's are actually binary files, so in order for them to be migrated from a 32 to 64 bit machine, they actually need to be exported and reimported into a new binary. The following wiki covers how to do that. Also make sure everything under the perfdata directory is executable.
http://support.nagios.com/wiki/index.ph ... Install.3F
http://support.nagios.com/wiki/index.ph ... Install.3F