Pandora FMS Community

TCP receive

cdstg · 15 oct 2016, 10:45 · 6 mensajes · 59 visitas

  1. Inicio del debate

    Is it possible to use a reflex in the ftp receive? The reason is many of the http servers we are monitoring are not returning a 200 some are sending 30x so I would like to check for 200 or 300 Thanks

  2. Hello cdstg, You can't use regular expresions in TCP receive as it's supposed to be the "conversation" between the server and the target port. A solution could be develop your own server plugin to have the behaviour desired. Kind regards, Enrique.

  3. Ok I fixed it you can do this make the module Remote TCP network agent, alphanumeric data (remote_tcp_string) set the TCP send HEAD / HTTP/1.0^M^M yes head else you will get the whole page and as this data saves it will creat a lot of data so head is the answer no TCP Receive Then in the Warning status HTTP/d.ds*40d Critical HTTP/d.ds*50d So 40X will issue warn 50x will issue Cirtical You will also need to do a port check else this will go to unknown if the web server is down

  4. Good trick cdstg! Thanks for post your solution, it may help other users. Kind regards, Enrique.

  5. Actually I looked at the network server Perl code and you can do a regex on the TCP receive for a Boolean module so you can simply make the http check as Network type proc TCP send HEAD / HTTP/1.0^M^M  But good to change the standard one in  Pandora to HEAD rather than GET as you do not need to get he whole page anyway and on TCP Receive HTTP/d.ds*[234]0d This means you will get a Cirtical for 500 and no conenction 20X 30X 40X will all report ok

  6. Hello cdstg, Apologies for my confusion. I'm glad you were able to solve it. Kind regards, Enrique.

Entra en tu cuenta para publicar.