Cmk -II on master or distributed

Hi Forum,

I have this very slooooow snmp device which I cannot scan due to time outs on the webinterface
So cli to the rescue, but when I do a “cmk -II host” I get

Hostname or tag specification 'host' does not match any host.

but when I perform a -D dump check I get the proper details

running the reinventory has the same behaviour on master as on slaves … I’m puzzled here

Hi Philippe,

the cmk -D <hostname> has to be executed in the site on the satellite where the host is assigned via the folder structure.
Have you really checked the output on the master ?
It might be, that the output is just a dummy output, because cmk -D nonexistent also outputs things that look valid at first glance:

nonexistent
Addresses:              0.0.0.0
Tags:                   [address_family:ip-v4-only], [agent:cmk-agent], [criticality:prod], [networking:lan], [piggyback:auto-piggyback], [site:monitoring], [snmp_ds:no-snmp]
Labels:                 [cmk/site:monitoring]
Host groups:            check_mk
Contact groups:
Agent mode:             No agent
Type of agent:
  Process piggyback data from /omd/sites/monitoring/tmp/check_mk/piggyback/nonexistent
  PING only
Services:
  checktype item params description groups

Andre,

I tested -II on both sides (central and satellite)

I only mentioned the -D option to show the host is present in our config

Hi,

If you want to analyze the root cause of the SNMP problem I recommend this Blog article:

And remember that the hostname has to be 100% correct and is case sensitive.

The BlogPost you mention is about SNMP monitoring and tuning, not about inventory scans via cli (it only short mentions the syntax)
(trust me I’ve read this blog many times :slight_smile: )

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.