1#!/bin/bash 2# 3# Copyright (c) 2003 Fredrik Ohrn. All Rights Reserved. 4# 5# See the included COPYING file for license details. 6# 7 8# Edit the variables 9 10hostname=$HOSTNAME 11 12ipmi_cmd="/usr/local/bin/ipmitool -I open" 13rrd_dir="/some/dir/rrd" 14 15# No need to edit below this point. 16 17IFS=" 18" 19 20for line in `eval $ipmi_cmd -c sdr list full` ; do 21 22 IFS=, 23 24 split=($line) 25 26 file="$rrd_dir/$hostname-${split[0]}.rrd" 27 28 rrdupdate "$file" "N:${split[1]}" 29done 30