Cisco device - missing file - Bandwidth

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Cisco device - missing file - Bandwidth

Post by scobi »

Howdy!

snmpget retuns:

IF-MIB::ifOutOctets.3 = Counter32: 1539222940

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco device - missing file - Bandwidth

Post by scottwilkerson »

Can you send your mrtg.cfg to me via PM
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Cisco device - missing file - Bandwidth

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco device - missing file - Bandwidth

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Cisco device - missing file - Bandwidth

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco device - missing file - Bandwidth

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Cisco device - missing file - Bandwidth

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco device - missing file - Bandwidth

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scobi
Posts: 67
Joined: Tue Feb 28, 2012 8:36 pm

Re: Cisco device - missing file - Bandwidth

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Cisco device - missing file - Bandwidth

Post 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...
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked