3
# Copyright (c) 2003 Fredrik Ohrn. All Rights Reserved.
5
# See the included COPYING file for license details.
12
ipmi_cmd="/usr/local/bin/ipmitool -I open"
13
rrd_dir="/some/dir/rrd"
15
# No need to edit below this point.
20
for line in `eval $ipmi_cmd -c -v sdr list full` ; do
26
file="$rrd_dir/$hostname-${split[0]}.rrd"
28
if [ -e "$file" ] ; then
29
echo "Skipping existing file $file"
33
echo "Creating file $file"
35
rrdtool create "$file" \
36
--step 300 DS:var:GAUGE:900:${split[16]}:${split[17]} \
37
RRA:AVERAGE:0.5:1:288 \
38
RRA:AVERAGE:0.5:6:336 \
39
RRA:AVERAGE:0.5:12:720