Network Wizard Adding Ports Failure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

Network Wizard Adding Ports Failure

Post by nik.vu »

Hi, support,

We have an issue with the switch wizard. When we adding a new port and new host into Nagios XI we have an issue with the status of the graphic is Unknown. You can see details below.


Error in graph/: /var/lib/mrtg/X.X.X.X_5.rrd does not exist.


We have installed the newest version of XI

Nagios XI 5.8.6
Switch WIzard 2.5.9

We temporarily resolved this issue by deleting the existing .mrtg file and configuring the new host with the switch wizard. After that, the graphs are working properly. Also, I'm sending you a profile from XI.

If you need any additional information, don't hesitate to ask me.

Thank you.
Last edited by pbroste on Fri Sep 24, 2021 3:14 pm, edited 1 time in total.
Reason: Moderator note: removed attached profile and placed it on local shared drive
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Network Wizard Adding Ports Failure

Post by pbroste »

Hello @nik.vu

Thanks for reaching out, and providing the system profile. in review, we see that mrtg is stacked up and want to go ahead and increase the limits on /etc/security/limits.conf.

Code: Select all

vi /etc/security/limits.conf
Add the following:

Code: Select all

#open files
* soft nofile 1000000
* hard nofile 1000000
#
#max user processes
* hard nproc 65535
* soft nproc 65535
#
#stack size
* hard stack 20480
* soft stack 20480
A server reboot is necessary to update changes.

Thanks,
Perry
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

Re: Network Wizard Adding Ports Failure

Post by nik.vu »

HI pbroste,

We apply these changes to XI, but still the same problem. Justo to mention that new hosts are working properly and that there is a problem with hosts that we need to add another new interface.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Network Wizard Adding Ports Failure

Post by pbroste »

Hello @nik.vu

Thanks for following up. Increasing the ulimit system open file configs will help going forward to help process mrtg's. We see that /var/lib/mrtg/ are stacked.

Code: Select all

ls -l /var/lib/mrtg
From what we see from your System Profile in 'memorybyprocess.txt' shows that MRTG is working several processes '/usr/bin/perl -w /usr/bin/mrtg' are not completing in time, that is every 5 minutes another MRTG is started.

First, let's make sure that cron is running which appears it is from what we see in 'memorybyprocess.txt'.

Code: Select all

systemctl status crond.service
Also verify the permissions on the .rrd files in /var/lib/mrtg:

Code: Select all

ls -l /var/lib/mrtg
should look like: -rw-rw-r-- 1 apache nagios

Let's troubleshoot to see if there are corrupt files, run the following command and if any errors are displayed, resolve the errors and re-run the command.

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Delete any config files using the following command, this example is for the device xxxxxx :

Code: Select all

rm -f /etc/mrtg/conf.d/xxxxxx.cfg
MRTG completing the jobs within 5 minutes before it runs the next job. You can identify how long it takes for MRTG to run by executing the following command:

Code: Select all

time LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
You can refer to this support article:

https://support.nagios.com/kb/article/nagios-xi-debugging-bandwidth-performance-graphs-29.htm

Thanks,
Perry