Forum Discussion

ukstin's avatar
ukstin
Icon for Nimbostratus rankNimbostratus
Mar 31, 2009

Negation Monitor

Hi, probably my question is dumb but I´m in doubt...

 

 

I need to create a monitor that when return an expected string returns down and disable the pool member.

 

 

What what the rule for the monitors if it´s ok must return UP string, right? and if it´s wrong, it can return any string or it must be DOWN or something else?

1 Reply

  • Actually if it returns anything to STDIN, the monitor is considered up. A lot of the templates on here use echo "UP" in the script, but that's really just a convention, not a requirement.

     

     

    So for yours, you want to check the status of your request, and if you see that string, you don't want to return anything to STDIN, just let it time out.

     

     

    Denny