Go to the source code of this file.
Defines | |
#define | PROCESS_ZOMBIE 1 |
#define | RESOURCE_ID_CPU_PERCENT 1 |
#define | RESOURCE_ID_MEM_PERCENT 2 |
#define | RESOURCE_ID_MEM_KBYTE 3 |
#define | RESOURCE_ID_LOAD1 4 |
#define | RESOURCE_ID_LOAD5 5 |
#define | RESOURCE_ID_LOAD15 6 |
#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 |
Functions | |
int | update_process_data (Process_T p, pid_t pid) |
Get the proc infomation (CPU percentage, MEM in MByte and percent, status), enduser version. More... | |
int | init_process_info (void) |
Initilize the proc information code. More... | |
int | compare_resource (int, Resource_T) |
Compare a value within a resource list member. More... | |
int | update_loadavg (void) |
Updates the loadavg list. More... | |
Variables | |
int | include_children |
char | actionnames [][STRLEN] |
char | operatornames [][STRLEN] |
char | operatorshortnames [][3] |
|
Definition at line 31 of file monit_process.h. |
|
Definition at line 45 of file monit_process.h. |
|
Definition at line 46 of file monit_process.h. |
|
Definition at line 47 of file monit_process.h. |
|
Definition at line 38 of file monit_process.h. Referenced by printprocess(). |
|
Definition at line 41 of file monit_process.h. Referenced by printprocess(). |
|
Definition at line 43 of file monit_process.h. Referenced by printprocess(). |
|
Definition at line 42 of file monit_process.h. Referenced by printprocess(). |
|
Definition at line 40 of file monit_process.h. Referenced by printprocess(). |
|
Definition at line 39 of file monit_process.h. Referenced by printprocess(). |
|
Definition at line 51 of file monit_process.h. Referenced by compare_resource(). |
|
Definition at line 49 of file monit_process.h. Referenced by compare_resource(). |
|
Definition at line 50 of file monit_process.h. Referenced by compare_resource(). |
|
Definition at line 52 of file monit_process.h. Referenced by compare_resource(). |
|
Compare a value within a resource list member.
Definition at line 124 of file monit_process.c. References myresource::limit, log(), myresource::operator, RESOURCE_OPERATOR_EQUAL, RESOURCE_OPERATOR_GREATER, RESOURCE_OPERATOR_LESS, and RESOURCE_OPERATOR_NOTEQUAL. |
|
Initilize the proc information code.
Definition at line 88 of file monit_process.c. References init_process_info_sysdep(). |
|
Updates the loadavg list.
Definition at line 189 of file monit_process.c. References myrun::loadavg, and Run. Referenced by validate(). |
|
Get the proc infomation (CPU percentage, MEM in MByte and percent, status), enduser version.
Definition at line 102 of file monit_process.c. References get_process_info(), myprocinfo::pid, and myprocess::procinfo. |
|
Definition at line 34 of file monit_process.h. |
|
Definition at line 33 of file monit_process.h. |
|
Definition at line 35 of file monit_process.h. |
|
Definition at line 36 of file monit_process.h. |