summaryrefslogtreecommitdiff
path: root/agent/mibgroup/ucd-snmp/vmstat_solaris2.h
blob: 82822888c3c4959389da1cc5ffa027288b34af95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 *  vmstat_solaris2.h
 *  Header file for vmstat_solaris2 module for UCD-SNMP
 *  Jochen Kmietsch <kmietsch@jochen.de>
 *  see vmstat_solaris2.c for revision history and additional comments
 *
 */

/*
 * Prevent accidental double inclusions 
 */
#ifndef _MIBGROUP_VMSTAT_SOLARIS2_H
#define _MIBGROUP_VMSTAT_SOLARIS2_H

/*
 * The following statements are used by the configure script 
 */
/*
 * Dependency requirements 
 */
config_arch_require(solaris2, kernel_sunos5)

    /*
     * Directive to include utility module 
     */
config_require(util_funcs)

    /*
     * MIB wants CPU_SYSTEM which is sysinfo CPU_KERNEL + CPU_WAIT 
     */
#define CPU_SYSTEM 4
    /*
     * Time interval to gather system data 
     */
    /*
     * Lower value -> more accurate data, higher value -> less CPU usage 
     */
    /*
     * Value is in seconds 
     */
#define POLL_INTERVAL 60
    /*
     * How many snapshots of system data to keep.  Values returned are over 
     */
    /*
     * time difference between first and last snapshot 
     */
    /*
     * Using POLL_INTERVAL 60 and POLL_VALUES 5 we get the values 
     */
    /*
     * over five minutes, which is a reasonable figure 
     */
#define POLL_VALUES    5
    /*
     * Declared in vmstat_solaris2.c, from prototype 
     */
     void            init_vmstat_solaris2(void);

#endif                          /* _MIBGROUP_VMSTAT_SOLARIS2_H */