[mrtg] [SUSPICIOUS MESSAGE] How configure mrtg for negative data?

McDonald, Daniel (Dan) Dan.McDonald at austinenergy.com
Wed Jan 13 15:39:58 CET 2016

On 1/13/16, 8:31 AM, "mrtg on behalf of Виктор Белоус"
<mrtg-bounces+dan.mcdonald=austinenergy.com at lists.oetiker.ch on behalf of
bvictor at belous.su> wrote:

>Hi !
>I try use mrtg for get temperature data in Celsius degree positive and
>negative. In positive all good, but negative is null. Ноw configure mrtg
>for negative degree?
>--log: /opt/csw/bin/rateup /var/www/mrtg/lpowernode1/ lpowernode2
>1452691502 -Z g 2147483048 2147483048 1000 c #00cc00 #0000ff #006600
>#ff00ff -x l [Temp] k 1000 i

Rate doesn’t support negative numbers.  You need to use rrdtool to graph
negative numbers.  By default, the RRDfiles created by mrtg are turned
with a min value of 0, so after creating the red files, you need to tune
them with something like:

For k in *temp*.rrd ; do rrdtool tune $k -i ds0:-800 -i ds1:-800; done   

More information about the mrtg mailing list