solarisfire
(Stephen Greenham)
October 7, 2021, 3:37pm
1
We’ve got some brand new HSMs in the office, attached along side some old ones.
Older ones will successfully snmp scan and find the OIDs for safenet_ntls, and safenet_hsm.
However the newer ones, this does not work.
The check has:
“snmp_scan_function”: lambda oid: oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.12383")
On an older HSM this is fine…
#snmpbulkwalk -v3 -l ‘’ -a ‘sha’ -u ' ’ -A ‘’ -x ‘AES’ -X ' ’ -m ‘’ -M ‘’ -Cc -OQ -OU -On -Ot . .. .1.3.6.1.2.1.1.2.0
.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.12383.3.1.1
However on a newer HSM this does not work…
#snmpbulkwalk -v3 -l ‘’ -a ‘sha’ -u ' ’ -A ‘’ -x ‘AES’ -X ' ’ -m ‘’ -M ‘’ -Cc -OQ -OU -On -Ot . .. .1.3.6.1.2.1.1.2.0
.1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.8072.3.2.10
I can obviously change the snmp_scan_function to get this to work. But is there any way to cover both scenarios easily?
solarisfire
(Stephen Greenham)
October 7, 2021, 3:50pm
2
Ah, sorted this with:
"snmp_scan_function": lambda oid: oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.12383") or \
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.8072"),
r.sander
(Robert Sander)
October 8, 2021, 7:45am
3
Please send this to feedback@checkmk.com so that they can add the new OID to the scan function.
solarisfire
(Stephen Greenham)
October 8, 2021, 9:03am
4
I did a pull request for this last night
tribe29:master
← solarisfire:master
opened 03:56PM - 07 Oct 21 UTC
Super simple snmp_scan_function changes.
Further info @ https://forum.checkmk… .com/t/safenet-hsm-check-broken-on-new-thales-hsms/27414
1 Like
system
(system)
Closed
October 8, 2022, 9:03am
5
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.