Commit 6367aa0e authored by Jens Langhammer's avatar Jens Langhammer

seperate Username and Password into seperate variable

parent 3ea83099
......@@ -12,10 +12,13 @@ INFLUX_PORT=8086
INFLUX_DB=""
PREFIX="ipmi"
USERNAME="ipmitool"
PASSWORD="ipmitool"
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HOSTNAME=`echo $1 | sed 's/\./\\_/g'`
# Pull the data we want from the HP machine, Via IPMITOOL
OUT=$(/usr/bin/ipmitool -I lanplus -H "$1" -U ipmitool -P ipmitool sensor)
OUT=$(/usr/bin/ipmitool -I lanplus -H "$1" -U "$USERNAME" -P "$PASSWORD" sensor)
# Select what we are sending to Graphite
echo "$OUT" | while read LINE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment