How to create a graph line,operate between 2 output fields

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

Moderators: Developers, Moderators

Post Reply
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

How to create a graph line,operate between 2 output fields

Post by menjia »

i have write a snmp-query xml file,it have two output filelds in it.

CallAttempts: the times of device to send calls to other devices
CallSucess: the times of device send calls successfullly to other devices.


i want to make a new graph line,with value=CallAttempts/CallSucess.

but do not know how to do it. please share your idea,thanks. :)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please assure the correct function of your XML. Create a Data Query, a Data Template and a Graph Template for it. Associate the Graph Template to the Data Query and generate a Graph using this new Data Query.
If you get everything up and running, the last thing is to create a CDEF=a,b,/
But you must be sure, the DEFs (aka Data Sources) are denoted as a or b, respectively. To do so, please select the Graph you're working on and click the wrench next to the graph. It displays the full "rrdtool graph" statement. Search for sth like

Code: Select all

DEF:a="/var/www/html/workspace/branch/rra/gandalf_traffic_in_88.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/workspace/branch/rra/gandalf_traffic_in_88.rrd":traffic_out:AVERAGE \
a and b denote the variables to be used in the CDEF...
Reinhard
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

thank your very much,that make me understand cacti more
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests