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

Diff of /monit/validate.c

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

revision 1.47 by chopp, Thu Jul 3 11:43:32 2003 UTC revision 1.48 by martinp, Sun Jul 6 18:29:38 2003 UTC
# Line 36  Line 36 
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    
# Line 400  static int check_device(Service_T s) { Line 401  static int check_device(Service_T s) {
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;

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