/[monit]/monit/http/cervlet.c
ViewVC logotype

Diff of /monit/http/cervlet.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.102 by hauk, Wed Sep 24 02:56:55 2003 UTC revision 1.103 by martinp, Thu Sep 25 15:22:10 2003 UTC
# Line 1762  static void do_service_process(HttpReque Line 1762  static void do_service_process(HttpReque
1762    
1763  static void do_service_host(HttpRequest req, HttpResponse res, Service_T s) {  static void do_service_host(HttpRequest req, HttpResponse res, Service_T s) {
1764    
1765      Icmp_T icmp;
1766    Port_T port;    Port_T port;
1767    int available= TRUE;    int available= TRUE;
1768        
1769      for(icmp= s->icmplist; icmp; icmp= icmp->next) {
1770        if(!icmp->is_available) {
1771          available= FALSE;
1772          break;
1773        }
1774      }
1775    
1776    for(port= s->portlist; port; port= port->next) {    for(port= s->portlist; port; port= port->next) {
1777      if(!port->is_available) {      if(!port->is_available) {
1778        available= FALSE;        available= FALSE;
# Line 1817  static void do_service_host(HttpRequest Line 1825  static void do_service_host(HttpRequest
1825        }        }
1826      }      }
1827    }    }
1828      {
1829        Icmp_T n;
1830        for(n= s->icmplist; n; n= n->next)
1831          out_print(res,
1832                    "<tr><td>ICMP</td>"
1833                    "<td>if failed %s with timeout %d seconds then %s</td></tr>",
1834                    icmpnames[n->type], n->timeout, actionnames[n->action]);
1835      }
1836        
1837    print_alerts(res, s);    print_alerts(res, s);
1838        

Legend:
Removed from v.1.102  
changed lines
  Added in v.1.103

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26