Skip to content

Verify STE2 devices work properly #23

Description

@martialblog

Hi, thank you for the updated script.
I just tried implementing it at the customers monitoring system, but was not successful in monitoring the device/sensor.

Output (with and without snmp version specified)

/usr/lib/nagios/plugins# ./check_hwgroup --community 'yes' --host '10.172.130.146' --sensor '42606' --critical '28' --warning '24'
[UNKNOWN] - could not query device name: could not fetch .1.3.6.1.2.1.1.1.0: request timeout (after 2 retries) (*fmt.wrapError)

/usr/lib/nagios/plugins# ./check_hwgroup --community 'yes' --host '10.172.130.146' --sensor '42606' --critical '28' --warning '24' --snmp-version 1
[UNKNOWN] - sensor checks are not supported for STE2 (*errors.errorString)

/usr/lib/nagios/plugins# ./check_hwgroup --community 'yes' --host '10.172.130.146' --sensor '42606' --critical '28' --warning '24' --snmp-version 2c
[UNKNOWN] - sensor checks are not supported for STE2 (*errors.errorString)

/usr/lib/nagios/plugins# ./check_hwgroup --community 'yes' --host '10.172.130.146' --sensor '42606' --critical '28' --warning '24' --snmp-version=2c
[UNKNOWN] - sensor checks are not supported for STE2 (*errors.errorString)

SNMPwalk of the device:

iso.3.6.1.2.1.1.1.0 = STRING: "STE2"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.21796.4.9
iso.3.6.1.2.1.1.3.0 = Timeticks: (3496109200) 404 days, 15:24:52.00
iso.3.6.1.2.1.1.4.0 = STRING: "STE2: For more information try http://www.HW-group.com"
iso.3.6.1.2.1.1.5.0 = STRING: "STE2"
iso.3.6.1.2.1.1.6.0 = ""
iso.3.6.1.2.1.1.7.0 = INTEGER: 72
iso.3.6.1.4.1.21796.4.9.1.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.21796.4.9.1.1.1.2 = INTEGER: 2
iso.3.6.1.4.1.21796.4.9.1.1.2.1 = INTEGER: 0
iso.3.6.1.4.1.21796.4.9.1.1.2.2 = INTEGER: 0
iso.3.6.1.4.1.21796.4.9.1.1.3.1 = STRING: "Input 1"
iso.3.6.1.4.1.21796.4.9.1.1.3.2 = STRING: "Input 2"
iso.3.6.1.4.1.21796.4.9.1.1.4.1 = INTEGER: 0
iso.3.6.1.4.1.21796.4.9.1.1.4.2 = INTEGER: 0
iso.3.6.1.4.1.21796.4.9.3.1.1.1 = INTEGER: 1
iso.3.6.1.4.1.21796.4.9.3.1.2.1 = STRING: "Sensor 42606"
iso.3.6.1.4.1.21796.4.9.3.1.3.1 = INTEGER: 1
iso.3.6.1.4.1.21796.4.9.3.1.4.1 = STRING: "20.5"
iso.3.6.1.4.1.21796.4.9.3.1.5.1 = INTEGER: 205
iso.3.6.1.4.1.21796.4.9.3.1.6.1 = STRING: "286EA6A8080000F1"
iso.3.6.1.4.1.21796.4.9.3.1.7.1 = INTEGER: 1
iso.3.6.1.4.1.21796.4.9.3.1.8.1 = INTEGER: 42606
iso.3.6.1.4.1.21796.4.9.70.1.0 = STRING: "MA:CA:DD:RE:SS:"

Might be that the customers devices is outdated.
If you need further info, don't hesitate to ask :)

Originally posted by @log1-c in #21 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions