Windows / Get Free Disk Space

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

Moderators: Developers, Moderators

Post Reply
guest

Windows / Get Free Disk Space

Post by guest »

Posted: Thu Aug 15, 2002 10:12 pm Post subject: Windows / Get Free Disk Space

--------------------------------------------------------------------------------

Hi,

I use Windows NT and Apache Web Server. I am trying to configure the Get Free Disk Space data source, but it doesn't work. I set then Data Source Type as "Gauge", the Max value, and the partition as "c". but nothing happens with the graph.
The source configuration is:

c:/rrdtool/rrdtool.exe create \
c:/php/php/cacti/rra/disk_space.rrd \
--step 300 \
DS:megabytes:GAUGE:600:0:100000 \
DS:percent:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \


And the graph:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start="-86400" \
--title="Disk Space" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--vertical-label="Space" \
DEF:a="c\:/php/php/cacti/rra/disk_space_percent.rrd":percent:AVERAGE \
AREA:a#ED7600:"Space"

What is wrong in the code?
Any help would be appreciated
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The 'Get Free Disk Space' is written to parse the output of the Unix command df. Therefore it will not work on a win32 platform. If you know of an equivilant command to do this under win32, that would be very helpful.

Also, you may be able to do this via the default install of SNMP. Try doing an snmpwalk to see what you find.

-Ian
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

Alternatively, you can use a nagios plugin.
see my reply to this one:
http://www.raxnet.net/board/viewtopic.php?t=677
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests