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

Simon Hobson linux at thehobsons.co.uk
Tue Jun 21 08:49:46 CEST 2011

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.

More information about the rrd-users mailing list