cancel
Showing results for 
Search instead for 
Did you mean: 

Ayuda Irule

mrlopez
Nimbostratus
Nimbostratus

Antes que nada, quiero agradecer por su tiempo y ayuda.

Estoy necesitando realizar una Irule de chequeo de nodos, pero no estoy logrando hacerla ni encontrando información que me oriente, por eso recurro a su colaboración.

Básicamente lo que necesito es que se chequee un PATH y si este responde 200 OK el nodo reciba carga y si responde cualquier otro código el nodo quede deshabilitado (o deje de recibir carga hasta que reciba 200 OK.

 

 

 

1 ACCEPTED SOLUTION

Kevin_Stewart
F5 Employee
F5 Employee

Ah, well you can't use curl inside an HTTP monitor. You can, however, do curl in an external (EAV) monitor:

https://support.f5.com/csp/article/K71282813

 

View solution in original post

5 REPLIES 5

Kevin_Stewart
F5 Employee
F5 Employee

Please excuse the Spanish here. Using Google Translate.

Please look at the following articles for creating HTTP monitors:

https://support.f5.com/csp/article/K2167

https://support.f5.com/csp/article/K11359

----------------------------------------------------------------------

 
Por favor disculpe a los españoles aquí. Usando el traductor de Google.
Consulte los siguientes artículos para crear monitores HTTP:
 
 

Kevin thank you very much for your answer, but unfortunately I can't use the GET command, I need the answer of the curl command

Kevin_Stewart
F5 Employee
F5 Employee

cURL is also going to do a GET request. Do you mean an HTTP health monitor with something like a POST request? Or do you mean a custom script monitor that uses cURL?

Via bash I run this command:
curl -m 10 -Is http://10.31.0.45:8080/mov-centralizador/servico/ServicoVersionesVig
and the answer is:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1


This is the result that I expect, when I generate an http monitor with that line, it adds characters and the response is always 400 incorrect request

HTTP monitor
curl -m 10 -Is /mov-centralizador/servico/ServicoVersionesVigentes/getVersionVigente\x0d\x0a\x0d\x0a

 

mrlopez_0-1663096222412.png

 

Kevin_Stewart
F5 Employee
F5 Employee

Ah, well you can't use curl inside an HTTP monitor. You can, however, do curl in an external (EAV) monitor:

https://support.f5.com/csp/article/K71282813