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

Diff of /monit/status.c

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

revision 1.47 by hauk, Thu Sep 18 15:50:34 2003 UTC revision 1.48 by hauk, Tue Sep 30 16:03:13 2003 UTC
# Line 86  void status() { Line 86  void status() {
86    } else {    } else {
87      fprintf(stdout, "The monit daemon uptime: %s\n",uptime);      fprintf(stdout, "The monit daemon uptime: %s\n",uptime);
88    }    }
89    free(uptime);    FREE(uptime);
90        
91    for(s= servicelist_conf; s; s= s->next_conf) {    for(s= servicelist_conf; s; s= s->next_conf) {
92      remote_status(s);      remote_status(s);
# Line 140  static void local_status(Service_T s) { Line 140  static void local_status(Service_T s) {
140                "Uptime: %s\n",                "Uptime: %s\n",
141                s->name, (int)pid, uptime);                s->name, (int)pid, uptime);
142            
143        free(uptime);        FREE(uptime);
144    
145      } else {      } else {
146            
# Line 263  static int remote_status(Service_T s) { Line 263  static int remote_status(Service_T s) {
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        while((0 < (n= socket_read(sock, buf, STRLEN)))) {        while((0 < (n= socket_read(sock, buf, STRLEN)))) {
269          buf[n]= 0;          buf[n]= 0;

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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