Errors in upgrading XI manually

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Errors in upgrading XI manually

Post 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)
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

Post by scottwilkerson »

Can you install the following package

Code: Select all

yum install perl-Math-Calc-Units -y
then try the upgrade again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Errors in upgrading XI manually

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Errors in upgrading XI manually

Post 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

Code: Select all

SELinux status:                 disabled
service nagios status

Code: Select all

nagios is not running
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

Code: Select all

lock_file=/var/run/nagios.lock
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?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Errors in upgrading XI manually

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
elade
Posts: 144
Joined: Wed Mar 28, 2018 6:23 am

Re: Errors in upgrading XI manually

Post by elade »

I have fixed the problem and install the nagios again.
You can close the ticket
Locked