Page 1 of 1
Errors in upgrading XI manually
Posted: Sun May 12, 2019 3:09 am
by elade
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)
Re: Errors in upgrading XI manually
Posted: Mon May 13, 2019 10:48 am
by scottwilkerson
Can you install the following package
Code: Select all
yum install perl-Math-Calc-Units -y
then try the upgrade again
Re: Errors in upgrading XI manually
Posted: Mon May 13, 2019 10:50 am
by cdienger
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-Accessor
Re: Errors in upgrading XI manually
Posted: Tue May 14, 2019 8:59 am
by elade
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
Code: Select all
nagios:x:500:500::/home/nagios:/bin/bash
cat /etc/group|grep nag
Code: Select all
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmptt
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Code: 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 check
sestatus
service nagios status
ps aux | grep nagios
Code: 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
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?
Re: Errors in upgrading XI manually
Posted: Tue May 14, 2019 11:51 am
by cdienger
Try restarting it and checking the status:
Code: Select all
service nagios restart
service nagios status
Let us know what these commands return. I'd also check the lock file location that nagios.cfg points to:
Code: Select all
grep lock /usr/local/nagios/etc/nagios.cfg
Re: Errors in upgrading XI manually
Posted: Wed May 15, 2019 7:42 am
by elade
I have fixed the problem and install the nagios again.
You can close the ticket