Debian Codegraph @

agent/mibgroup/ucd-snmp/vmstat_solaris2.h

raw
1 /*
2 * vmstat_solaris2.h
3 * Header file for vmstat_solaris2 module for UCD-SNMP
4 * Jochen Kmietsch <[email protected]>
5 * see vmstat_solaris2.c for revision history and additional comments
6 *
7 */
8
9 /*
10 * Prevent accidental double inclusions
11 */
12 #ifndef _MIBGROUP_VMSTAT_SOLARIS2_H
13 #define _MIBGROUP_VMSTAT_SOLARIS2_H
14
15 /*
16 * The following statements are used by the configure script
17 */
18 /*
19 * Dependency requirements
20 */
21 #ifdef solaris2
22 config_require(kernel_sunos5);
23 #endif
24
25 /*
26 * Directive to include utility module
27 */
28 config_require(util_funcs/header_generic);
29
30 /*
31 * MIB wants CPU_SYSTEM which is sysinfo CPU_KERNEL + CPU_WAIT
32 */
33 #define CPU_SYSTEM 4
34 /*
35 * Time interval to gather system data
36 */
37 /*
38 * Lower value -> more accurate data, higher value -> less CPU usage
39 */
40 /*
41 * Value is in seconds
42 */
43 #define POLL_INTERVAL 60
44 /*
45 * How many snapshots of system data to keep. Values returned are over
46 */
47 /*
48 * time difference between first and last snapshot
49 */
50 /*
51 * Using POLL_INTERVAL 60 and POLL_VALUES 5 we get the values
52 */
53 /*
54 * over five minutes, which is a reasonable figure
55 */
56 #define POLL_VALUES 5
57 /*
58 * Declared in vmstat_solaris2.c, from prototype
59 */
60 void init_vmstat_solaris2(void);
61
62 #endif /* _MIBGROUP_VMSTAT_SOLARIS2_H */