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

Diff of /monit/collector.c

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

revision 1.2 by hauk, Tue Dec 7 03:17:01 2004 UTC revision 1.3 by hauk, Sun Dec 12 23:45:08 2004 UTC
# Line 140  static int data_send(Collector_T C, char Line 140  static int data_send(Collector_T C, char
140    int   rv;    int   rv;
141    char *auth;    char *auth;
142    
143    auth = get_basic_authentication_header();    auth = Util_getBasicAuthHeader();
144    rv = socket_print(C->socket,    rv = socket_print(C->socket,
145           "POST %s HTTP/1.1\r\n"           "POST %s HTTP/1.1\r\n"
146           "Host: %s:%d\r\n"           "Host: %s:%d\r\n"
# Line 187  static int data_check(Collector_T C) { Line 187  static int data_check(Collector_T C) {
187      log("Collector: error receiving data from %s -- %s\n", C->url->url, STRERROR);      log("Collector: error receiving data from %s -- %s\n", C->url->url, STRERROR);
188      return FALSE;      return FALSE;
189    }    }
190    chomp(buf, STRLEN);    Util_chomp(buf, STRLEN);
191    n = sscanf(buf, "%s %d %s", proto, &status, msg);    n = sscanf(buf, "%s %d %s", proto, &status, msg);
192    if(n != 3 || (status >= 400))    if(n != 3 || (status >= 400))
193    {    {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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