I have Nagios XI 2014R2.6 which i'm trying to upgrade it to newer version.
I run the sh ./upgrade script and I have those errors.
Any idea why?
Centos version is CentOS release 6.10 (Final)
Errors in upgrading XI manually
Errors in upgrading XI manually
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Errors in upgrading XI manually
Can you install the following package
then try the upgrade again
Code: Select all
yum install perl-Math-Calc-Units -yRe: Errors in upgrading XI manually
It looks like the machine is missing a couple modules. Try running these commands and then the upgrade again:
Code: Select all
yum -y install perl-Math-Calc-Units
yum -y install perl-Class-AccessorAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Errors in upgrading XI manually
Hi,
I download all those models but it didn't help.
I had to uninstall the XI since it crushed and install a new nagios (version 5.4.12) with the fullinstall script.
During the installation I had many problems with nagios user and with nrpe install.
Finally I install the nagios but the service is not running.
I checked the following:
cat /etc/passwd|grep nag
cat /etc/group|grep nag
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
sestatus
service nagios status
ps aux | grep nagios
The lock file wasn't in this location so I copied it did restart but still the same.
Any idea why the service is not running?
I download all those models but it didn't help.
I had to uninstall the XI since it crushed and install a new nagios (version 5.4.12) with the fullinstall script.
During the installation I had many problems with nagios user and with nrpe install.
Finally I install the nagios but the service is not running.
I checked the following:
cat /etc/passwd|grep nag
Code: Select all
nagios:x:500:500::/home/nagios:/bin/bashCode: Select all
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmpttCode: Select all
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 14 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight checkCode: Select all
SELinux status: disabledCode: Select all
nagios is not runningCode: Select all
nagios 44178 0.0 0.0 49836 852 ? Ss 16:14 0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 44293 0.0 0.0 8336 820 ? S 16:14 0:00 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
root 46879 0.0 0.0 103320 892 pts/1 S+ 16:57 0:00 grep nagios
Code: Select all
lock_file=/var/run/nagios.lockAny idea why the service is not running?
Re: Errors in upgrading XI manually
Try restarting it and checking the status:
Let us know what these commands return. I'd also check the lock file location that nagios.cfg points to:
Code: Select all
service nagios restart
service nagios statusCode: Select all
grep lock /usr/local/nagios/etc/nagios.cfgAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Errors in upgrading XI manually
I have fixed the problem and install the nagios again.
You can close the ticket
You can close the ticket