[Check_mk (english)] SNMP v3 with HP printer

Hi everybody

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

Bürglistrasse 61
CH-8400 Winterthur

http://www.ftsystems.ch

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”

best regards

Andreas

···

Michael Nydegger m.nydegger@ftsystems.ch schrieb am Fr., 4. Nov. 2016 um 09:00 Uhr:

Hi everybody

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

Bürglistrasse 61

CH-8400 Winterthur

http://www.ftsystems.ch


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Andreas

Thank you very much for this hint. :slight_smile:
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"

best regards
Andreas

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.

Best regards

Andreas

···

Michael Nydegger m.nydegger@ftsystems.ch schrieb am Mo., 7. Nov. 2016 um 19:10 Uhr:

Hi Andreas

Thank you very much for this hint. :slight_smile:

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

http://www.ftsystems.ch

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”

best regards

Andreas

Hi Andreas

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.

Best regards
Andreas