Not creating rrd files

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Not creating rrd files

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not creating rrd files

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not creating rrd files

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not creating rrd files

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Not creating rrd files

Post 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.
Nicholas Scott
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not creating rrd files

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Not creating rrd files

Post by BanditBBS »

Worked great, thanks!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked