Page 1 of 1

Upgrade from 2014R2.0 to 2014R2.2

Posted: Sat Dec 27, 2014 8:04 am
by chriscamm
/extraplugins/check_mysql_health-2.1/plugins-scripts'
Making all in t
make[1]: Entering directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1/t'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1/t'
make[1]: Entering directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/extraplugins/check_mysql_health-2.1'
Extra Plugins upgraded OK
Updating NRDP..
sed: can't read /root/scripts/automysqlbackup: No such file or directory
Tried several times and stops at the same place. Tried to do it manually too with the same issue.

I am running the MySQL on another server and not the local NagiosXI server could this be the issue?
Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2014R2.0
nagios.local.xxxxx.net 2.6.32-431.11.2.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0
Server Name: xxxxx.xxxxx.co.uk
Server Address: xxx.xxx.xxx.xxx
Server Port: 443
Date/Time
PHP Timezone: Europe/London
PHP Time: Sat, 27 Dec 2014 13:02:09 +0000
System Time: Sat, 27 Dec 2014 13:02:09 +0000
Nagios XI Data
License ends in: XXXXXXXX

nagios is not running
NPCD running (pid 23877).
ndo2db (pid 55907) is running...
CPU Load 15: 1.67
Total Hosts: 204
Total Services: 3910
Function 'get_base_uri' returns: https://xxxxx.xxxxx.co.uk/nagiosxi/
Function 'get_base_url' returns: https://xxxxx.xxxxx.co.uk/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: https://xxxxx.xxxxx.co.uk/nagiosxi/incl ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: https://localhost/nagiosxi/backend/
Ping Test localhost
Running:

/bin/ping -c 3 localhost 2>&1

PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.029 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.026 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.026/0.035/0.052/0.013 ms

Re: Upgrade from 2014R2.0 to 2014R2.2

Posted: Sat Dec 27, 2014 6:43 pm
by Box293
This is the command from the upgrade file (line 755):

Code: Select all

# Fix the auto-backup scripts
sed -i 's/eval rm -fv "$BACKUPDIR\/weekly\/$DB_week.$REMW.*"/eval rm -fv "$BACKUPDIR\/weekly\/$DB\/${DB}_week.$REMW.*"/' /root/scripts/automysqlbackup
I'll need to confirm if having MySQL offloaded is the cause of this issue.

For the time being, to get past this stage in the upgrade, you could comment out line 755 in the upgrade script to continue past this point. You *may* also have to do the same for line 756.

Let us know how you go.

Re: Upgrade from 2014R2.0 to 2014R2.2

Posted: Mon Dec 29, 2014 5:17 am
by chriscamm
Thanks the commenting out worked,

Can you confirm if I need to run anything on the remote MySQL server?

Regards

Chris

Re: Upgrade from 2014R2.0 to 2014R2.2

Posted: Mon Dec 29, 2014 9:52 am
by scottwilkerson
chriscamm wrote:Thanks the commenting out worked,

Can you confirm if I need to run anything on the remote MySQL server?

Regards

Chris
Not necessary, the base install had a redundant daily backup of mysql & postgres DB's that weren't rotating properly, this wouldn't be installed on an offloaded DB server.

Re: Upgrade from 2014R2.0 to 2014R2.2

Posted: Tue Dec 30, 2014 7:46 pm
by chriscamm
Thanks you

Re: Upgrade from 2014R2.0 to 2014R2.2

Posted: Fri Jan 02, 2015 9:04 am
by cmerchant
Good. We'll go ahead and close this thread, thanks.