36 |
#endif |
#endif |
37 |
|
|
38 |
#include "monitor.h" |
#include "monitor.h" |
|
#include "event.h" |
|
39 |
#include "alert.h" |
#include "alert.h" |
40 |
|
#include "event.h" |
41 |
#include "net.h" |
#include "net.h" |
42 |
|
#include "monit_device.h" |
43 |
#include "monit_process.h" |
#include "monit_process.h" |
44 |
|
|
45 |
|
|
401 |
/* Test devices */ |
/* Test devices */ |
402 |
if(s->devicelist) { |
if(s->devicelist) { |
403 |
|
|
404 |
if(!get_fsusage(s->path, s->devinfo)) { |
if(!DeviceInfo_Usage(s->devinfo, s->path)) { |
405 |
|
|
406 |
Event_post(s, EVENT_RESTART, "Reason: unable to read device state\n"); |
Event_post(s, EVENT_RESTART, "Reason: unable to read device state\n"); |
407 |
return FALSE; |
return FALSE; |