Hi, how should I configure montrc by using check network with IP if syntax...

Issue #539 closed
alan.huang created an issue

e.g. check network eth0 with address 192.168.1.1 if failed port 80 protocol http request "/ahuang/GetBusData.php?routeIds=300" then alert


could this work!? coz I need2 monitor specific api with health check (port & net upload/download

monit ver. 5.20

Comments (3)

  1. Tildeslash repo owner

    check network does not include the port-statement. Instead use check host. I.e.

    check host hostname with address 192. 
      if failed
         port 80 protocol http 
           request "/ahuang/GetBusData.php?routeIds=300"
      then alert
    

    Ps. Please, only use this issue list for bug-reports, not support

  2. Log in to comment