Sum two snmp for each hosts

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

Moderators: Developers, Moderators

Post Reply
michelem
Posts: 34
Joined: Thu Mar 30, 2006 7:34 am

Sum two snmp for each hosts

Post by michelem »

First of all I suck with CDEF :(
My problem is:
I have 6 device and for each device I have two snmp (IN/OUT), I need to make a graph with this 6 devices (lines) which draw the sum of each IN+OUT snmps (and not the total IN/OUT of 6 devices).
Do I need to create a data source template within the two data source items and then...?
How can I sum each IN/OUT device?
Need help.
Thank you
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Do you need
- 1 graph for 6 devices with IN/OUT each or
- 6 graphs for 1 device with IN/OUT each?
Solution for both approaches exist
Reinhard
michelem
Posts: 34
Joined: Thu Mar 30, 2006 7:34 am

Post by michelem »

I need 1 graph with 6 lines/devices each with sum of IN/OUT snmp counter, and my problem is how to get the sum IN/OUT of each device
BelgianViking
Cacti User
Posts: 97
Joined: Thu Mar 24, 2005 4:59 am
Location: Brussels, Belgium

Post by BelgianViking »

Suppose for host 1, your IN and OUT data sources are the first 2 of the graph template, than make a CDEF "a,b,+", which you graph as a line. For a second host, next 2 data sources, define a CDEF 'c,d,+", and so on.
[size=75][color=#EE5019]| Cacti 0.8.6g | MySQL 4.1.14 w Query Cache | Net-SNMP 5.2.1 | IIS 6 | fast-cgi | PHP 5.0.3 | RRDtool 1.2.9 | Windows 2003 Server SP1 | Cactid 0.8.6f |
| Dell 2450 - 2x P3 733 MHz, 1GB RAM |[/size][/color]
michelem
Posts: 34
Joined: Thu Mar 30, 2006 7:34 am

Post by michelem »

I solved it Thank you, if I have time I'll post the results
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest