AW: [hobbit] Re: AW: Purple not prolongating to BB2 page
Hi Kolbjørn,
a little late, but can you please give me an example, on how to do such a test? This would wipe away all my Purple BB2page problems.
Thank you, Pascal
-----Ursprüngliche Nachricht----- Von: Kolbjørn Barmen [mailto:kolbjorn.barmen at uninett.no] Gesendet: Mittwoch, 17. Mai 2006 09:17 An: hobbit at hswn.dk Betreff: [hobbit] Re: AW: Purple not prolongating to BB2 page
On Tue, 16 May 2006, lehnert at adtech.de wrote:
Hi Dominique,
thanks we got back the Purple BB2page, but I think not yet in the right order. The Purble page should have a higher prio than the Yellow page.
Nah...
What do you think?
Nothing stops you from making a test that checks for purple status and flag red or yellow if it finds any :)
-- Kolbjørn Barmen UNINETT Driftsenter
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thu, May 18, 2006 at 08:26:34AM +0200, lehnert at adtech.de wrote:
Hi Kolbjørn,
a little late, but can you please give me an example, on how to do such a test? This would wipe away all my Purple BB2page problems.
You could add the --purplelog=/var/log/hobbit/purples.txt to the bbgen command in hobbitlaunch.cfg; this file will then have a list of the purple statuses on your system.
If you would rather have it as a status on your display, then run this as a Hobbit server extension script.
#!/bin/sh
$BB $BBDISP "hobbitdboard color=purple fields=hostname,testname" >/tmp/purples.txt
if test wc -l /tmp/purples.txt -gt 0
then
$BB $BBDISP "status $MACHINE.purples red date
Purple statuses:
`cat /tmp/purples.txt`
"
else
$BB $BBDISP "status $MACHINE.purples green date
No purple statuses
"
fi
exit 0
Regards, Henrik
participants (2)
-
henrik@hswn.dk
-
lehnert@adtech.de