Ingeborg Hellemo | 5 Jan 2012 12:42
Picon
Picon
Favicon

Where do mcc.py get its data from

NAV 3.10.1

We have several (but not all) routers and switches where cricket try to 
collect data fram OIDs the devices doesn't know anything about. I fail to find 
any similarities in type of device or OS-version between the devices.

For a switch the offending lines in switches/navTargetTypes looks like this:

targetType brusS101-sw.infra.uit.no
        ds = "c1900Bandwidth, c1900Bandwidth, c1900BandwidthMax, 
c1900BandwidthMax, mem5minFree, mem5minFree, mem5minUsed, mem5minUsed, 
sysUpTime, sysUpTime, c2900Bandwidth, c2900Bandwidth, c5000Bandwidth, 
c5000Bandwidth, c5000BandwidthMax, c5000BandwidthMax, cpu1min, cpu1min, 
cpu5min, cpu5min, hpcpu, hpcpu, hpmem5minFree, hpmem5minFree, hpmem5minUsed, 
hpmem5minUsed"
        view = "bandwidth: c1900Bandwidth c1900BandwidthMax c2900Bandwidth 
c5000Bandwidth c5000BandwidthMax, cpu: cpu1min cpu5min hpcpu, memory: 
hpmem5minFree hpmem5minUsed mem5minFree mem5minUsed, sysuptime: sysUpTime"

Note that it tries to collect both c1900Bandwidth, c2900Bandwidth and 
c5000Bandwidth

When I check the device via https://nav.example.com/report/netboxsnmpoid?netbox
id=## I don't find any OIDs relating to Bandwidth at all.

For Cisco routers the offending OID is hpcpu and hpmem*. 

targetType kulth-gsw.infra.uit.no
        ds = "c5000Bandwidth, c5000BandwidthMax, cpu1min, cpu5min, hpcpu, 
hpmem5minFree, hpmem5minUsed, mem5minFree, mem5minUsed, sysUpTime"
(Continue reading)

John-Magne Bredal | 6 Jan 2012 16:04
Picon
Picon
Favicon

Re: Where do mcc.py get its data from

Den 05.01.2012 12:42, skrev Ingeborg Hellemo:
> NAV 3.10.1
>
> We have several (but not all) routers and switches where cricket try to
> collect data fram OIDs the devices doesn't know anything about. I fail to find
> any similarities in type of device or OS-version between the devices.
>

>
> Any ideas why mcc.py puts them in?
>

You are most probably experiencing the same bug as was reported on 
several toolboxes. The rrd-database has somehow, sometime been populated 
with all possible datasources for each rrd-file. A bug/inconsistency 
prevents mcc from cleaning this mess.

So what should you do?

Hopefully cleaning the rrd-database will help you. Try to delete all 
records regarding routers and switches (not interfaces) in rrd_file.

--

-- 
John-Magne Bredal
IT-Avdelingen
Norges teknisk-naturvitenskaplige universitet (NTNU)
Mob: 91 89 73 66

Ingeborg Hellemo | 9 Jan 2012 09:26
Picon
Picon
Favicon

Re: Where do mcc.py get its data from


john.m.bredal@... said:
> Hopefully cleaning the rrd-database will help you.

It did. Thanks!

--Ingeborg
--

-- 
Ingeborg Østrem Hellemo  --  ingeborg.hellemo@...
Dep. of Information Technology  ---  Univ. of Tromsø