Data Sources not being defined properly

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

Moderators: Developers, Moderators

Post Reply
PricklyCacti
Posts: 3
Joined: Wed Jan 23, 2008 11:06 am

Data Sources not being defined properly

Post by PricklyCacti »

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" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00:"[C] - Connection Allowed":STACK \
GPRINT:b:LAST:"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.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The DEF statements are missing. This is which version of cacti? In General, you should verify, that the graph templated used is correct and when visiting Graph Management, the Grpah should have data sources defined to it in a proper way
Reinhard
PricklyCacti
Posts: 3
Joined: Wed Jan 23, 2008 11:06 am

Post by PricklyCacti »

Cacti Version 0.8.7
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.2.x


I keep seeing the following in the log:

WARNING: Result from CMD not valid. Partial Result:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

PricklyCacti wrote:WARNING: Result from CMD not valid. Partial Result:
That's not related. Is error always occur if you try to get data for OIDs not supported by your target device.
Reinhard
PricklyCacti
Posts: 3
Joined: Wed Jan 23, 2008 11:06 am

Post by PricklyCacti »

When I watch the output of the poller I also see:

PHP Notice: Undefined index: availability_method in /usr/local/cacti-0.8.7/cmd.php on line 231

which shows up as:

update_host_status(HOST_DOWN, $host_id, $hosts, $ping, $item["availability_method"], $print_data_to_
stdout);
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Very weird. Are you using Plugin Arch? Where did you get the code?
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests