49 |
#include "event.h" |
#include "event.h" |
50 |
#include "alert.h" |
#include "alert.h" |
51 |
#include "monit_process.h" |
#include "monit_process.h" |
52 |
|
#include "monit_device.h" |
53 |
|
|
54 |
#define ACTION(c) !strncasecmp(req->url, c, sizeof(c)) |
#define ACTION(c) !strncasecmp(req->url, c, sizeof(c)) |
55 |
|
|
636 |
break; |
break; |
637 |
|
|
638 |
case TASK_DEVICE: |
case TASK_DEVICE: |
639 |
if(get_fsusage(s->path, s->devinfo)) { |
if(DeviceInfo_Usage(s->devinfo, s->path)) { |
640 |
|
|
641 |
if(s->devinfo->f_files > 0) { |
if(s->devinfo->f_files > 0) { |
642 |
|
|
988 |
|
|
989 |
} |
} |
990 |
|
|
991 |
if(!get_fsusage(s->path, s->devinfo)) { |
if(!DeviceInfo_Usage(s->devinfo, s->path)) { |
992 |
|
|
993 |
out_print(res, |
out_print(res, |
994 |
"<tr %s>" |
"<tr %s>" |
1192 |
|
|
1193 |
static void do_task_device(HttpRequest req, HttpResponse res, Service_T s) { |
static void do_task_device(HttpRequest req, HttpResponse res, Service_T s) { |
1194 |
|
|
1195 |
int state= get_fsusage(s->path, s->devinfo); |
int state= DeviceInfo_Usage(s->devinfo, s->path); |
1196 |
|
|
1197 |
out_print(res, |
out_print(res, |
1198 |
"<p><br><h3>Device status</h3><br>"); |
"<p><br><h3>Device status</h3><br>"); |