I've got a problem with SNMP v3 and a HP Printer. (Color LaserJet MFP M476dn)
With SNMP v1/2c the checks are working.
When I push the following command on the command line of the monitoring linux server I get snmp results: snmpbulkwalk -v 3 -l authPriv -a md5 -A [Password] -x DES -X [Password] -u [username] -n Jetdirect [IP address]
It means, this command and the parameters are correct.
As far as I use check_mk I've got the following error in WATO in the "Services" of the host:
Service discovery failed for this host: Cannot fetch system description OID .1.3.6.1.2.1.1.1.0. This might be OK for some bogus devices. In that case please configure the ruleset "Hosts without system description OID" to tell Check_MK not to fetch the system description and system object OIDs.
Retry discovery while ignoring this error (Result might be incomplete).
In check_mk I configured the following rulesets:
- "SNMP credentials of monitored hosts" (Credentials for SNMPv3 with authentication and privacy (authPriv)
- "SNMPv3 contexts to use in requests"
How can I debug this issue?
For example: Where can I find the command which check_mk uses to get the SNMP data?
I couldn't found any helpful log entries in the folder "var/log" in my site configuration.
Thank you very much for any help.
Cheers
Michael
···
--
ft systems gmbh - IT Lösungen für KMU
Michael Nydegger
Thank you very much for this hint.
With your command (cmk --debug -vvvvvI hostname) I cloud successfully find the source of the problem: the "-n" parameter is not added into the snmpget command
The command line parameter is as followed: "Getting OID .1.3.6.1.2.1.1.1.0: Running 'snmpget -v3 -l 'authPriv' -a 'md5' -u '[hostname]' -A '[password]' -x 'DES' -X '[password]' -m '' -M '' -On -OQ -Oe -Ot [ip address] .1.3.6.1.2.1.1.1.0'"
When I manually add the "-n" parameter and execute the command, I've got an answer from the printer: snmpget -v3 -l 'authPriv' -a 'md5' -u '[hostname]' -A '[password]' -x 'DES' -X '[password]' -m '' -M '' -On -OQ -Oe -Ot [ip address] .1.3.6.1.2.1.1.1.0 -n Jetdirect
I've set the parameter "SNMPv3 contexts to use in requests" also before I write this question. The parameter "SNMPv3 contexts to use in requests" is also listes in the parameters of the host. As far as I know the WATO configuration is correct.
Why does "SNMPv3 contexts to use in requests" not set the "-n Jetdirect" parameter?
Does anyone else also has this effect?
Is this a bug?
Thanks for your help.
Greetings Michael
···
--
ft systems gmbh - IT Lösungen für KMU
Michael Nydegger
Bürglistrasse 61
CH-8400 Winterthur
Am 07.11.2016 um 13:08 schrieb Andreas Döhler:
Hi Michael,
this depends on the used Check_MK version - if you use the Enterprise version with inline SNMP then i don't know how you can view the used commands.
If you switch to classic SNMP or use the RAW edition you see the used SNMP commands if you try to do a "cmk --debug -vvvvvI hostname"
Thank you very much for your research in this case.
I've reported this as a bug referring to this thread.
Until the bug is fixed I will use snmp v2.
Best regards
Michael
···
--
ft systems gmbh - IT Lösungen für KMU
Michael Nydegger
Bürglistrasse 61
CH-8400 Winterthur
Am 08.11.2016 um 09:16 schrieb Andreas Döhler:
Hi Michael,
i think the problem is that the scan function is not using the context. The context is only used by the normal check function.
I took a look at the source and only found the context used by "snmpwalk" and "snmpwalk on suboid".
You should report this as a bug i think if the context is already needed by the scan function.