Problem with yaxis in Graph

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

Moderators: Developers, Moderators

Post Reply
trick17
Posts: 4
Joined: Tue Nov 08, 2005 6:51 am

Problem with yaxis in Graph

Post by trick17 »

Hi everyone

I have created a script which calls a script to get the free disc space
of a partition. The graph is correct, but I don't have a index on the
y axis.

Can anyone help me ?

Thank you
Attachments
freediscspace.png
freediscspace.png (2.97 KiB) Viewed 1941 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Did you create that graph template yourself? Post a screenshot of the bottom half of the graph template (with all the settings).
trick17
Posts: 4
Joined: Tue Nov 08, 2005 6:51 am

Post by trick17 »

yes, i created the template on my own.

Here are the settings

Thanks
Attachments
freediscspacetemplate.png
freediscspacetemplate.png (23.37 KiB) Viewed 1919 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Weird.

1) What version of rrdtool are you using?
2) Post the string of what the rrdtool graph is using.
3) This happen for any other graphs?
4) Why didn't you use the Host MIB - Available Disk Space template?
trick17
Posts: 4
Joined: Tue Nov 08, 2005 6:51 am

Post by trick17 »

Hi,

1. rrdtool-1.0.49
2. How do I get the rrdtool string ??
3. No, just for the disc space. I have other graphs that work very well.
4. This is the graph of a remote machine. I get it with a netsaint statd script.

Thank you
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

trick17 wrote:2. How do I get the rrdtool string ??
Click on the graph; you'll see for of them. Click on the wrench next to the first one. Post your findings, please.
Reinhard
trick17
Posts: 4
Joined: Tue Nov 08, 2005 6:51 am

Post by trick17 »

Sorry, I didn't have the time:

You mean this ???

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="am02nag - Free Diskspace /" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="free space (MB)" \
DEF:a="/var/www/cacti/rra/am02nag_diskfree_8416.rrd":diskfree:AVERAGE \
CDEF:cdefa=a,1024,* \
AREA:cdefa#4668E4:"diskfree" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s"
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

trick17 wrote: 4. This is the graph of a remote machine. I get it with a netsaint statd script.
You should be able to install net-snmp on the remote host, configure it to present data for the relevant disk/partition/filesystem, and then use the provided ucd/net snmp host templates for gathering disk space information, cpu usage, load etc etc... I am currently graphing 26 remote machines and it works fine.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

trick17 wrote:Sorry, I didn't have the time:

You mean this ???

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="am02nag - Free Diskspace /" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="free space (MB)" \
DEF:a="/var/www/cacti/rra/am02nag_diskfree_8416.rrd":diskfree:AVERAGE \
CDEF:cdefa=a,1024,* \
AREA:cdefa#4668E4:"diskfree" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s"
Not sure and no cacti system at hand ...
Please remove the "()" and have another try. Suppose, escaping of parenthesis might be the clue.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests