Page 1 of 1
Network Wizard Adding Ports Failure
Posted: Wed Sep 22, 2021 4:57 am
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.
Re: Network Wizard Adding Ports Failure
Posted: Wed Sep 22, 2021 3:30 pm
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.
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
Re: Network Wizard Adding Ports Failure
Posted: Fri Sep 24, 2021 6:39 am
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.
Re: Network Wizard Adding Ports Failure
Posted: Fri Sep 24, 2021 4:45 pm
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.
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'.
Also verify the permissions on the .rrd files in /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 :
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