CUFP bronto <p>Same problem [id://407340|again]. But this time
it was just a bit more complex. This time the platform to be
monitored is a [|Sun Fire 12K]. Even for a small configuration
like ours, the command <code>showenvironment -p temps</code>
returned 198 temperatures from different sensors! Since there
are many sensors on the same board, we needed to aggregate the
temperatures and report the resulting minimum and maximum.</p>
<p>But wait, there is more <tt>:-)</tt>
<code>showenvironment</code> also returns a status code, that
indicates if the parameter is in a safe range or if you should
start worrying -or if it wasn't simply possible to read the
temperature at all.</p> <p>So I came out with the following
script, that does the job. <strike>Luckily</strike>
Unfortunately I don't know what comes out in case an INVALID
status is returned, so I just had to guess. Since we are going
to send alerts around if an INVALID pops up, it is not a big
problem if it returns crap instead of temperatures, anyway if
you