Debian Codegraph @

agent/mibgroup/ucd-snmp/vmstat_aix4.h

raw
1 /*
2 * vmstat_aix4.h
3 * Header file for vmstat_aix4 module for UCD-SNMP
4 * Michael Kukat <[email protected]>
5 * see vmstat_aix4.c for revision history and additional comments
6 *
7 */
8
9 /*
10 * Prevent accidental double inclusions
11 */
12 #ifndef _MIBGROUP_VMSTAT_AIX4_H
13 #define _MIBGROUP_VMSTAT_AIX4_H
14
15 /*
16 * Directive to include utility module
17 */
18 config_require(util_funcs/header_generic);
19
20 /*
21 * we have to define the index ourselves, because perfstat structures
22 * use named fields in the structure for those.
23 */
24 #define CPU_USER 0
25 #define CPU_SYSTEM 1
26 #define CPU_IDLE 2
27 #define CPU_WAIT 3
28 #define CPU_STATES 4
29 /*
30 * Time interval to gather system data
31 * Lower value -> more accurate data, higher value -> less CPU usage
32 * Value is in seconds
33 */
34 #define POLL_INTERVAL 60
35 /*
36 * How many snapshots of system data to keep. Values returned are over
37 * time difference between first and last snapshot
38 * Using POLL_INTERVAL 60 and POLL_VALUES 5 we get the values
39 * over five minutes, which is a reasonable figure
40 */
41 #define POLL_VALUES 5
42 /*
43 * Declared in vmstat_aix4.c, from prototype
44 */
45 void init_vmstat_aix4(void);
46
47 #endif /* _MIBGROUP_VMSTAT_AIX4_H */