mon_constants.h
Go to the documentation of this file.00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef mon_constants_h
00040 #define mon_constants_h
00041
00042
00043
00044 #define SYS_LOAD1 0
00045 #define SYS_LOAD5 1
00046 #define SYS_LOAD15 2
00047 #define SYS_CPU_USR 3
00048 #define SYS_CPU_SYS 4
00049 #define SYS_CPU_IDLE 5
00050 #define SYS_CPU_NICE 6
00051 #define SYS_CPU_USAGE 7
00052 #define SYS_MEM_FREE 8
00053 #define SYS_MEM_USED 9
00054 #define SYS_MEM_USAGE 10
00055 #define SYS_PAGES_IN 11
00056 #define SYS_PAGES_OUT 12
00057 #define SYS_NET_IN 13
00058 #define SYS_NET_OUT 14
00059 #define SYS_NET_ERRS 15
00060 #define SYS_SWAP_FREE 16
00061 #define SYS_SWAP_USED 17
00062 #define SYS_SWAP_USAGE 18
00063 #define SYS_SWAP_IN 19
00064 #define SYS_SWAP_OUT 20
00065 #define SYS_PROCESSES 21
00066 #define SYS_UPTIME 22
00067 #define SYS_NET_SOCKETS 23
00068 #define SYS_NET_TCP_DETAILS 24
00069
00070
00071 #define GEN_HOSTNAME 0
00072 #define GEN_IP 1
00073 #define GEN_CPU_MHZ 2
00074 #define GEN_NO_CPUS 3
00075 #define GEN_TOTAL_MEM 4
00076 #define GEN_TOTAL_SWAP 5
00077 #define GEN_CPU_VENDOR_ID 6
00078 #define GEN_CPU_FAMILY 7
00079 #define GEN_CPU_MODEL 8
00080 #define GEN_CPU_MODEL_NAME 9
00081 #define GEN_BOGOMIPS 10
00082
00083
00084 #define JOB_RUN_TIME 0
00085 #define JOB_CPU_TIME 1
00086 #define JOB_CPU_USAGE 2
00087 #define JOB_MEM_USAGE 3
00088 #define JOB_WORKDIR_SIZE 4
00089 #define JOB_DISK_TOTAL 5
00090 #define JOB_DISK_USED 6
00091 #define JOB_DISK_FREE 7
00092 #define JOB_DISK_USAGE 8
00093 #define JOB_VIRTUALMEM 9
00094 #define JOB_RSS 10
00095 #define JOB_OPEN_FILES 11
00096
00097
00098
00099 #define SOCK_TCP 0
00100 #define SOCK_UDP 1
00101 #define SOCK_ICM 2
00102 #define SOCK_UNIX 3
00103
00104
00105 #define STATE_ESTABLISHED 0
00106 #define STATE_SYN_SENT 1
00107 #define STATE_SYN_RECV 2
00108 #define STATE_FIN_WAIT1 3
00109 #define STATE_FIN_WAIT2 4
00110 #define STATE_TIME_WAIT 5
00111 #define STATE_CLOSED 6
00112 #define STATE_CLOSE_WAIT 7
00113 #define STATE_LAST_ACK 8
00114 #define STATE_LISTEN 9
00115 #define STATE_CLOSING 10
00116 #define STATE_UNKNOWN 11
00117
00118 #define N_TCP_STATES 12
00119
00123 int initSysParams(char *sysMonitorParams[]);
00124
00129 int initGenParams(char *genMonitorParams[]);
00130
00134 int initJobParams(char *jobMonitorParams[]);
00135
00140 void initSocketStatesMapTCP(char *socketStatesMapTCP[]);
00141
00142 #endif