Problems with GPRINT (LAST, MAX AND A

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

Moderators: Developers, Moderators

Post Reply
Wildcat

Problems with GPRINT (LAST, MAX AND A

Post by Wildcat »

Hellow!

I getting statistics from the number of dial users connected to my machine using ucd-snmp mib and GET SNMP DATA in Cacti.
Works fine only with area values.:
Item #1 users_machine AREA 8D85F3 [Down], [Up] Remove
But.. when I try get the LAST, MAX or AVERAGE values with GPRINT.. the graph show me only the word "nan"
Item #2 users_machine: GPRINT [Down], [Up] Remove ]

I updated my cacti version to 0.6.8 and it doesnt works.

Anybody knows what happening?

Thanks and sorry for my poor english. `
:cry:
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

How long did you wait before giving up on the GPRINT's? Sometimes it takes 2 or so gathering periods before any real numbers will show up. Also, I am curious about what cacti is seeing. Click 'view source' next to one of the graphs that is not working (with a GPRINT of course) and post that source to this thread.

-Ian
Wildcat

Post by Wildcat »

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="users_machine" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--vertical-label="Users" \
DEF:a="/usr/local/apache/htdocs/cacti/rra/users_machine.rrd":users_machine:AVERAGE \
AREA:a#8D85F3:"Users\: 21" \
GPRINT:a:MAX:"Max\:%8.2lf %s"
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests