Nagios XI upgrade failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Nagios XI upgrade failed

Post by smapple »

cd ./src/; make install-plugin
make[1]: Entering directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/usr/local/nagiosxi/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 startup/default-init /etc/init.d/nrpe
Starting nrpe
NRPE installed OK
Updating NRDP..

IT gave me an error " not complete, do it manually". Can you let me know what I am missing?
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade failed

Post by smapple »

It did not throw up any errors apart from this.
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade failed

Post by smapple »

I tried manual update as well.however does not give me success message or the failure message.

cd ./src/; make install-plugin
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 startup/default-init /etc/init.d/nrpe
Starting nrpe
NRPE installed OK
Updating NRDP..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI upgrade failed

Post by scottwilkerson »

This issue will be fixed in the next release of Nagios XI. As a "workaround", comment out the following section in the "upgrade" script:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
    rpm -e Ajaxterm
    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
    rm -f $proddir/html/admin/ajaxterm.php
fi
so that it would look like this:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
#    rpm -e Ajaxterm
#    cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
#    sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
#    rm -f $proddir/html/admin/ajaxterm.php
#fi
Save, exit, and rerun the upgrade script:

Code: Select all

cd /tmp/nagiosxi
./upgrade
Last edited by scottwilkerson on Tue Jul 10, 2018 3:16 pm, edited 1 time in total.
Reason: fix incorrect code
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade failed

Post by smapple »

can you confirm the below lines to upgrade?

# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
rpm -e Ajaxterm
cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
rm -f $proddir/html/admin/ajaxterm.php
fi
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade failed

Post by smapple »

I commented the lines you mentioned.

went further and below is the error lines:


Stopping snmptt: [FAILED]
Starting snmptt: Can't locate SNMP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 10) line 1.
died at /usr/sbin/snmptt line 426.

Could not load the Perl module SNMP! If net_snmp_perl_enable is
enabled then the SNMP module is required. Please see snmptt.html
for system requirements. Note: SNMPTT uses the Net-SNMP package's
SNMP module, NOT the CPAN Net::SNMP module!

[FAILED]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI upgrade failed

Post by lmiltchev »

Yes, command out this section:

Code: Select all

# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
#rpm -e Ajaxterm
#cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
#sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
#rm -f $proddir/html/admin/ajaxterm.php
#fi
then rerun the upgrade script. Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade failed

Post by smapple »

I did comment those lines.

I have got the errors:


Stopping snmptt: [FAILED]
Starting snmptt: Can't locate SNMP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 10) line 1.
died at /usr/sbin/snmptt line 426.

Could not load the Perl module SNMP! If net_snmp_perl_enable is
enabled then the SNMP module is required. Please see snmptt.html
for system requirements. Note: SNMPTT uses the Net-SNMP package's
SNMP module, NOT the CPAN Net::SNMP module!

[FAILED]
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI upgrade failed

Post by lmiltchev »

Is the epel repo enabled on this server? What is the output of the command below?

Code: Select all

yum repolist
Can you try installing the perl-Net-SNMP package manually?

Code: Select all

yum install perl-Net-SNMP
Be sure to check out our Knowledgebase for helpful articles and solutions!
smapple
Posts: 81
Joined: Fri Apr 08, 2016 11:43 pm

Re: Nagios XI upgrade failed

Post by smapple »

[sadmin@nagios3 ~]$ sudo rpm -ihv perl-Net-SNMP-6.0.1-21.fc29.noarch.rpm
warning: perl-Net-SNMP-6.0.1-21.fc29.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 429476b4: NOKEY
error: Failed dependencies:
perl(:MODULE_COMPAT_5.28.0) is needed by perl-Net-SNMP-6.0.1-21.fc29.noarch

Im trying to download MODULE_COMPAT_5.28.0 but unable to find it
Locked