diff options
Diffstat (limited to 'agent/mibgroup/ucd-snmp/lmsensorsMib.h')
-rw-r--r-- | agent/mibgroup/ucd-snmp/lmsensorsMib.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/agent/mibgroup/ucd-snmp/lmsensorsMib.h b/agent/mibgroup/ucd-snmp/lmsensorsMib.h new file mode 100644 index 0000000..9d85dd1 --- /dev/null +++ b/agent/mibgroup/ucd-snmp/lmsensorsMib.h @@ -0,0 +1,23 @@ +#ifndef LM_SENSORS_MIB_H +#define LM_SENSORS_MIB_H + +config_require(hardware/sensors) +config_add_mib(LM-SENSORS-MIB) + +/* function declarations */ +void init_lmsensorsMib(void); + +/* + * Handler and Column definitions for lmXxxxSensorsTable + * + * Note that the same handler (and hence the same + * column identifiers) are used for all four tables. + * This is possible because all the table share the + * same structure and behaviour. + */ +Netsnmp_Node_Handler lmSensorsTables_handler; +#define COLUMN_LMSENSORS_INDEX 1 +#define COLUMN_LMSENSORS_DEVICE 2 +#define COLUMN_LMSENSORS_VALUE 3 + +#endif /* LM_SENSORS_MIB_H */ |