Many OID's and little datasources

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
dainiookas
Posts: 34
Joined: Fri Dec 05, 2008 5:49 am
Location: Vilnius, Lithuania

Many OID's and little datasources

Post by dainiookas »

Hi,
I've currently got a need for drawing graphs from custom OID's. It's a specific kind of traffic graph and just to get downstream I have to sum 5 OID's and again to get upstream traffic I have to sum 5 more oids. So in total I have 10 datasources, not to mention that each device of mine has 3 of these graphs and it causes me to create 30 datasources just to satisfy one device. This seems to be quite inefficient.
I was thinking if it could be possible to use XML data query (the one that is used in indexed queries) to put let's say 5 SNMP responses into 1 rrd file (givnig my disk less stres). Or even 10 of these.
I also thought about using a custom script made by myself to get a sum of this, but not sure if it could be more efficient than datasources.

Cheers!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti cannot sum data returned in Data Templates (which is where the data would be initially mapped to after being collected from an SNMP XML script). Instead, you'd have to do the summing in the graph template with a CDEF.

You might be better off writing a custom script which sums up the in/out OID data and then spits it out to cacti, per index. Read through the documentation site for more details.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may want to see http://forums.cacti.net/viewtopic.php?t=30182 for a possible solution
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests