Page 1 of 2

NagiosXI Web UI Upgrade failed?!

Posted: Thu Dec 05, 2019 10:56 am
by xpertech
When upgrade NagiosXI Web UI from 5.6.4 to 5.6.8 it failed?!
can't find the reason why it failed?

Re: NagiosXI Web UI Upgrade failed?!

Posted: Thu Dec 05, 2019 11:14 am
by benjaminsmith
Hello@Xpertech,

On certain systems, the web upgrade does not complete correctly, please try running the manual upgrade instead. We will be improving the GUI upgrade in the 5.7 release to address this

If you get any errors when running the manual upgrade, post them to the thread so we can troubleshoot them for you.

Code: Select all

cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz
tar xzf xi-latest.tar.gz
cd nagiosxi
./upgrade
Nagios XI Upgrade Instructions

Re: NagiosXI Web UI Upgrade failed?!

Posted: Tue Dec 10, 2019 9:59 am
by xpertech
ok, manual upgrade successful.

but, after manual upgrade to 5.6.8(figure.1), found it missing data on performance graph(figure.2 and .3)?! there're no traffic flow(but actually should have),
manual add a new bandwidth monitor of a device, still can't get bandwidth date(figure.4)...

check_xi_service_mrtgtraf!172.17.100.249_1.rrd!3.20,3.20!3.60,3.60!M
check_xi_service_mrtgtraf!10.36.10.167_20.rrd!7.50,7.50!8.00,8.00!M!!!!

but the old device's bandwidth data and graph still can be displayed normally (figure.5).

will PM you the figures and profile.

Re: NagiosXI Web UI Upgrade failed?!

Posted: Tue Dec 10, 2019 3:36 pm
by benjaminsmith
Hello @xpertech,

Glad to hear the upgrade was successful. Is the performance graph currently running on your system? It looks like it may be having trouble starting. You can check this in the upper right-hand corner of the top menu bar.
system-status.png
Before trying to restart, let's increase the timeout settings for processing perfdata.

Code: Select all

vi /usr/local/nagios/etc/pnp/process_perfdata.cfg
#CHANGE
TIMEOUT = 5
#TO
TIMEOUT = 20
And then increase the load_threshold:

Code: Select all

vi /usr/local/nagios/etc/pnp/npcd.cfg
load_threshold = 10.0
# CHANGE TO:
load_threshold = 50.0
Next, try to restart the service. If you get any errors, post them to the thread.

Code: Select all

systemctl restart npcd

Re: NagiosXI Web UI Upgrade failed?!

Posted: Wed Dec 11, 2019 10:21 am
by xpertech
the Performance Grapher Status is normal, but refer to your steps and restart npcd 20 minutes later, still no traffic and no no performance graph(PM you nagios.log and npcd.log).

Re: NagiosXI Web UI Upgrade failed?!

Posted: Wed Dec 11, 2019 11:47 am
by benjaminsmith
Hello,

You mentioned earlier that old graphs are working but the newly added services are not, so let's verify that the RRD files ( contains perf data) have the correct permissions settings.

Please post the output of the following commands:

Code: Select all

ls -l /var/lib/mrtg/172.17.100.249*.rrd
ls -l /var/lib/mrtg/10.36.10.167*.rrd
Permissions should be set as follows on those files ( 775 and apache:nagios).

Code: Select all

chown apache.nagios -R /var/lib/mrtg
chmod ug+w -R /var/lib/mrtg

Re: NagiosXI Web UI Upgrade failed?!

Posted: Thu Dec 12, 2019 9:21 am
by xpertech
checking the permission of 172.17.100.249 is 664 not 755, no performance graph and data, the permission of 10.36.10.167 is the same 664 not 755, but has performance graph and data(Figure-1).

had tried to change the permission of 172.17.100.249 to 755 but still no graph and data(Figure-2).

Re: NagiosXI Web UI Upgrade failed?!

Posted: Thu Dec 12, 2019 12:13 pm
by tgriep
First, upgrade the Network Switch / Router wizard in XI to the latest version by logging in to the XI GUI and going to the Admin > Manage Config Wizards menu.
Click the Check for Updates button and update the Network Switch / Router wizard.
Then run the following as root to set the permissions of the files the wizard / plugin uses to get the bandwidth information.

Code: Select all

chown apache:nagios /etc/mrtg -R
chmod 775 /etc/mrtg -R
chown apache:nagios /var/lib/mrtg -R
chmod 775 /var/lib/mrtg -R
Let the system run for 15 minutes and see if the issue has been resolved.

If not, Can you run the following commands as root and post the the /tmp/mrtg.txt file?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg -debug=cfg,base,log &> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg &>> /tmp/mrtg.txt
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok --user=nagios --group=nagios &>> /tmp/mrtg.txt
{ time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg 2>1 ; } 2>> /tmp/mrtg.txt

Re: NagiosXI Web UI Upgrade failed?!

Posted: Mon Dec 16, 2019 12:41 pm
by xpertech
it's already uptodate, and mrtg.txt command file will PM you...

Re: NagiosXI Web UI Upgrade failed?!

Posted: Mon Dec 16, 2019 1:42 pm
by tgriep
I received the MRTG file so thanks for that.
I'll put more details in a PM but when the Wizard was initially ran, the cfgmaker application detected that the port was administratively DOWN so the MRTG's config file has it disabled for polling.