NagiosXI Web UI Upgrade failed?!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

NagiosXI Web UI Upgrade failed?!

Post 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?
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Web UI Upgrade failed?!

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: NagiosXI Web UI Upgrade failed?!

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Web UI Upgrade failed?!

Post 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
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: NagiosXI Web UI Upgrade failed?!

Post 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).
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: NagiosXI Web UI Upgrade failed?!

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: NagiosXI Web UI Upgrade failed?!

Post 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).
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NagiosXI Web UI Upgrade failed?!

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: NagiosXI Web UI Upgrade failed?!

Post by xpertech »

it's already uptodate, and mrtg.txt command file will PM you...
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NagiosXI Web UI Upgrade failed?!

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked