Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] From snmptable to Graphs (Data Query walkthrough)
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
finn



Joined: 06 Dec 2007
Posts: 6

PostPosted: Thu Feb 28, 2008 7:27 pm    Post subject: Reply with quote

gandalf wrote:
Please post snmpwalks of the OIDs used so I can understand better
Reinhard


Sure.

Ok to grab the actual CPU 5 min averages I can walk this:
Code:
snmpwalk -v 2c -c public x.x.x.x 1.3.6.1.4.1.9.9.109.1.1.1.1.5
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.1 = Gauge32: 10
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.2 = Gauge32: 6
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.5.3 = Gauge32: 1

Ok, so this device returned results for three CPU's. Now, to quote the Cisco document "identify the physical entity to which these values correspond" I must walk the following:

Code:
snmpwalk -v 2c -c public x.x.x.x .1.3.6.1.4.1.9.9.109.1.1.1.1.2
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.1 = INTEGER: 3017
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.2 = INTEGER: 3001
SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.2.3 = INTEGER: 1009

Ok, so now given the values 3017, 3001 and 1009 I can now retreive the descriptions for these three CPU's, by using oid .1.3.6.1.2.1.47.1.1.1.1.7 and appending the 3017,3001 and 1009 values:

Code:
snmpget -v 2c -c public x.x.x.x .1.3.6.1.2.1.47.1.1.1.1.7.3017
SNMPv2-SMI::mib-2.47.1.1.1.1.7.3017 = STRING: "CPU of Routing Processor 5"



Code:
 snmpget -v 2c -c public x.x.x.x .1.3.6.1.2.1.47.1.1.1.1.7.3001
SNMPv2-SMI::mib-2.47.1.1.1.1.7.3001 = STRING: "CPU of Switching Processor 5"



Code:
 snmpget -v 2c -c public x.x.x.x .1.3.6.1.2.1.47.1.1.1.1.7.1009
SNMPv2-SMI::mib-2.47.1.1.1.1.7.1009 = STRING: "CPU of Sub-Module 1 CFC Card"



SO that's the problem. I can get the descriptions working by using .1.3.6.1.4.1.9.9.109.1.1.1.1.2 for the index. But then I can't fetch the CPU values. So as seen in my xml file, the descriptions arn't the problem.

So, when the index value is appended to the oid I want to walk to get the CPU values, it of course breaks (as that index is only valid for retreiving the descriptions). That's when I discovered that there appears to be different behaviour for get and walk in the xml interface depending on direction. For input if I do a walk it does not append index. As i if I did a walk for descriptions oid then it would retrive the whole list of everything. If I changed method to get then it did what I want. But for the output section, a walk does have the index value appended. And if using the index used to fetch the descriptions, it will break.

Hope that makes sense.

And cheers for any help, even if it's a " can't be done due ot the way they have implemented this on the 76s". At least then I know and wont worry about it any longer


Oh, and yeah if you just walk 1.3.6.1.2.1.47.1.1.1.1.7 (the oid used to get descriptions) then you get descriptions for all kinds of stuff:

Code:
 snmpwalk -v 2c -c public x.x.x.x .1.3.6.1.2.1.47.1.1.1.1.7
SNMPv2-SMI::mib-2.47.1.1.1.1.7.1 = STRING: "CISCO7606-S"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.2 = STRING: "Physical Slot 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.3 = STRING: "Physical Slot 2"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.4 = STRING: "Physical Slot 3"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.5 = STRING: "Physical Slot 4"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.6 = STRING: "Physical Slot 5"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7 = STRING: "Physical Slot 6"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.8 = STRING: "Backplane"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.9 = STRING: "fan-tray 1 fan-fail Sensor"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.10 = STRING: "Container of Fan FRU 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.11 = STRING: "FAN-MOD-6SHS 1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.12 = STRING: "Container of Container of Power Supply"


Rest of output deleted, as there's quite a bit of stuff in there!
Back to top
finn



Joined: 06 Dec 2007
Posts: 6

PostPosted: Tue Apr 01, 2008 11:35 pm    Post subject: Reply with quote

Actually, looks like others have done this with script queries. So I guess it doesn't really matter now.

I was hoping I could've done it this way but no matter, it's the end result that counts!
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Thu Apr 03, 2008 1:37 pm    Post subject: Reply with quote

Be prepared to find a decrease of performance of a magnitude between scripts and pure snmp. May be more or even less. I would bet on "more"
Reinhard
Back to top
vortico



Joined: 12 Jun 2008
Posts: 4

PostPosted: Thu Jun 12, 2008 10:53 am    Post subject: Reply with quote

Hello all, having issues getting this to work in my particular case. I am trying to get a table of information from a load balancer and graph the active connections and transfer rate information in cacti. I tried following the how to the best I could, the images are mostly gone and its possible I missed a setting somewhere in there if it was checked in the image but no mention of it was made in the text.

Anyway the other issue that exists is there is no nice and easy index like in the example. None of the table entries specify a real index number. I'll post the table/walk and my xml below and what I have done to try to get it to work.

Code:

snmptable -v2c 10.7.2.190 -m ALL .1.3.6.1.4.1.12196.12.2
SNMP table: IPVS-MIB::ipvsRSTable

rSVSidx                 rSDesc rSConns rSInPkts rSOutPkts  rSInBytes  rSOutBytes rSActiveConns rSInactiveConns rSWeight
       0      "10.7.3.24:80  0"   42891  4789869   6043401  884800570  7069382255            65              32     1000
       0      "10.7.3.25:80  0"   51042  7284484   9007608 1634443622 10354617790             0               0     1000
       0      "10.7.3.26:80  0"   10731   609168    663503  150607886   694458104             2               2     1000
       0      "10.7.3.27:80  0"    8438   437582    466524   89117188   496339071             5               1     1000
       0      "10.7.3.28:80  0"   14802  1548995   2305933  641205864  2721785469             6               0     1000
       0      "10.7.3.29:80  0"    8884   439525    470757   99461755   514629001             9              11     1000
       0      "10.7.3.30:80  0"    4677   280089    326477   48829737   365153253             0               0     1000
       1      "10.7.3.24:80  0"      33     1655      2256     223604     2755637             0               0     1000
       1      "10.7.3.25:80  0"     171     6773      9710    1257452    11818896             0               0     1000
       2 "10.7.3.14:443 Masq 0"     516  5541178   7354382  266144096  2349993137            16               0     1000
       2 "10.7.3.15:443 Masq 0"     455  4947440   6467919  236864381  1920543903            17               0     1000
       2 "10.7.3.16:443 Masq 0"     511  5253701   7548277  244424731  2433626351            16               0     1000
       3      "10.7.3.31:80  0"      21     1610      1941     421697     1865476             0               0     1000
       4 "10.7.3.17:443 Masq 0"       3       77        90       4802       17251             0               0     1000
       ?                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?
       0                      ?       ?        ?         ?          ?           ?             ?               ?        ?


snmpwalk -v2c -On 10.7.2.189 -m All .1.3.6.1.4.1.12196.12.2

Code:
.1.3.6.1.4.1.12196.12.2.1.1.1 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.2 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.3 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.4 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.5 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.6 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.7 = INTEGER: 0
.1.3.6.1.4.1.12196.12.2.1.1.8 = INTEGER: 1
.1.3.6.1.4.1.12196.12.2.1.1.9 = INTEGER: 1
.1.3.6.1.4.1.12196.12.2.1.1.10 = INTEGER: 2
.1.3.6.1.4.1.12196.12.2.1.1.11 = INTEGER: 2
.1.3.6.1.4.1.12196.12.2.1.1.12 = INTEGER: 2
.1.3.6.1.4.1.12196.12.2.1.1.13 = INTEGER: 3
.1.3.6.1.4.1.12196.12.2.1.1.14 = INTEGER: 4
.1.3.6.1.4.1.12196.12.2.1.11.1 = STRING: "10.7.3.24:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.2 = STRING: "10.7.3.25:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.3 = STRING: "10.7.3.26:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.4 = STRING: "10.7.3.27:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.5 = STRING: "10.7.3.28:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.6 = STRING: "10.7.3.29:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.7 = STRING: "10.7.3.30:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.8 = STRING: "10.7.3.24:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.9 = STRING: "10.7.3.25:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.10 = STRING: "10.7.3.14:443 Masq 0"
.1.3.6.1.4.1.12196.12.2.1.11.11 = STRING: "10.7.3.15:443 Masq 0"
.1.3.6.1.4.1.12196.12.2.1.11.12 = STRING: "10.7.3.16:443 Masq 0"
.1.3.6.1.4.1.12196.12.2.1.11.13 = STRING: "10.7.3.31:80  0"
.1.3.6.1.4.1.12196.12.2.1.11.14 = STRING: "10.7.3.17:443 Masq 0"
.1.3.6.1.4.1.12196.12.2.1.12.1 = Counter32: 43229
.1.3.6.1.4.1.12196.12.2.1.12.2 = Counter32: 51042
.1.3.6.1.4.1.12196.12.2.1.12.3 = Counter32: 10757
.1.3.6.1.4.1.12196.12.2.1.12.4 = Counter32: 8451
.1.3.6.1.4.1.12196.12.2.1.12.5 = Counter32: 14831
.1.3.6.1.4.1.12196.12.2.1.12.6 = Counter32: 8939
.1.3.6.1.4.1.12196.12.2.1.12.7 = Counter32: 4689
.1.3.6.1.4.1.12196.12.2.1.12.8 = Counter32: 33
.1.3.6.1.4.1.12196.12.2.1.12.9 = Counter32: 171
.1.3.6.1.4.1.12196.12.2.1.12.10 = Counter32: 517
.1.3.6.1.4.1.12196.12.2.1.12.11 = Counter32: 456
.1.3.6.1.4.1.12196.12.2.1.12.12 = Counter32: 512
.1.3.6.1.4.1.12196.12.2.1.12.13 = Counter32: 21
.1.3.6.1.4.1.12196.12.2.1.12.14 = Counter32: 3
.1.3.6.1.4.1.12196.12.2.1.13.1 = Counter32: 4866536
.1.3.6.1.4.1.12196.12.2.1.13.2 = Counter32: 7284484
.1.3.6.1.4.1.12196.12.2.1.13.3 = Counter32: 610483
.1.3.6.1.4.1.12196.12.2.1.13.4 = Counter32: 443944
.1.3.6.1.4.1.12196.12.2.1.13.5 = Counter32: 1552134
.1.3.6.1.4.1.12196.12.2.1.13.6 = Counter32: 443650
.1.3.6.1.4.1.12196.12.2.1.13.7 = Counter32: 280229
.1.3.6.1.4.1.12196.12.2.1.13.8 = Counter32: 1655
.1.3.6.1.4.1.12196.12.2.1.13.9 = Counter32: 6773
.1.3.6.1.4.1.12196.12.2.1.13.10 = Counter32: 5592156
.1.3.6.1.4.1.12196.12.2.1.13.11 = Counter32: 4997948
.1.3.6.1.4.1.12196.12.2.1.13.12 = Counter32: 5307843
.1.3.6.1.4.1.12196.12.2.1.13.13 = Counter32: 1610
.1.3.6.1.4.1.12196.12.2.1.13.14 = Counter32: 77
.1.3.6.1.4.1.12196.12.2.1.14.1 = Counter32: 6131167
.1.3.6.1.4.1.12196.12.2.1.14.2 = Counter32: 9007608
.1.3.6.1.4.1.12196.12.2.1.14.3 = Counter32: 664915
.1.3.6.1.4.1.12196.12.2.1.14.4 = Counter32: 473271
.1.3.6.1.4.1.12196.12.2.1.14.5 = Counter32: 2309328
.1.3.6.1.4.1.12196.12.2.1.14.6 = Counter32: 477211
.1.3.6.1.4.1.12196.12.2.1.14.7 = Counter32: 326587
.1.3.6.1.4.1.12196.12.2.1.14.8 = Counter32: 2256
.1.3.6.1.4.1.12196.12.2.1.14.9 = Counter32: 9710
.1.3.6.1.4.1.12196.12.2.1.14.10 = Counter32: 7422175
.1.3.6.1.4.1.12196.12.2.1.14.11 = Counter32: 6533056
.1.3.6.1.4.1.12196.12.2.1.14.12 = Counter32: 7624796
.1.3.6.1.4.1.12196.12.2.1.14.13 = Counter32: 1941
.1.3.6.1.4.1.12196.12.2.1.14.14 = Counter32: 90
.1.3.6.1.4.1.12196.12.2.1.15.1 = Counter64: 902093888
.1.3.6.1.4.1.12196.12.2.1.15.2 = Counter64: 1634443622
.1.3.6.1.4.1.12196.12.2.1.15.3 = Counter64: 150808778
.1.3.6.1.4.1.12196.12.2.1.15.4 = Counter64: 90494292
.1.3.6.1.4.1.12196.12.2.1.15.5 = Counter64: 641881532
.1.3.6.1.4.1.12196.12.2.1.15.6 = Counter64: 100015998
.1.3.6.1.4.1.12196.12.2.1.15.7 = Counter64: 48838776
.1.3.6.1.4.1.12196.12.2.1.15.8 = Counter64: 223604
.1.3.6.1.4.1.12196.12.2.1.15.9 = Counter64: 1257452
.1.3.6.1.4.1.12196.12.2.1.15.10 = Counter64: 268592355
.1.3.6.1.4.1.12196.12.2.1.15.11 = Counter64: 239307577
.1.3.6.1.4.1.12196.12.2.1.15.12 = Counter64: 246906059
.1.3.6.1.4.1.12196.12.2.1.15.13 = Counter64: 421697
.1.3.6.1.4.1.12196.12.2.1.15.14 = Counter64: 4802
.1.3.6.1.4.1.12196.12.2.1.16.1 = Counter64: 7165521933
.1.3.6.1.4.1.12196.12.2.1.16.2 = Counter64: 10354617790
.1.3.6.1.4.1.12196.12.2.1.16.3 = Counter64: 696001485
.1.3.6.1.4.1.12196.12.2.1.16.4 = Counter64: 503305947
.1.3.6.1.4.1.12196.12.2.1.16.5 = Counter64: 2725439457
.1.3.6.1.4.1.12196.12.2.1.16.6 = Counter64: 522587738
.1.3.6.1.4.1.12196.12.2.1.16.7 = Counter64: 365249512
.1.3.6.1.4.1.12196.12.2.1.16.8 = Counter64: 2755637
.1.3.6.1.4.1.12196.12.2.1.16.9 = Counter64: 11818896
.1.3.6.1.4.1.12196.12.2.1.16.10 = Counter64: 2370962364
.1.3.6.1.4.1.12196.12.2.1.16.11 = Counter64: 1939430160
.1.3.6.1.4.1.12196.12.2.1.16.12 = Counter64: 2457667713
.1.3.6.1.4.1.12196.12.2.1.16.13 = Counter64: 1865476
.1.3.6.1.4.1.12196.12.2.1.16.14 = Counter64: 17251
.1.3.6.1.4.1.12196.12.2.1.17.1 = Counter32: 71
.1.3.6.1.4.1.12196.12.2.1.17.2 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.17.3 = Counter32: 2
.1.3.6.1.4.1.12196.12.2.1.17.4 = Counter32: 5
.1.3.6.1.4.1.12196.12.2.1.17.5 = Counter32: 5
.1.3.6.1.4.1.12196.12.2.1.17.6 = Counter32: 7
.1.3.6.1.4.1.12196.12.2.1.17.7 = Counter32: 1
.1.3.6.1.4.1.12196.12.2.1.17.8 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.17.9 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.17.10 = Counter32: 16
.1.3.6.1.4.1.12196.12.2.1.17.11 = Counter32: 16
.1.3.6.1.4.1.12196.12.2.1.17.12 = Counter32: 15
.1.3.6.1.4.1.12196.12.2.1.17.13 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.17.14 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.1 = Counter32: 35
.1.3.6.1.4.1.12196.12.2.1.18.2 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.3 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.4 = Counter32: 1
.1.3.6.1.4.1.12196.12.2.1.18.5 = Counter32: 1
.1.3.6.1.4.1.12196.12.2.1.18.6 = Counter32: 1
.1.3.6.1.4.1.12196.12.2.1.18.7 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.8 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.9 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.10 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.11 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.12 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.13 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.18.14 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.19.1 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.2 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.3 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.4 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.5 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.6 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.7 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.8 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.9 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.10 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.11 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.12 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.13 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.19.14 = Counter32: 1000
.1.3.6.1.4.1.12196.12.2.1.20.1 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.2 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.3 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.4 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.5 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.6 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.7 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.8 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.9 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.10 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.11 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.12 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.13 = Counter32: 0
.1.3.6.1.4.1.12196.12.2.1.20.14 = Counter32: 0


I started creating the following xml file:

Code:

<interface>
        <name>Get ipvsRSTableh Information</name>
        <description>Get SNMP based Real Server infomration from a Kemp Load Balancer</description>
        <index_order_type>numeric</index_order_type>
        <oid_index>.1.3.6.1.4.1.12196.12.2</oid_index>
        <fields>
                <rSDesc>
                        <name>Description</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.12196.12.2.1.11</oid>
                </rSDesc>
                <rSVSidx>
                        <name>Virtual Server Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.12196.12.2.1.1</oid>
                </rSVSidx>
                <rSConns>
                        <name>RS Total Connections</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.12196.12.2.1.12</oid>
                </rSConns>
        </fields>
</interface>


I created a data query in Cacti then, and it successfully loaded the XML. Added the query to my device, ran the verbose query and got the following:

Code:

+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ipvsRSTable.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.12196.12.2'
+ Located input field 'rSDesc' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.12196.12.2.1.11'
+ Found item [rSDesc='10.7.3.24:80 0'] index: 1 [from value]
+ Found item [rSDesc='10.7.3.25:80 0'] index: 2 [from value]
+ Found item [rSDesc='10.7.3.26:80 0'] index: 3 [from value]
+ Found item [rSDesc='10.7.3.27:80 0'] index: 4 [from value]
+ Found item [rSDesc='10.7.3.28:80 0'] index: 5 [from value]
+ Found item [rSDesc='10.7.3.29:80 0'] index: 6 [from value]
+ Found item [rSDesc='10.7.3.30:80 0'] index: 7 [from value]
+ Found item [rSDesc='10.7.3.24:80 0'] index: 8 [from value]
+ Found item [rSDesc='10.7.3.25:80 0'] index: 9 [from value]
+ Found item [rSDesc='10.7.3.14:443 Masq 0'] index: 10 [from value]
+ Found item [rSDesc='10.7.3.15:443 Masq 0'] index: 11 [from value]
+ Found item [rSDesc='10.7.3.16:443 Masq 0'] index: 12 [from value]
+ Found item [rSDesc='10.7.3.31:80 0'] index: 13 [from value]
+ Found item [rSDesc='10.7.3.17:443 Masq 0'] index: 14 [from value]
+ Located input field 'rSVSidx' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.12196.12.2.1.1'
+ Found item [rSVSidx='0'] index: 1 [from value]
+ Found item [rSVSidx='0'] index: 2 [from value]
+ Found item [rSVSidx='0'] index: 3 [from value]
+ Found item [rSVSidx='0'] index: 4 [from value]
+ Found item [rSVSidx='0'] index: 5 [from value]
+ Found item [rSVSidx='0'] index: 6 [from value]
+ Found item [rSVSidx='0'] index: 7 [from value]
+ Found item [rSVSidx='1'] index: 8 [from value]
+ Found item [rSVSidx='1'] index: 9 [from value]
+ Found item [rSVSidx='2'] index: 10 [from value]
+ Found item [rSVSidx='2'] index: 11 [from value]
+ Found item [rSVSidx='2'] index: 12 [from value]
+ Found item [rSVSidx='3'] index: 13 [from value]
+ Found item [rSVSidx='4'] index: 14 [from value]
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ipvsRSTable.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ipvsRSTable.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/ipvsRSTable.xml'


I then created a data template with the following configuration options:

Data Template - Name: kemp - rsConns
Data Source - Name: (checked) kemp_rsConns
Data Input Method - Get SNMP Data (Indexed)
Associated RRA's - (All Selected)
Step - 300
Data Source Active - (Checked)

Data Source Item - Internal Data Source Name - rsConns
Minimum Value/Maximum Value - 0
Data Source Type - Counter
Heartbeat - 600

Custom Data - Index Type (checked)
Custom Data - Index Value (checked)
Custom Data - Output Type ID (checked)

I then made a simple graph, called it kemp - rsConns and added a line1 graph type, average consolidation function and linked it to the data source rsConns I defined above.

I proceded to add the graph template to the data query. I did not however put anything in suggested values.

And now I am at a point where I create the graph, but nothing is ever put into a RRD file. If I go to Data Sources and turn on debug mode I get the following:

Code:

/usr/bin/rrdtool create \
/var/www/html/rra/kemp_lb1_rsconns_546.rrd \
--step 300  \
DS:rsConns:COUNTER:600:0:U \
RRA:AVERAGE:0.5:1:10080 \
RRA:AVERAGE:0.5:1:25920 \
RRA:AVERAGE:0.5:6:9000 \
RRA:AVERAGE:0.5:24:2250 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:10080 \
RRA:MIN:0.5:1:25920 \
RRA:MIN:0.5:6:9000 \
RRA:MIN:0.5:24:2250 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:10080 \
RRA:MAX:0.5:1:25920 \
RRA:MAX:0.5:6:9000 \
RRA:MAX:0.5:24:2250 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:10080 \
RRA:LAST:0.5:1:25920 \
RRA:LAST:0.5:6:9000 \
RRA:LAST:0.5:24:2250 \
RRA:LAST:0.5:288:797 \


Any ideas what could be causing the problem? If I set the value in the XML to input it does get picked up by Cacti (granted you can't graph it but I knew that would happen). Any help would be appreciated.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Sat Jun 14, 2008 1:52 pm    Post subject: Reply with quote

Please try using .1.3.6.1.4.1.12196.12.2.1.1 as an <oid_index>. It will span from 1 to 14.
This howto is now abandoned and continued at http://docs.cacti.net. But you may open a new thread at any time to ask your questions
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 



Powered by phpBB © 2001, 2005 phpBB Group