1
#ifndef _MIBGROUP_DISKIO_H
2
#define _MIBGROUP_DISKIO_H
4
config_require(util_funcs)
5
config_add_mib(UCD-DISKIO-MIB)
8
* Define all our functions using prototyping for ANSI compilers
11
* These functions are then defined in the example.c file
13
void init_diskio(void);
14
FindVarMethod var_diskio;
18
* Magic number definitions. These numbers are the last oid index
19
* numbers to the table that you are going to define. For example,
20
* lets say (since we are) creating a mib table at the location
21
* .1.3.6.1.4.1.2021.254. The following magic numbers would be the
22
* next numbers on that oid for the var_example function to use, ie:
23
* .1.3.6.1.4.1.2021.254.1 (and .2 and .3 ...)
26
#define DISKIO_INDEX 1
27
#define DISKIO_DEVICE 2
28
#define DISKIO_NREAD 3
29
#define DISKIO_NWRITTEN 4
30
#define DISKIO_READS 5
31
#define DISKIO_WRITES 6
33
#endif /* _MIBGROUP_DISKIO_H */