Hello There,
I was trying to remove and re-add couple of network devices from NagiosXI, but when I added them back, I am running into couple of issues.
1. When running the "Network Switch / Router Config Wizard", I can see all the ports discovered, but when I select the required ports to be monitored, service checks are created only for 129 ports. We have more than 250 ports to be monitored on this device. Prior to deleting, I had about 255 ports monitored on this same devices.
2. .rrd files did not get created.
Steps followed for re-adding the device:
Deleted all the service checks
Deleted the network host
Deleted all the existing .rrd files of that particular device from "/var/lib/mrtg"
Deleted .cfg file of the device from /etc/mrtg/conf.d
I have done this a handful times, but never ran into this issue.
NagiosXI Version: 5.4.13
Network Switch / Router Config version: 2.3.9
mrtg-2.17.4
rrd files not creating for new network device
-
Sampath.Basireddy
- Posts: 252
- Joined: Wed Dec 14, 2016 12:30 pm
Re: rrd files not creating for new network device
MRTG issues. I have this.
Andrew J. - Do you even grok?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: rrd files not creating for new network device
You are likely hitting the max_input_vars limit in PHP
Add the following to your /etc/php.ini
Then restart httpd
then re-run the wizard
Add the following to your /etc/php.ini
Code: Select all
max_input_vars = 15000Code: Select all
service httpd restartRe: rrd files not creating for new network device
Thanks Scott.
Yes, MRTG issue + PHP. Not sure how that got changed. php.ini shows last modified Nov '17. Possible a PHP upgrade then and we haven't had a large switch added since then.
We're good to close this up, Sampath is on my team.
Thanks,
Andrew J.
Yes, MRTG issue + PHP. Not sure how that got changed. php.ini shows last modified Nov '17. Possible a PHP upgrade then and we haven't had a large switch added since then.
We're good to close this up, Sampath is on my team.
Thanks,
Andrew J.
Andrew J. - Do you even grok?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: rrd files not creating for new network device
Got ya.. Thanks AndrewvAJ wrote:Thanks Scott.
Yes, MRTG issue + PHP. Not sure how that got changed. php.ini shows last modified Nov '17. Possible a PHP upgrade then and we haven't had a large switch added since then.
We're good to close this up, Sampath is on my team.
Thanks,
Andrew J.
Closing