Hi @ all we just installed a Stingray TM and now I´ve to struggle with TrafficScript Rules ;-) Until now I used only Rulebuilder, but with TS there´s of course much more possible ... Ok, here´s my Question, perhaps it´s a "little Thing" but not for me, at this time We´ve a pool (Example) with 4 Nodes (ex1, ex2, ex3, ex4) ... now I want to write a rule with Trafficscript like the following: When URL equals www.example.com, then use "Pool Example", but when Pool Example ist dead or not reachable, then redirect or change to site www.example2.com Here´s my TS-Rule: if ( http.getheader ( "host" ) == www.example.com ) { pool.use ( "Example" ) ; } $status = pool.checknode ( "Example" , "ex1" , 80 ) ; if ( $status != "Active" ) { pool.use ( "Example" ) ; } else http.changeSite ( http://www.exmple2.com ) ; but this don´t work, everytime I got "Service Unavailable" when I disabled Node "ex1" The next Problem ist how to check, if all 4 Nodes are healthy, not even 1 , like in my rule above Did somebody have an idea? Thanks a lot for any Tips. Regards
... View more