Re: [rrd-users] gap in graph in case of UNKNOWN value

2011-06-21 Thread Martin T
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=$(

Re: [rrd-users] gap in graph in case of UNKNOWN value

2011-06-20 Thread 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=$(hddtemp -n /dev/sda) > >#in case $temp string is empty, a "U" value is put to the database >if [

Re: [rrd-users] gap in graph in case of UNKNOWN value

2011-06-20 Thread Martin T
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

Re: [rrd-users] gap in graph in case of UNKNOWN value

2011-06-09 Thread Simon Hobson
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

Re: [rrd-users] gap in graph in case of UNKNOWN value

2011-06-09 Thread Martin T
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

Re: [rrd-users] gap in graph in case of UNKNOWN value

2011-06-07 Thread Simon Hobson
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