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

Diff of /monit/status.c

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

revision 1.42 by hauk, Sun Aug 31 21:33:45 2003 UTC revision 1.43 by hauk, Tue Sep 2 02:05:49 2003 UTC
# Line 258  static int remote_status(Service_T s) { Line 258  static int remote_status(Service_T s) {
258      } else {      } else {
259    
260        int n;        int n;
261        char buf[STRLEN];        char buf[BIGSTRLEN];
262        char *auth= get_basic_authentication_header();        char *auth= get_basic_authentication_header();
263    
264        socket_print(sock, "GET /%s?action=status HTTP/1.0\r\n%s\r\n",        socket_print(sock, "GET /%s?action=status HTTP/1.0\r\n%s\r\n",
265                     s->name, auth);                     s->name, auth);
266        free(auth);        free(auth);
267                
268        if(0>(n= socket_read(sock, buf, STRLEN))) {        if(0>(n= socket_read(sock, buf, BIGSTRLEN))) {
269                    
270          local_status(s);          local_status(s);
271          socket_free(&sock);          socket_free(&sock);
# Line 292  static int remote_status(Service_T s) { Line 292  static int remote_status(Service_T s) {
292        } else {        } else {
293    
294          fprintf(stdout, "The monit server did not return a process, "          fprintf(stdout, "The monit server did not return a process, "
295            "device, file or directory record.\n");            "device, file, directory or host record.\n");
296          local_status(s);          local_status(s);
297            
298        }        }

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

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