[mrtg] Re: Negative values ;)

Trent Melcher tmelcher at trilogytel.com
Fri Oct 3 17:39:23 MEST 2003


Sorry, I didnt see your original post however, if your using a script to
capture your data, set it up that if you get negative values to only display
the blue line or something. Here is an example in perl



($temp1,$temp2) = IfNegative($temp1,$temp2);

sub IfNegative {
	my ($zero,$num) = @_;
		if ($num < 0) {
			$num = -($num);
			$zero = 0;
		}
		return($zero,$num);
}


I use this for pulling temperature.  If it goes below zero outside then only
the blue line is display/ green area is zero, but if its above zero then
both the green area and blue line are displayed as the same value.

Helps to show when the temps are below zero in the winter.

Trent



-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Simon Westlake
Sent: Friday, October 03, 2003 9:44 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Negative values ;)


Well, no response to my negative values email so I'm guessing it's
impossible ;) In that case, does anyone know a tool that WILL graph negative
values that's a frontend to RRDTool? Preferably one capable of working with
large amounts of data (1200+ devices.)

MRTG is working beautifully for everything *but* the negative values I'm
receiving for a power level.


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list