Page 1 of 3
Cisco device - missing file - Bandwidth
Posted: Thu Mar 29, 2012 2:20 pm
by scobi
Me gain, trying to do some clean-up today (obviously!)...!!!
Any thoughts on the following?
NAgios XI 2011R2.2
I have a Cisco voice gateway and monitoring 2 interfaces for status and bandwidth. Configured this device using the Network Switch/Router wizard.
Port 2 reports status OK
Port 2 reports bandwidth OK (with usage)
Port 3 reports status OK
Port 3 reports bandwidth: /var/lib/mrtg/ip_address_of_router_3.rrd does not exist
I am able to locate /var/lib/mrtg/ip_address_of_router_2.rrd, just not the _3 file.
Did I mess a step here?
Thanks!
Scobi
Re: Cisco device - missing file - Bandwidth
Posted: Thu Mar 29, 2012 3:43 pm
by scottwilkerson
It is possible that the that port has 0 usage?
Also, it can take a while for an rrd to be created if this was freshly setup.
Re: Cisco device - missing file - Bandwidth
Posted: Thu Mar 29, 2012 3:52 pm
by scobi
Okies, thanks! I'll be patient...

We configured that yesterday afternoon...
Definately has usage on it, wouldn't be making phone calls if not...
We can pause this for another couple days...
Thanks for the support!
Re: Cisco device - missing file - Bandwidth
Posted: Thu Mar 29, 2012 4:04 pm
by scottwilkerson
actually it shouldn't take that long...
Run the following from the commandline
Code: Select all
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
If it doesn't give you output it is working ok, and I'll need to see the following file
/etc/mrtg/mrtg.cfg
Re: Cisco device - missing file - Bandwidth
Posted: Fri Mar 30, 2012 11:31 am
by scobi
Howdy! Ran the command an no output! Yippie!
Looking at the file I probably shouldn't post that in public. I'll probably convert this to email support ticket if OK with you?
Thanks!
Re: Cisco device - missing file - Bandwidth
Posted: Fri Mar 30, 2012 11:37 am
by scottwilkerson
That's a good idea.
Re: Cisco device - missing file - Bandwidth
Posted: Fri Mar 30, 2012 4:48 pm
by scobi
Ummm, "Houston, do we have a problem...?"
That file is pretty huge, like almost 6MB and 120k lines... Is that normal for 5 network devices? I'm wondering if something went wonky here during the device wizard config?
If this isn't normal, can I just remove the devices from XI, drop the mrtg.cfg file, then carefully readd the needed devices?
If this is normal, shout back and I'll do the email ticket route... Should zip up pretty nicely...
Thanks!
Re: Cisco device - missing file - Bandwidth
Posted: Sun Apr 01, 2012 9:10 am
by scottwilkerson
That's not right at all...
You can do as suggested, but you should delete the file and make a new one with just this in it
Code: Select all
HtmlDir: /var/www/mrtg
ImageDir: /var/www/mrtg
LogFormat: rrdtool
LogDir: /var/lib/mrtg
ThreshDir: /var/lib/mrtg
WorkDir: /var/lib/mrtg
Then you can re-run the wizard
Re: Cisco device - missing file - Bandwidth
Posted: Sun Apr 01, 2012 12:15 pm
by scobi
Greetings! No luv...
I deleted all the networking services and hosts, then recreated the mrtg.cfg file. I re-ran the wizard and same behavior, file not found: /var/lib/mrtg/IP_ADDRESS_3.rrd does not exist.
Other counters are working fine (Interface 2 reporting in as expected)...
Contents of the new mrtg.cfg file are exactly as you recommeneded...
Any other thoughts? Delete that service?
Thanks!
Re: Cisco device - missing file - Bandwidth
Posted: Mon Apr 02, 2012 8:59 am
by scottwilkerson
Can you try to run the following, just to make sure the device is providing values for this interface
Code: Select all
snmpgt -v1 -c COMMUNITY_STRING ROUTER_IP IF-MIB::ifOutOctets.3