44 |
#include "socket.h" |
#include "socket.h" |
45 |
#include "monitor.h" |
#include "monitor.h" |
46 |
#include "monit_process.h" |
#include "monit_process.h" |
47 |
|
#include "monit_device.h" |
48 |
|
|
49 |
|
|
50 |
|
|
161 |
break; |
break; |
162 |
|
|
163 |
case TASK_DEVICE: |
case TASK_DEVICE: |
164 |
if(!get_fsusage(s->path, s->devinfo)) { |
if(!DeviceInfo_Usage(s->devinfo, s->path)) { |
165 |
fprintf(stdout, "Device '%s' is not accessible\n\t" |
fprintf(stdout, "Device '%s' is not accessible\n\t" |
166 |
"Space: - Inodes: -\n\tMonitoring status: %s\n", |
"Space: - Inodes: -\n\tMonitoring status: %s\n", |
167 |
s->name, statusnames[s->do_monitor]); |
s->name, statusnames[s->do_monitor]); |