Hi,
it would be nice to see the Sleep State of the HDDs in the RRD Graphs. How can i do that?
Jochen
Hi,
it would be nice to see the Sleep State of the HDDs in the RRD Graphs. How can i do that?
Jochen
Check a thread in the forum with "smart graph" name by the user Solo. Maybe you can get ideas from there.
thanks for the hint! I will try this.
I don't know actually what states the HDDs are reporting, but you can have something like this:
unknown=0
sleep=1
active/idle=2
working=3
then you can write some code: (code has to be ported)
This would be a really good addition to the existing graphs!
Is there any chance that this will be implemented? Or is there an easy way to implement this myself? I'm not too good at real coding if it happens outside of matlab.
At the moment I keep track of the idle states by having a little shell script started at boot and then create a plot from the logfile with a little Matlab script from time to time.
Here is the shell script:
#!/bin/sh
while [ 1 ]
do
i=0
for DRIVE in $*
do
DATE=`date +"%Y-%m-%d %H:%M:%S"`
RESULT_OLD=${RESULT[i]}
RESULT[$i]=`hdparm -C $DRIVE | grep state`
if [ "$RESULT_OLD" != "${RESULT[i]}" ]
then echo $DATE $DRIVE ${RESULT[i]}
fi
i=$i+1
done
sleep 5
done
Alles anzeigen
the script is called by
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!