/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

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

revision 1.95 by hauk, Wed Sep 24 23:52:43 2003 UTC revision 1.96 by martinp, Thu Sep 25 15:22:10 2003 UTC
# Line 523  void printrunlist() { Line 523  void printrunlist() {
523  void printservice(Service_T s) {  void printservice(Service_T s) {
524        
525    Port_T n;    Port_T n;
526      Icmp_T i;
527    Mail_T r;    Mail_T r;
528    Device_T dl;    Device_T dl;
529    Resource_T q;    Resource_T q;
# Line 584  void printservice(Service_T s) { Line 585  void printservice(Service_T s) {
585                    
586          if(n->SSL.use_ssl) {          if(n->SSL.use_ssl) {
587                        
588            printf(" %-20s = %s:%d%s [protocol %s via SSL]\n", "Host:Port",            printf(" %-20s = %s:%d%s [protocol %s via SSL] with timeout %d seconds\n",
589                   n->hostname, n->port, n->request?n->request:"",                  "Host:Port", n->hostname, n->port, n->request?n->request:"",
590                   n->protocol->name);                   n->protocol->name, n->timeout);
591                        
592            if(n->SSL.certmd5 != NULL)            if(n->SSL.certmd5 != NULL)
593                printf(" %-20s = %s\n", "Server cert md5 sum", n->SSL.certmd5);                printf(" %-20s = %s\n", "Server cert md5 sum", n->SSL.certmd5);
594                        
595          } else {          } else {
596              
597            printf(" %-20s = %s:%d%s [protocol %s]\n", "Host:Port",            printf(" %-20s = %s:%d%s [protocol %s] with timeout %d seconds\n",
598                   n->hostname, n->port, n->request?n->request:"",                   "Host:Port", n->hostname, n->port, n->request?n->request:"",
599                   n->protocol->name);                   n->protocol->name, n->timeout);
600                        
601          }          }
602                    
603        } else if(n->family == AF_UNIX) {        } else if(n->family == AF_UNIX) {
604                    
605          printf(" %-20s = %s [protocol %s]\n", "Unix Socket",          printf(" %-20s = %s [protocol %s] with timeout %d seconds\n",
606                 n->pathname, n->protocol->name);                 "Unix Socket", n->pathname, n->protocol->name, n->timeout);
607                    
608        }        }
609                
# Line 610  void printservice(Service_T s) { Line 611  void printservice(Service_T s) {
611            
612    }    }
613        
614      if(s->icmplist)
615        for(i= s->icmplist; i; i= i->next)
616          printf(" %-20s = if failed %s with timeout %d seconds then %s\n",
617                 "ICMP", icmpnames[i->type], i->timeout, actionnames[i->action]);
618    
619    for(t= s->timestamplist; t; t= t->next) {    for(t= s->timestamplist; t; t= t->next) {
620            
621      if(t->test_changes) {      if(t->test_changes) {

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.96

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