Documentation
¶
Index ¶
- Constants
- func GetIDsFromHumidityTable(params *gosnmp.GoSNMP, deviceType int) (sensors []string, err error)
- func GetIDsFromTemperatureTable(params *gosnmp.GoSNMP, deviceType int) (sensors []string, err error)
- func GetSensorTypeInt(typeString string, deviceType int) (uint32, error)
- func GetSensorsIDsFromTable(params *gosnmp.GoSNMP, tableOID string) (sensors []string, err error)
- func QuerySensorList(params *gosnmp.GoSNMP, deviceType int) (sensors []string, err error)
- func ValueIEEE754ToFloat64(pdu gosnmp.SnmpPDU) (float64, error)
- func ValueToString(pdu gosnmp.SnmpPDU) string
- func ValueToUint64(pdu gosnmp.SnmpPDU) (uint64, error)
- type MayThreshold
- type SensorDetails
- type SensorType
Constants ¶
View Source
const ( NoStatus snsrStts = 1 Normal snsrStts = 2 HighWarning snsrStts = 3 HighCritical snsrStts = 4 LowWarning snsrStts = 5 LowCritical snsrStts = 6 SensorError snsrStts = 7 )
View Source
const ( SensorProbeType = 1 SecurityProbeType = 2 SensorProbePlusType = 3 )
Variables ¶
This section is empty.
Functions ¶
func GetIDsFromHumidityTable ¶
func GetIDsFromTemperatureTable ¶
func GetIDsFromTemperatureTable(params *gosnmp.GoSNMP, deviceType int) (sensors []string, err error)
Fetches the IDs of all temperature sensors in the temperature table
func GetSensorsIDsFromTable ¶
func QuerySensorList ¶
Fetches the IDs of all sensors This ID consists of four positive integers, separated by dots (aka usable as an OID)
func ValueToString ¶
Types ¶
type MayThreshold ¶
type MayThreshold struct { Present bool Val check.Threshold }
type SensorDetails ¶
type SensorDetails struct { SensorType uint64 Name string Value float64 Unit string Status snsrStts Acknowledged bool Warning MayThreshold Critical MayThreshold Description string }
func QueryHumidityTable ¶
func QueryHumidityTable(snmp *gosnmp.GoSNMP, deviceType int) ([]SensorDetails, error)
nolint: gocognit
func QuerySensorDetails ¶
func QueryTemperatureTable ¶
func QueryTemperatureTable(snmp *gosnmp.GoSNMP, deviceType int) ([]SensorDetails, error)
nolint: gocognit
type SensorType ¶
type SensorType uint64
Click to show internal directories.
Click to hide internal directories.