| 1 |
#ifndef _MIBGROUP_DISKIO_H |
| 2 |
#define _MIBGROUP_DISKIO_H |
| 3 |
|
| 4 |
config_require(util_funcs/header_simple_table); |
| 5 |
config_add_mib(UCD-DISKIO-MIB); |
| 6 |
|
| 7 |
/* |
| 8 |
* Define all our functions using prototyping for ANSI compilers |
| 9 |
*/ |
| 10 |
/* |
| 11 |
* These functions are then defined in the example.c file |
| 12 |
*/ |
| 13 |
void init_diskio(void); |
| 14 |
FindVarMethod var_diskio; |
| 15 |
|
| 16 |
|
| 17 |
/* |
| 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 ...) |
| 24 |
*/ |
| 25 |
|
| 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 |
| 32 |
#define DISKIO_LA1 9 |
| 33 |
#define DISKIO_LA5 10 |
| 34 |
#define DISKIO_LA15 11 |
| 35 |
#define DISKIO_NREADX 12 |
| 36 |
#define DISKIO_NWRITTENX 13 |
| 37 |
#define DISKIO_BUSYTIME 14 |
| 38 |
|
| 39 |
#endif /* _MIBGROUP_DISKIO_H */ |