Simon,
yes, such check works fine. Thanks!
regards,
martin
2011/6/21 Simon Hobson :
> Martin T wrote:
>
>>sorry about late reply. So basically I guess something like this should work:
>>
>>
>><
>>#!/bin/bash
>>
>>#executes hddtemp and prints only the temperature number without units
>>temp=$(
Martin T wrote:
>sorry about late reply. So basically I guess something like this should work:
>
>
><
>#!/bin/bash
>
>#executes hddtemp and prints only the temperature number without units
>temp=$(hddtemp -n /dev/sda)
>
>#in case $temp string is empty, a "U" value is put to the database
>if [
Simon,
sorry about late reply. So basically I guess something like this should work:
<
#!/bin/bash
#executes hddtemp and prints only the temperature number without units
temp=$(hddtemp -n /dev/sda)
#in case $temp string is empty, a "U" value is put to the database
if [ -n "$temp" ]
then
rrd
Martin T wrote:
>I'm sure it's showing zeros- when the network outage started, HDD
>temperature value went from previous value directly to zero. If I had
>a network outage and server was unreachable to a machine where
>rrdtools runs, following data was written to RRD:
>
># rrdtool fetch HDD.rrd AV
Simon,
I'm sure it's showing zeros- when the network outage started, HDD
temperature value went from previous value directly to zero. If I had
a network outage and server was unreachable to a machine where
rrdtools runs, following data was written to RRD:
# rrdtool fetch HDD.rrd AVERAGE -s 1307061
Martin T wrote:
>I have a RRD database with a step of 60s and heartbeat of 120s. This
>database holds the GAUGE value(HDD temperature of my server). There is
>a script which asks temperature value from the server after every 60s
>and updates the database file. Finally I have a "rrdtool graph"
>scri