[hobbit] Temperature status formatting for graphs

Henrik Stoerner henrik at hswn.dk
Fri Feb 25 07:56:41 CET 2005


On Thu, Feb 24, 2005 at 05:27:35PM -0500, Robert Edeker wrote:
> 
>   So does the data need to be in _exactly_ the same format as sampled
> in do_temperature.c or can there be extra columns and more spaces? 
> I'd like to add the warn/panic thresholds to the status output for the
> computer operators..

Extra columns will make it break. The code picks up the temperature
readings from the last two columns of each line, and assumes those are
the celsius- and fahrenheit-temperatures. Everything before those two
columns are treated as being part of the name of the sensor.

But your suggestions does make sense. How about this:

Device                Temp(C)  Temp(F)
--------------------------------------
&green Motherboard#0      31       87   (Warn: 40, Panic: 50)

i.e. your extra information is inside parenthesis ? I'd just strip
everything from '(' to ')' from the line before processing it, and
then handle the rest of the report as I do now - so you can put
whatever info you like there.


Regards,
Henrik



More information about the Xymon mailing list