Page 1 of 1

Upgrade to Nagios XI version: 5.5.5

Posted: Tue Aug 13, 2019 8:06 am
by rtsupport
Hello Nagios Team

we want to upgrade our existing nagios to latest version of Nagios XI version: 5.5.5 on Red Hat Enterprise Linux Server release 7.6 (Maipo) please let us know the prerequisite so we will process further without any compatibility break with old and current version of nagios.

OS version -
Linux version 2.6.32-754.17.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP Thu Jun 20 11:47:12 EDT 2019

We are using servcie mod_gearman

Please share the prerequisite as we have below current nagiosxi profile installed.

Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2014R2.7
usaXXXXXX 2.6.32-754.12.1.el6.x86_64 x86_64
Red Hat Enterprise Linux Server release 6.10 (Santiago)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36
Server Name: nagios.corp.xerox.com
Server Address: XX.145.XXX.XXX
Server Port: 443
Date/Time
PHP Timezone: US/Eastern
PHP Time: Tue, 13 Aug 2019 08:25:08 -0400
System Time: Tue, 13 Aug 2019 08:25:08 -0400
Nagios XI Data
License ends in: OUUQNT

nagios (pid 26480) is running...
NPCD running (pid 8468).
ndo2db (pid 24097) is running...
CPU Load 15: 1.98
Total Hosts: 864
Total Services: 6207
Function 'get_base_uri' returns: https://nagios.corp.xyz.com/nagiosxi/
Function 'get_base_url' returns: https://nagios.corp.xyz.com/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: https://nagios.corp.xyz.com/nagiosxi/in ... 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.016 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.019 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.020 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.016/0.018/0.020/0.004 ms
Test wget To localhost
WGET From URL: https://localhost/nagiosxi/includes/components/ccm/
Running:
/usr/bin/wget https://localhost/nagiosxi/includes/components/ccm/
--2019-08-13 08:25:11-- https://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:443... connected.
ERROR: cannot verify localhost's certificate, issued by "/C=GB/ST=Greater Manchester/L=Salford/O=Sectigo Limited/CN=Sectigo RSA Organization Validation Secure Server CA":
Unable to locally verify the issuer's authority.
ERROR: no certificate subject alternative name matches
requested host name "localhost".
To connect to localhost insecurely, use '--no-check-certificate'.
Network Settings
1: lo: mtu 65536 qdisc noqueue state UNKNOWN

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

inet6 ::1/128 scope host

valid_lft forever preferred_lft forever

2: eth0: mtu 1500 qdisc mq state UP qlen 1000

link/ether 00:50:56:96:33:fe brd ff:ff:ff:ff:ff:ff

inet 13.xxx.125.150/24 brd 13.xxx.xxx.255 scope global eth0

inet6 fe80::250:56ff:fe96:33fe/64 scope link

valid_lft forever preferred_lft forever

3: eth1: mtu 1500 qdisc mq state UP qlen 1000

link/ether 00:50:56:96:4d:d4 brd ff:ff:ff:ff:ff:ff

inet 13.xxx.240.xxx/24 brd 13.145.240.255 scope global eth1

inet6 fe80::250:56ff:fe96:4dd4/64 scope link

valid_lft forever preferred_lft forever


Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use Iface

13.xx5.xxx.0 * 255.255.255.0 U 0 0 0 eth1

13.xx5.xxx.0 * 255.255.255.0 U 0 0 0 eth0

default 13.xxx.xxx.1 0.0.0.0 UG 0 0 0 eth0

Re: Upgrade to Nagios XI version: 5.5.5

Posted: Tue Aug 13, 2019 1:35 pm
by ssax
My general protocol for upgrades that makes me pretty successful:

1. Make sure you have enough free space:

Code: Select all

df -h
df -i
2. Make sure your configs verify (no errors is what we want, don't care about warnings)

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
3. Make sure you don't have any crashed tables:

First, run it to see the sizes (to make sure it outputs valid data):
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the first command if your DB is offloaded to another server and/or you've changed the root mysql password

Code: Select all

echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
Then you can run it like this to check for crashed tables:
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the first command if your DB is offloaded to another server and/or you've changed the root mysql password

Code: Select all

echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table | grep NULL
If no NULL are found, no crashed tables. (NULL means it was unable to calculate that tables size so it means the table is crashed)

4. Backup XI/VM Snap (just in case):

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

5. Reboot server, wait 15 minutes, this will ensure everything is fresh and up and running.

6. Follow the manual upgrade process from the CLI, if it fails, send us the upgrade.log file from the installation directory (generally /tmp/nagiosxi/upgrade.log) so that we can help you work through any issues.

https://assets.nagios.com/downloads/nag ... ctions.pdf

Since you're running XI 2014R2.7 I would go straight to XI 5.6.5 (latest).

Let us know if you have any questions or if we can clarify anything.

Re: Upgrade to Nagios XI version: 5.5.5

Posted: Wed Aug 14, 2019 5:11 am
by rtsupport
Hello SSAX,

1- Is Nagios XI 5.6.5 (latest) Supports mod_gearman as we have config the mod ?

2- Regarding the Upgrade we have already opened the Ticket - 509439 earlier and support team taken multiple remote sessions but due to different RHEL version 6/7 they advised to each library import/export manually.

As per our our recommendation we are thinking to follow the below steps provide your inputs if we are following the correct procedure -

Step 1- Take backup/clone from current NAGIOS XI.
Step 2- Install Latest RHEL 7 on New server.
Step 3- Import Nagios XI clone/Backup on New server.
Step 4- check the functionality all working same as Nagios XI version: 5.5.5

Re: Upgrade to Nagios XI version: 5.5.5

Posted: Wed Aug 14, 2019 10:15 am
by lmiltchev
1- Is Nagios XI 5.6.5 (latest) Supports mod_gearman as we have config the mod ?
Yes, Nagios XI 5.6.5 will work with Mod Gearman, but you will have to update it to version 3. See our official documentation on integrating Mod Gearman with Nagios XI here:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf
2- Regarding the Upgrade we have already opened the Ticket - 509439 earlier and support team taken multiple remote sessions but due to different RHEL version 6/7 they advised to each library import/export manually.

As per our our recommendation we are thinking to follow the below steps provide your inputs if we are following the correct procedure -

Step 1- Take backup/clone from current NAGIOS XI.
Step 2- Install Latest RHEL 7 on New server.
Step 3- Import Nagios XI clone/Backup on New server.
Step 4- check the functionality all working same as Nagios XI version: 5.5.5
Sounds good. Let us know if you run into some issues. You can post on the forum or open a ticket via our support center here:

https://support.nagios.com/tickets/