26 Sep
2024
26 Sep
'24
3:24 a.m.
Hi
I have an http content test that goes red if the webpage doesn't contain the string "Status: OK". The hosts.cfg entry is like so:
10.11.12.13 myhost.example.com cont;http://10.11.12.13:80/;Status:.OK
I can manually take a server out of the pool (eg for patching), by changing the webpage content to contain "manually disabled". When this happens, the http test goes red, but I want the status to instead change to yellow. Is there a way to set the colour of the http test depending on the content? The doco doesn't mention anything like this.
I'm guessing that this is not supported, and I'll need to knock up a script for this.
Cheers Jeremy