Error Upgrading Nagios
Error Upgrading Nagios
Latest Available Version: 2014R2.3
Installed Version: 2012R2.9
# cat /etc/redhat-release
CentOS release 6.6 (Final)
# ./upgrade
Checking required prereqs...
Please wait...
ERROR: Could not determine currently installed version of Nagios XI!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is there a quick fix for this or do I have to apply prior versions first, etc?
Installed Version: 2012R2.9
# cat /etc/redhat-release
CentOS release 6.6 (Final)
# ./upgrade
Checking required prereqs...
Please wait...
ERROR: Could not determine currently installed version of Nagios XI!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is there a quick fix for this or do I have to apply prior versions first, etc?
Re: Error Upgrading Nagios
Could you run these 2 commands and post the output?
Code: Select all
ll /usr/local/nagiosxi/var/
cat /usr/local/nagiosxi/var/xiversion
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 Upgrading Nagios
Can you post the results of the following
Code: Select all
ls -la /usr/local/nagiosxi/var|grep -v \.log
cat /usr/local/nagiosxi/var/xiversionRe: Error Upgrading Nagios
Code: Select all
[root@nagios nagiosxi]# ll /usr/local/nagiosxi/var/
total 308
-rw-r--r-- 1 nagios nagios 303 Jan 2 09:53 cleaner.log
-rw-r--r-- 1 nagios nagios 303 Dec 7 03:43 cleaner.log-20141207
-rw-r--r-- 1 nagios nagios 303 Dec 14 03:32 cleaner.log-20141214
-rw-r--r-- 1 nagios nagios 303 Dec 21 03:34 cleaner.log-20141221
-rw-r--r-- 1 nagios nagios 303 Dec 28 03:10 cleaner.log-20141228
-rw-r--r-- 1 nagios nagios 19 Jan 2 09:53 cmdsubsys.log
-rw-r--r-- 1 nagios nagios 82 Dec 7 03:44 cmdsubsys.log-20141207
-rw-r--r-- 1 nagios nagios 82 Dec 14 03:33 cmdsubsys.log-20141214
-rw-r--r-- 1 nagios nagios 82 Dec 21 03:35 cmdsubsys.log-20141221
-rw-r--r-- 1 nagios nagios 82 Dec 28 03:11 cmdsubsys.log-20141228
drwsrwsr-x 3 apache nagios 4096 Oct 14 12:48 components
-rw-r--r-- 1 nagios nagios 7 Jan 2 09:53 corelog.data
-rw-r--r-- 1 nagios nagios 0 Jan 2 09:53 corelog.diff
-rwxrwxr-x 1 nagios nagios 542 Oct 23 14:50 corelog.newobjects
-rw-r--r-- 1 nagios nagios 2677 Jan 2 09:50 dbmaint.log
-rw-r--r-- 1 nagios nagios 2677 Dec 7 03:40 dbmaint.log-20141207
-rw-r--r-- 1 nagios nagios 2677 Dec 14 03:30 dbmaint.log-20141214
-rw-r--r-- 1 nagios nagios 2677 Dec 21 03:30 dbmaint.log-20141221
-rw-r--r-- 1 nagios nagios 2677 Dec 28 03:10 dbmaint.log-20141228
-rw-r--r-- 1 nagios nagios 21 Jan 2 09:50 deadpool.log
-rw-r--r-- 1 nagios nagios 21 Dec 7 03:40 deadpool.log-20141207
-rw-r--r-- 1 nagios nagios 21 Dec 14 03:30 deadpool.log-20141214
-rw-r--r-- 1 nagios nagios 21 Dec 21 03:30 deadpool.log-20141221
-rw-r--r-- 1 nagios nagios 21 Dec 28 03:10 deadpool.log-20141228
-rw-r--r-- 1 nagios nagios 40 Jan 2 09:53 eventman.log
-rw-r--r-- 1 nagios nagios 40 Dec 7 03:44 eventman.log-20141207
-rw-r--r-- 1 nagios nagios 40 Dec 14 03:33 eventman.log-20141214
-rw-r--r-- 1 nagios nagios 40 Dec 21 03:35 eventman.log-20141221
-rw-r--r-- 1 nagios nagios 40 Dec 28 03:11 eventman.log-20141228
-rw-r--r-- 1 nagios nagios 25 Jan 2 09:53 feedproc.log
-rw-r--r-- 1 nagios nagios 25 Dec 7 03:44 feedproc.log-20141207
-rw-r--r-- 1 nagios nagios 25 Dec 14 03:33 feedproc.log-20141214
-rw-r--r-- 1 nagios nagios 25 Dec 21 03:35 feedproc.log-20141221
-rw-r--r-- 1 nagios nagios 25 Dec 28 03:11 feedproc.log-20141228
-rw-r--r-- 1 nagios users 0 Jan 2 03:30 load_url.log
-rw-r--r-- 1 nagios users 906 Aug 24 03:42 load_url.log-20140824
-rw-r--r-- 1 nagios users 856 Nov 26 11:44 load_url.log-20141127
-rw-r--r-- 1 nagios users 856 Dec 20 11:45 load_url.log-20141221
-rw-r--r-- 1 nagios users 871 Jan 1 13:22 load_url.log-20150102
-rw-r--r-- 1 nagios nagios 0 Jan 2 09:53 nom.log
-rw-r--r-- 1 nagios nagios 243 Jan 2 09:53 perfdataproc.log
-rw-r--r-- 1 nagios nagios 243 Dec 7 03:44 perfdataproc.log-20141207
-rw-r--r-- 1 nagios nagios 243 Dec 14 03:33 perfdataproc.log-20141214
-rw-r--r-- 1 nagios nagios 243 Dec 21 03:35 perfdataproc.log-20141221
-rw-r--r-- 1 nagios nagios 243 Dec 28 03:11 perfdataproc.log-20141228
-rw-r--r-- 1 nagios nagios 10186 Jan 2 09:01 recurringdowntime.log
-rw-r--r-- 1 nagios nagios 10090 Dec 7 03:01 recurringdowntime.log-20141207
-rw-r--r-- 1 nagios nagios 10077 Dec 14 03:01 recurringdowntime.log-20141214
-rw-r--r-- 1 nagios nagios 10168 Dec 21 03:01 recurringdowntime.log-20141221
-rw-r--r-- 1 nagios nagios 10188 Dec 28 03:01 recurringdowntime.log-20141228
-rw-r--r-- 1 nagios nagios 0 Jan 2 09:53 reportengine.log
drwxr-xr-x 2 nagios nagios 4096 Jan 1 14:10 subsys
-rw-r--r-- 1 nagios nagios 9478 Jan 2 09:53 sysstat.log
-rw-r--r-- 1 nagios nagios 9475 Dec 7 03:44 sysstat.log-20141207
-rw-r--r-- 1 nagios nagios 9459 Dec 14 03:33 sysstat.log-20141214
-rw-r--r-- 1 nagios nagios 9463 Dec 21 03:35 sysstat.log-20141221
-rw-r--r-- 1 nagios nagios 9474 Dec 28 03:11 sysstat.log-20141228
-rw-r--r-- 1 root root 17439 Jan 1 14:18 xi-sys.cfg
[root@nagios nagiosxi]# cat /usr/local/nagiosxi/var/xiversion
cat: /usr/local/nagiosxi/var/xiversion: No such file or directory
[root@nagios nagiosxi]# cat /usr/local/nagiosxi/var/xiversion
cat: /usr/local/nagiosxi/var/xiversion: No such file or directory
[root@nagios nagiosxi]# clear
[root@nagios nagiosxi]# ls -la /usr/local/nagiosxi/var|grep -v \.log
total 320
drwxr-xr-x 4 nagios nagios 4096 Jan 2 09:55 .
drwxr-xr-x 10 nagios nagios 4096 Jun 5 2013 ..
drwsrwsr-x 3 apache nagios 4096 Oct 14 12:48 components
drwxr-xr-x 2 nagios nagios 4096 Jan 1 14:10 subsys
-rw-r--r-- 1 root root 17439 Jan 1 14:18 xi-sys.cfg
[root@nagios nagiosxi]# cat /usr/local/nagiosxi/var/xiversion
cat: /usr/local/nagiosxi/var/xiversion: No such file or directory
[root@nagios nagiosxi]#
Re: Error Upgrading Nagios
Could you go to the folder where the upgrade is and post the upgrade.log file here so we can look at is for errors?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error Upgrading Nagios
Code: Select all
[root@nagios nagiosxi]# cat upgrade.log
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Checking required prereqs...
Please wait...
Re: Error Upgrading Nagios
Is there a change you can restore the server to just before the upgrade and try it again?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error Upgrading Nagios
Performing a Nagios restore to the day prior to the upgrade did not fix it. Same problem.
Should I just install the 2014 version over the 2012 version and restore from nagios backup?
Should I just install the 2014 version over the 2012 version and restore from nagios backup?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Error Upgrading Nagios
No, that will almost definitely cause many further issues. Are you attempting to run the upgrade from the webui or from a cli terminal?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Error Upgrading Nagios
From the CLI interface. AFAIK, the web UI is only available on 2014 and above?