On Mon, Nov 14, 2005 at 05:18:41PM +0100, Frédéric Mangeant wrote:
same here (with Hobbit 4.1.2), it returns the "true" color of the test, and not blue :
$ ./bb localhost "query dashboard.conn" red <!-- [flags:ordAstILe] --> Thu Nov 10 16:53:30 2005 conn NOT ok
It works fine on my bbgen 3.6 server :
$ ./bb localhost "query dashboard.conn" blue Wed Oct 26 18:24:17 2005 OFFLINE UNTIL Mon Jul 21 18:24:17 2008
using "hobbitdlog" (from 4.1.2p1) it works fine, the blue color shows up on the first line :
Eureka - I should have thought of that right away.
When hobbitd responds to a "query" command, it just spits back the first line of the last status message it received. But that will be the "raw" status message - i.e. it will show red, because a disable is handled through some internal status flags in Hobbit that aren't reflected in the status message text hobbitd stores.
That is why when you look at the detailed status view for something that is disabled, you'll see the "true" status below the "Disabled until .... " message.
This patch should fix it - against 4.1.2p1.
Regards, Henrik