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

Cisco device - missing file - Bandwidth

Post 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
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 »

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.
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 »

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!
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 »

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
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 »

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!
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 »

That's a good idea.
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 »

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!
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 »

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
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 »

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? :lol:

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 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked