Page 2 of 3
Re: Cisco device - missing file - Bandwidth
Posted: Mon Apr 02, 2012 11:04 am
by scobi
Howdy!
snmpget retuns:
IF-MIB::ifOutOctets.3 = Counter32: 1539222940
Thanks!
Re: Cisco device - missing file - Bandwidth
Posted: Mon Apr 02, 2012 1:23 pm
by scottwilkerson
Can you send your mrtg.cfg to me via PM
Re: Cisco device - missing file - Bandwidth
Posted: Mon Apr 02, 2012 8:32 pm
by scobi
Hi! It's exactly the same as when we recreated it. Also should mention we've added a few more network devices, they all seem to be missing the rrd files showing bandwidth. POrt status is fine, just the rrd stuff is broken...
# cat mrtg.cfg
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
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 9:24 am
by scottwilkerson
Once it is at this stage we need to re-run the wizard, and the new config should be generated.
One this is before you do that make sure the permissions are as follows
Code: Select all
# ls -l /etc/mrtg/mrtg.cfg
-rw-r--r-- 1 apache nagios 9607 Mar 23 10:21 /etc/mrtg/mrtg.cfg
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 10:07 am
by scobi
Ahhhh a bit different... How do I change permissions?
Code: Select all
# ls -l /etc/mrtg/mrtg.cfg
-rw-r--r-- 1 root root 137 Apr 1 09:40 /etc/mrtg/mrtg.cfg
Thanks!
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 11:49 am
by scottwilkerson
Code: Select all
chown apache:nagios /etc/mrtg/mrtg.cfg
Then re-run the wizard.
Once it har run again, your /etc/mrtg/mrtg.cfg should contain additional items.
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 12:09 pm
by scobi
Thanks, I see the problem now! You'll have my a Nagios/Linux expert shortly!!!
Hey, I have quite a few rrd files from way back. SHould I delete these files before we start readding them? Just thougth I'd ask...
Thanks again Scott!
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 12:14 pm
by scottwilkerson
If you leave them, mrtg should use them, and add new info to them.
If you remove them it should create new ones automatically but lose historical performance data.
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 12:41 pm
by scobi
LOL
I think this is a "user" issue, sorta...

I messed it up again, but I think I know a way to avoid this in the future. I think I'll need to rebuild it again, but thanks to this thread I got my list of action items... So here's what I did... Comments like "shame on you" are expected...
So, I re-ran the "Network Switch/Router" wizard and selected to scan ports. When the scan was complete, I unchecked all ports and only selected the ports I was interested in monitoring. HOWEVER, the bandwidth checkboxes along the right were all selected, so I get a TON of entries in mrtg.cfg file - I mean a ton.
Do I need to skip the port scan and just manually configure the interfaces to be monitored? I don't see how I can easily uncheck all the bandwith ports after the scan. Any other guidance would be great, if I need to rebuild it again, I'd like to only build it once more...
Thanks!
Scobi
Re: Cisco device - missing file - Bandwidth
Posted: Tue Apr 03, 2012 1:51 pm
by scottwilkerson
I modified the wizard to be more like it should have been. Upload the new one through
Admin -> Manage Config Wizards
Then, lets setup the /etc/mrtg/mrtg.cfg to the base as described above.
Now when you run the wizard you have an uncheck option for all 3 columns...