Go to the source code of this file.
Functions | |
| int | init_process_info (void) |
| Initilize the proc information code. More... | |
| 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 | compare_resource (int value, Resource_T q) |
| Compare a value within a resource list member. More... | |
| int | update_loadavg (void) |
| Updates the loadavg list. More... | |
Variables | |
| int | include_children = TRUE |
| char | actionnames [][STRLEN] = {"ignore", "alert", "restart", "stop"} |
| char | operatornames [][STRLEN] |
| char | operatorshortnames [][3] = {">", "<", "=", "!="} |
Definition in file monit_process.c.
|
||||||||||||
|
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 78 of file monit_process.c. |
|
|
Definition at line 77 of file monit_process.c. |
|
|
Initial value: {"greater than", "less than",
"equal to", "not equal to"}Definition at line 79 of file monit_process.c. |
|
|
Definition at line 81 of file monit_process.c. |