Debian Codegraph @

agent/mibgroup/ucd-snmp/vmstat_dynix.h

raw
1 /*
2 * vmstat_dynix.h
3 * Header file for vmstat_dynix module for UCD-SNMP
4 * Patrick Hess <[email protected]>
5 *
6 */
7
8 /*
9 * Prevent accidental double inclusions
10 */
11 #ifndef _MIBGROUP_VMSTAT_DYNIX_H
12 #define _MIBGROUP_VMSTAT_DYNIX_H
13
14 /*
15 * Directive to include utility module
16 */
17 config_require(util_funcs/header_generic);
18
19 /*
20 * MIB wants V_CPU_SYSTEM which is sysinfo V_CPU_KERNEL + V_CPU_WAIT
21 */
22 #define V_CPU_SYSTEM 4
23 /*
24 * Time interval to gather system data
25 */
26 /*
27 * Lower value -> more accurate data, higher value -> less CPU usage
28 */
29 /*
30 * Value is in seconds
31 */
32 #define POLL_INTERVAL 60
33 /*
34 * How many snapshots of system data to keep. Values returned are over
35 */
36 /*
37 * time difference between first and last snapshot
38 */
39 /*
40 * Using POLL_INTERVAL 60 and POLL_VALUES 5 we get the values
41 */
42 /*
43 * over five minutes, which is a reasonable figure
44 */
45 #define POLL_VALUES 5
46 /*
47 * Declared in vmstat_dynix.c, from prototype
48 */
49 void init_vmstat_dynix(void);
50
51 #endif /* _MIBGROUP_VMSTAT_DYNIX_H */