/[monit]/monit/monit_process.h
ViewVC logotype

Diff of /monit/monit_process.h

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

revision 1.3 by martinp, Sun Nov 3 21:50:30 2002 UTC revision 1.4 by martinp, Fri Nov 29 13:38:51 2002 UTC
# Line 26  Line 26 
26  #include <unistd.h>  #include <unistd.h>
27  #endif  #endif
28    
 #include "monitor.h"  
   
29  #define PROCESS_ZOMBIE        1  #define PROCESS_ZOMBIE        1
30    
31  extern int include_children;  extern int include_children;
32  extern char actionnames[][STRLEN];  extern char actionnames[][STRLEN];
33    extern char modenames[][STRLEN];
34  extern char operatornames[][STRLEN];  extern char operatornames[][STRLEN];
35  extern char operatorshortnames[][3];  extern char operatorshortnames[][3];
 extern char modenames[][STRLEN];  
36  extern int num_cpus;  extern int num_cpus;
37    
38  #define RESOURCE_ID_CPU_PERCENT 1  #define RESOURCE_ID_CPU_PERCENT 1
# Line 44  extern int num_cpus; Line 42  extern int num_cpus;
42  #define RESOURCE_ID_LOAD5   5  #define RESOURCE_ID_LOAD5   5
43  #define RESOURCE_ID_LOAD15  6  #define RESOURCE_ID_LOAD15  6
44    
 #define RESOURCE_ACTION_ALERT   1  
 #define RESOURCE_ACTION_RESTART 2  
 #define RESOURCE_ACTION_STOP    3  
   
 #define RESOURCE_OPERATOR_GREATER  0  
 #define RESOURCE_OPERATOR_LESS     1  
 #define RESOURCE_OPERATOR_EQUAL    2  
 #define RESOURCE_OPERATOR_NOTEQUAL 3  
   
45  int update_process_data(Process_T p, pid_t pid);  int update_process_data(Process_T p, pid_t pid);
46  int init_process_info(void);  int init_process_info(void);
 int compare_resource(int, Resource_T);  
47  int update_loadavg(void);  int update_loadavg(void);
48    
49  #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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