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!
Many OID's and little datasources
Moderators: Developers, Moderators
-
- Posts: 34
- Joined: Fri Dec 05, 2008 5:49 am
- Location: Vilnius, Lithuania
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.
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
You may want to see http://forums.cacti.net/viewtopic.php?t=30182 for a possible solution
Reinhard
Reinhard
Who is online
Users browsing this forum: No registered users and 3 guests