Page 1 of 1
Not creating rrd files
Posted: Thu Jan 19, 2012 1:43 pm
by BanditBBS
I am trying to add new ports to be monitored. When adding them they rrd files do not seem be created. I checked folder permissions and everything seems fine. bc is install and I am running the latest version of XI. I look in the mrtg.cfg file and the port is listed there and looks proper.
Jim
Re: Not creating rrd files
Posted: Thu Jan 19, 2012 1:58 pm
by BanditBBS
Just to be clear, I am getting "/var/lib/mrtg/10.10.10.80_8.rrd does not exist." error. Of course the IP changes depending on the device.
Re: Not creating rrd files
Posted: Thu Jan 19, 2012 2:38 pm
by lmiltchev
So everything is working fine with the old ports, it's just the new ones that you are having issues with, right?
Can you describe the steps you took to add the new ports? The more details you give us the easier will be for us to troubleshoot the issue.
Re: Not creating rrd files
Posted: Thu Jan 19, 2012 2:51 pm
by BanditBBS
lmiltchev wrote:So everything is working fine with the old ports, it's just the new ones that you are having issues with, right?
Can you describe the steps you took to add the new ports? The more details you give us the easier will be for us to troubleshoot the issue.
Correct, old ports are working fine.
Steps I took were:
*using the monitoring wizard
*selected network switch/router.
*entered IP, community string, selected port description and selected Cisco
*Let it scan for ports and when completed hit next.
Last time I did this was back in May, 2011 when I was first installing XI using the VM. Since then I have upgraded with every new version that was released.
Thanks
Re: Not creating rrd files
Posted: Thu Jan 19, 2012 3:10 pm
by nscott
Bandit,
When you run the Switch wizard it checks to see if there are any entries in the mrtg.cfg that already pertain to the host you are polling, if it contains any entries for your particular host it will not edit your mrtg.cfg. To add items you'll need to go through the mrtg.cfg and remove all entries that pertain to that particular hosts (eg: all switch ports, interfaces, etc). Then you'll need to navigate to /usr/local/nagiosxi/tmp and delete all instances of mrtgscan, you will not harm anything by deleting these mrtgscan files. Then run the wizard.
Before you edit your mrtg.cfg I suggest you make a backup, its not a difficult process to change the mrtg.cfg, but do it for safety reasons. After editing your mrtg.cfg, you can test your changes by running mrtg:
env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
If that goes through without a config parse error, you should be good and continue on to the wizard as long as you cleared out all entries for the host you're trying to add to.
Re: Not creating rrd files
Posted: Thu Jan 19, 2012 3:21 pm
by BanditBBS
And it will create all the rrd file missing? I don't need to delete the already existing rrd files for that host also?
Re: Not creating rrd files
Posted: Fri Jan 20, 2012 2:28 pm
by BanditBBS
Worked great, thanks!