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

Diff of /monit/util.c

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

revision 1.166 by hauk, Sat Oct 29 17:16:14 2005 UTC revision 1.167 by martinp, Sat Oct 29 23:44:16 2005 UTC
# Line 738  void Util_printService(Service_T s) { Line 738  void Util_printService(Service_T s) {
738    
739        if(n->family == AF_INET) {        if(n->family == AF_INET) {
740                    
741             if(n->SSL.use_ssl) {             printf(" %-20s = if failed %s:%d%s [protocol %s%s] with "
742                 "timeout %d seconds %s then %s else if passed %s then %s\n",
743                 "Port", n->hostname, n->port, n->request?n->request:"",
744                 n->protocol->name, n->SSL.use_ssl?" via SSL":"", n->timeout,
745                 ratio1, actionnames[a->failed->id],
746                 ratio2, actionnames[a->passed->id]);
747                        
748               printf(" %-20s = if failed %s:%d%s [protocol %s via SSL] with "             if(n->SSL.certmd5 != NULL)
749                 "timeout %d seconds %s then %s else if passed %s then %s\n",               printf(" %-20s = %s\n", "Server cert md5 sum", n->SSL.certmd5);
                "Port", n->hostname, n->port, n->request?n->request:"",  
                n->protocol->name, n->timeout,  
                ratio1, actionnames[a->failed->id],  
                ratio2, actionnames[a->passed->id]);  
             
              if(n->SSL.certmd5 != NULL)  
                printf(" %-20s = %s\n", "Server cert md5 sum", n->SSL.certmd5);  
             
         } else {  
750    
              printf(" %-20s = if failed %s:%d%s [protocol %s] with timeout %d "  
                "seconds %s then %s else if passed %s then %s\n",  
                "Port", n->hostname, n->port, n->request?n->request:"",  
                n->protocol->name, n->timeout,  
                ratio1, actionnames[a->failed->id],  
                ratio2, actionnames[a->passed->id]);  
             
            }  
           
751        } else if(n->family == AF_UNIX) {        } else if(n->family == AF_UNIX) {
752                    
753          printf(" %-20s = if failed %s [protocol %s] with timeout %d seconds "          printf(" %-20s = if failed %s [protocol %s] with timeout %d seconds "

Legend:
Removed from v.1.166  
changed lines
  Added in v.1.167

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