Debian Codegraph @

agent/mibgroup/ucd-snmp/vmstat_hpux.h

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