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

Martin T m4rtntns at gmail.com
Tue Jun 21 17:36:58 CEST 2011


Simon,
yes, such check works fine. Thanks!

regards,
martin

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:
>>
>>
>><<<<<
>>#!/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
>>rrdtool update /home/martin/hdd.rrd N:$temp
>>else
>>rrdtool update /home/martin/hdd.rrd N:U
>>fi
>>
>>>>>>>
>>
>>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
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>



More information about the rrd-users mailing list