Hi.
I am in trouble adding some gprint into the graph.
Please see the attached shots
-----------------------------------------------------------------------------
maill.txt : The file containg the information from the remote mail server ------------------------------------------------------------------------------
# cat mailstat.txt
spam:0 pop3:202 smtpin:4 smtpout:3 Inboundq:0 Retryq:8 wc:0 Totalsmtpin:9221 Totalsmtpout:1728 LocalQ:1 RemoteQ:1 SPAM_accepted: SPAM_refused: SPAM_Today: 2
-----------------------------------------------------------------------------
It is displaying no graph and generating an error with gprint.
-----------------------------------------------------------------------------
RRDTool Command:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Mail Spam" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/cacti/rra/test_mailspam_204.rrd":mailspam:AVERAGE \
DEF:b="/usr/local/cacti/rra/test_mailspam_204.rrd":SPAM_accepted:AVERAGE \
DEF:c="/usr/local/cacti/rra/test_mailspam_204.rrd":SPAM_refused:AVERAGE \
AREA:a#E8CDEF:"SPAM Received" \
GPRINTLAST:" Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
LINE1:b#4444FF:"SPAM Accepted\:" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n" \
LINE1:c#FF4105:"SPAM Refused" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
GPRINT::LAST:"SPAM Today\:%8.0lf"
RRDTool Says:
ERROR: Could not parse line 'GPRINT::LAST:SPAM Today\:%8.0lf'
Thanks...
Adding gprint into the graph
Moderators: Developers, Moderators
-
- Posts: 17
- Joined: Mon Nov 28, 2005 9:51 am
Adding gprint into the graph
- Attachments
-
- Data Input Methods
- K-20060919-134640-2.jpg (59.78 KiB) Viewed 1125 times
-
- Data Templates
- K-20060919-134743-0.jpg (92.55 KiB) Viewed 1125 times
-
- Graph Templates
- K-20060919-134923-3.jpg (57.51 KiB) Viewed 1125 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
It has no DEF associated with it.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
This is a known bug and has been repaired in 0.8.6i Beta 4, which you can download and test if you like. We should be having an official release of 0.8.6i within the next few weeks.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Who is online
Users browsing this forum: No registered users and 0 guests