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

Diff of /monit/status.c

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

revision 1.56 by martinp, Thu Jan 6 20:51:49 2005 UTC revision 1.57 by martinp, Tue Apr 5 19:52:57 2005 UTC
# Line 72  Line 72 
72  /**  /**
73   * Show all services in the service list   * Show all services in the service list
74   */   */
75  void status() {  void status(char *level) {
76    
77  #define LINE 1024  #define LINE 1024
78    
# Line 89  void status() { Line 89  void status() {
89        char *auth= Util_getBasicAuthHeader();        char *auth= Util_getBasicAuthHeader();
90                
91        socket_print(sock,        socket_print(sock,
92                     "GET /_status?format=text HTTP/1.0\r\n%s\r\n",                     "GET /_status?format=text&level=%s HTTP/1.0\r\n%s\r\n",
93                     auth?auth:"");                     level, auth?auth:"");
94        FREE(auth);        FREE(auth);
95        /* Read past HTTP headers and check status */        /* Read past HTTP headers and check status */
96        while(socket_readln(sock, buf, LINE)) {        while(socket_readln(sock, buf, LINE)) {

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

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