Hello,
I'm having problems with some graphs not generating the way I'd hope. The graphs I'm attempting to generate use the same exact graph template, data input method (Script/Command), and data template as other graphs that DO work.
This is what it looks like for those that work:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="auth.locale1- Authentication events" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="Events/second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":A:AVERAGE \
DEF:b="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":C:AVERAGE \
DEF:c="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":D:AVERAGE \
DEF:d="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":F:AVERAGE \
DEF:e="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":I:AVERAGE \
DEF:f="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":R:AVERAGE \
DEF:g="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":S:AVERAGE \
DEF:h="/usr/local/nocgraphs/cacti-0.8.7/rra/auth_events_locale1.rrd":X:AVERAGE \
AREA:a#EAAF00:"[A] - Auth Required" \
GPRINTLAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00:"[C] - Connection Allowed":STACK \
GPRINTLAST:"Current\:%8.2lf\n" \
AREA:c#FF0000:"[D] - Auth Denied":STACK \
GPRINT:c:LAST:" Current\:%8.2lf\n" \
AREA:d#B1441E:"[F] - Re-Auth Failed":STACK \
GPRINT:d:LAST:" Current\:%8.2lf\n" \
AREA:e#8D00BA:" - Invalid":STACK \
GPRINT:e:LAST:" Current\:%8.2lf\n" \
AREA:f#4444FF:"[R] - Re-Auth Permitted":STACK \
GPRINT:f:LAST:" Current\:%8.2lf\n" \
AREA:g#157419:"[S] - Auth Success":STACK \
GPRINT:g:LAST:" Current\:%8.2lf\n" \
AREA:h#AAABA1:"[X] - Disconnect":STACK \
GPRINT:h:LAST:" Current\:%8.2lf %s\n"
RRDTool Says:
OK
The broken ones look like:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="auth.locale2 - Authentication events" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="Events/second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
AREA:#EAAF00:"[A] - Auth Required" \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#EA8F00:"[C] - Connection Allowed":STACK \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#FF0000:"[D] - Auth Denied":STACK \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#B1441E:"[F] - Re-Auth Failed":STACK \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#8D00BA:" - Invalid":STACK \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#4444FF:"[R] - Re-Auth Permitted":STACK \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#157419:"[S] - Auth Success":STACK \
GPRINT::LAST:" Current\:%8.2lf\n" \
AREA:#AAABA1:"[X] - Disconnect":STACK \
GPRINT::LAST:" Current\:%8.2lf %s\n"
RRDTool Says:
ERROR: parameter '#EAAF00' does not represent a number in line AREA:#EAAF00:[A] - Auth Required
Interestingly I can create all of the graphs manually if I add in the DEF part manually to the command.
Thanks for any help you might be able to provide.
Data Sources not being defined properly
Moderators: Developers, Moderators
-
- Posts: 3
- Joined: Wed Jan 23, 2008 11:06 am
-
- Posts: 3
- Joined: Wed Jan 23, 2008 11:06 am
Who is online
Users browsing this forum: No registered users and 5 guests