Richard Roque Posted November 19, 2023 Share Posted November 19, 2023 HI, I am running RHI, floating the same IP either from one data center or another. They both cannot be up at the same time and a ping monitor will not work because the same IP your checking for might be alive on the Netscaler the monitor is on. So I have been trying to do an http-ecv monitor with the following: Custom headers : Content-Type: application/json\r\nX-NITRO-USER: <username>\r\nX-NITRO-PASS: <password>\r\n -send "GET http://10.xx.xx.xx/nitro/v1/stat/lbvserver?args=name:svc_dns_test&attrs=state" -recv "{ \"errorcode\": 0, \"message\": \"Done\", \"severity\": \"NONE\", \"lbvserver\": [ { \"state\": \"DOWN\" } ] }" The monitor fails with mon_evc_api ENABLED DOWN Failure - TCP connection successful, but application timed out 1 Is there a way that this can be done with an http-ecv monitor or perhaps with a custom perl monitor using a direct nitro call or maybe using curl (which works from the shell) from one Netscaler to another? In a custom monitor how could I validate the recv code? curl -k -H "X-NITRO-USER: <username>" -H "X-NITRO-PASS: <password>" "http://10.xx.xx.xx/nitro/v1/stat/lbvserver?args=name:svc_dns_test&attrs=state" returns -recv example above Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Jeff Riechers Posted November 22, 2023 Share Posted November 22, 2023 If you run that command outside of a monitor, does it work and respond with the correct data? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now