[SOLVED]Hey there, new to building templates, have one small

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

Moderators: Developers, Moderators

Post Reply
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

[SOLVED]Hey there, new to building templates, have one small

Post by kelso »

Im new to creating graphs. I usually just import a host template and then on my way, but in a more proprietary environment, this isnt always possible.

After a couple hours of hunting down OIDS and performing SNMPwalks to determine how data is presented, I started creating a test graph. Everything went better than expected, but I have one issue that I cant figure out and was looking for some help. Attached is a screenshot that shows what im talking about.

the graph lines and legend on left, dont correspond to the actual data being collected. Im sure this is a very simple oversight and was hoping someone could clue me in.

Thanks!

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='MetaSwitch - Calls Connected' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='current calls' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/www/rra/metaswitch_calls_connected_163.rrd":'calls_connected':AVERAGE \
CDEF:cdefa='a,300,*' \
AREA:cdefa#FF00004C:""  \
LINE1:cdefa#FF0000FF:"Calls Connected"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum%8.2lf %s\n"  \
COMMENT:" \n" \
COMMENT:"The total number of active calls on the CFS\n"  \
COMMENT:"Thu 08 Aug 09\:15\:03 PDT 2013" 
thats my graph template code.
Attachments
graph_image.png
graph_image.png (20.12 KiB) Viewed 674 times
Last edited by kelso on Tue Aug 13, 2013 3:49 pm, edited 1 time in total.
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

Re: Hey there, new to building templates, have one small pro

Post by kelso »

BSOD2600 wrote:This is an artifact of rrdtool. read http://docs.cacti.net/manual:088:8_rrdt ... solidation yet?
I guess Im confused on why this is needed or why it happens.. It's a single data template, I make a single graph template, but two data sources get created for it.

Perhaps my method for building these are incorrect? I did add another graph with two data templates and it displays correctly.
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

Re: Hey there, new to building templates, have one small pro

Post by kelso »

hrmm, now I have the opposite.. one data source though now.
Attachments
Capture.PNG
Capture.PNG (15.25 KiB) Viewed 664 times
kelso
Posts: 9
Joined: Mon Apr 13, 2009 1:12 pm

Re: Hey there, new to building templates, have one small pro

Post by kelso »

ahh the "make per 5 minutes" on the gprints i was missing.

thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest