Hello,
I'm running cacti-0.8.6h and I've setup a few custom scripts to pull
snmp information from my NetScaler load balancer.
The perl script I wrote does two snmp calls to the Netscaler, and returns the current client connections, and current backend server connections as in the following example:
clientcons:2931 servercons:185
I've setup a single graph to plot both values, but I'm only seeing the clientcons variable graphing as its always the larger of the two.
I've checked in the cacti log and it looks like its properly reading the values. If you look at the actual graph, you'll also see that it looks as if its only recording the clientcons, the servercons variable stays at 100 for some reason, even though its always recorded higher then that in the cacti.log file.
I'm pretty certain I'm doing something stupid. I think I might have the order of the graphs setup wrong, and its drawing the smaller value first, so its not seen, but I'm not certain.
I've tried searching through the documentation for the different graph variables, [AREA, STACK, LINE, etc] but I can't seem to find anything definitive on them.
Here's the output of the actual graph:
Currently, my graph is setup as follows, keep in mind that clientcons will always be bigger then servercons
Please let me know if you'll need anything additional.
If anyone can assist, It would be greatly appreciated.
Thanks,
John.
Issues graphing two values on the same graph
Moderators: Developers, Moderators
This is the Source Debug:
/usr/local/rrdtool-1.2.9/bin/rrdtool create \
/usr/local/apache/htdocs/cacti-0.8.6h/rra/netscaler_2_clientcons_514.rrd \
--step 300 \
DS:servercons:GAUGE:600:0:100 \
DS:clientcons:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
This is the Graph Debug
/usr/local/rrdtool-1.2.9/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Netscaler 2 - client vs server conns" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/apache/htdocs/cacti-0.8.6h/rra/netscaler_2_clientcons_514.rrd":servercons:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti-0.8.6h/rra/netscaler_2_clientcons_514.rrd":clientcons:AVERAGE \
AREA:a#F5F800:"Server conns" \
GPRINTLAST:"Current\:%8.2lf %s\n" \
AREA:b#FF5700:"Client conns":STACK \
GPRINTLAST:"Current\:%8.2lf %s\n"
RRDTool Says:
OK
Thanks!
/usr/local/rrdtool-1.2.9/bin/rrdtool create \
/usr/local/apache/htdocs/cacti-0.8.6h/rra/netscaler_2_clientcons_514.rrd \
--step 300 \
DS:servercons:GAUGE:600:0:100 \
DS:clientcons:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
This is the Graph Debug
/usr/local/rrdtool-1.2.9/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Netscaler 2 - client vs server conns" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/apache/htdocs/cacti-0.8.6h/rra/netscaler_2_clientcons_514.rrd":servercons:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti-0.8.6h/rra/netscaler_2_clientcons_514.rrd":clientcons:AVERAGE \
AREA:a#F5F800:"Server conns" \
GPRINTLAST:"Current\:%8.2lf %s\n" \
AREA:b#FF5700:"Client conns":STACK \
GPRINTLAST:"Current\:%8.2lf %s\n"
RRDTool Says:
OK
Thanks!
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please: one AREA item only! Convert the second to STACK, if you want stacked areas, or to LINEx.
Or: apply cdef=CURRENT_DATA_SOURCE,-1,* to the second graph (not to the legend!) to see it on the negatice y-axis. But pay attention: The numbers of both items differ by magnitude. This may result in one graph item being plainly visible whereas the second one will be very small
Reinhard
Or: apply cdef=CURRENT_DATA_SOURCE,-1,* to the second graph (not to the legend!) to see it on the negatice y-axis. But pay attention: The numbers of both items differ by magnitude. This may result in one graph item being plainly visible whereas the second one will be very small
Reinhard
Who is online
Users browsing this forum: No registered users and 0 guests