[rrd-users] gap in graph in case of UNKNOWN value
m4rtntns at gmail.com
Tue Jun 21 17:36:58 CEST 2011
yes, such check works fine. Thanks!
2011/6/21 Simon Hobson <linux at thehobsons.co.uk>:
> Martin T wrote:
>>sorry about late reply. So basically I guess something like this should work:
>>#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" ]
>>rrdtool update /home/martin/hdd.rrd N:$temp
>>rrdtool update /home/martin/hdd.rrd N:U
>>Am I correct?
> Yes. Does it work ?
> Simon Hobson
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
More information about the rrd-users