X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=userapps%2Fopensource%2Fnet-snmp%2Fagent%2Fmibgroup%2Fucd-snmp%2Fvmstat_hpux.h;fp=userapps%2Fopensource%2Fnet-snmp%2Fagent%2Fmibgroup%2Fucd-snmp%2Fvmstat_hpux.h;h=e10095e2c6eaf633e88adfbcdc89470d21375212;hb=9dffd9f7659a1b28265e0dc9497343eb3d108d02;hp=0000000000000000000000000000000000000000;hpb=e48c2529a5a7e7dbf1797bb6d1bf964bc03e78a7;p=bcm963xx.git diff --git a/userapps/opensource/net-snmp/agent/mibgroup/ucd-snmp/vmstat_hpux.h b/userapps/opensource/net-snmp/agent/mibgroup/ucd-snmp/vmstat_hpux.h new file mode 100644 index 00000000..e10095e2 --- /dev/null +++ b/userapps/opensource/net-snmp/agent/mibgroup/ucd-snmp/vmstat_hpux.h @@ -0,0 +1,55 @@ +/* + * vmstat_hpux.h + * Header file for vmstat_hpux module for UCD-SNMP + * Gary Edwards + * + */ + +/* + * Prevent accidental double inclusions + */ +#ifndef _MIBGROUP_VMSTAT_HPUX_H +#define _MIBGROUP_VMSTAT_HPUX_H + +/* + * Directive to include utility module + */ +config_require(util_funcs) + + /* + * Make 64-bit pstat calls + */ +#define _PSTAT64 + /* + * MIB wants CPU_SYSTEM which is CP_SYS + CP_WAIT (see sys/dk.h) + */ +#define CPU_SYSTEM 9 + /* + * 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_hpux.c, from prototype + */ + void init_vmstat_hpux(void); + +#endif /* _MIBGROUP_VMSTAT_HPUX_H */