So. We’ve got data!
ALso snmpwalk from commandline works perfect.
And In My old CMK 1.2.2 it works as it should.
But in newest version When I add it, and hit Services it pops out this:
Starting job...
+ FETCHING DATA
[snmp] Execute data source
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB .
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB .
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
[snmp] ERROR: list index out of range
[piggyback] Execute data source
No piggyback files for 'UPS-socomec-rack'. Skip processing.
No piggyback files for 'HIDDEN_IP_ADDRESS'. Skip processing.
Completed.
So what should i look like? Maybe some additional smtp parameter to solve this issue?
What CMK version do you use?
On the command line do a “cmk --debug -vvI hostname” to discover the device services.
What you also see is the snmpwalk command used by CMK, is this working manually?
So. It looks like it connects correctly, but have problem parsing output from UPS.
Maybe it looks for some strange OID that is not served by UPS?
There is special Check for socomec ups in CMK, but when I’ve added it nothing happens, it’s not showing at all anywhere (I believe it’s because service discovery dont work? )
ooh.
And after this - snmpwalk - when I ask for OID that was served in initial connection it pops out:
Yes. I Use distributed setup - I Have 2 servers with cmk, I’m running cmk command on machine with access to my ups - but it’s a slave machine.
Config seems to be ok, I’ve just created completely clean cmk install and have the same issue.
Also - Different snmp machines works correctly (I have snmp switches and some other machines working as it should)
So. From master machine i’ve got also no output from this command.
and from proper machine, -D option pops this out:
cmk -D UPS-socomec-rack
UPS-socomec-rack
Addresses: 192.168.138.60
Tags: [address_family:ip-v4-only], [agent:special-agents], [criticality:prod], [e-mail:smtp], [ip-v4:ip-v4], [networking:lan], [piggyback:auto-piggyback], [site:biuro], [smtp:smtp], [snmp:snmp], [snmp_ds:snmp-v1], [tcp:tcp], [webserver:webserver], [www:webserver]
Labels:
Host groups: check_mk
Contact groups: admin, all, biuro, check-mk-notify
Agent mode: No Checkmk agent, all configured special agents
Type of agent:
SNMP (Community: 'public', Bulk walk: no, Port: 161, Inline: no)
Process piggyback data from /omd/sites/biuro/tmp/check_mk/piggyback/UPS-socomec-rack
Services:
checktype item params description groups
--------- ---- ------ ----------- ------
Can you provide some screenshots. It is not possible that you selected “No agent” but it shows at a “cmk -D hostname” the configuration “No Checkmk agent, all configured special agents”.
This is no bug as i checked on a p17 system with the result that it shows “No agent” if you selected “No agent” for the host.
on the clean p17 version on clean Ubuntu20.04 -D option pops out this:
cmk -D UPS-socomec-rack
UPS-socomec-rack
Addresses: 192.168.138.60
Tags: [address_family:ip-v4-only], [agent:no-agent], [criticality:prod], [e-mail:smtp], [ip-v4:ip-v4], [networking:lan], [piggyback:auto-piggyback], [site:biuro], [smtp:smtp], [snmp:snmp], [snmp_ds:snmp-v1], [webserver:webserver], [www:webserver]
Labels:
Host groups: check_mk
Contact groups: admin, all, biuro, check-mk-notify
Agent mode: No agent
Type of agent:
SNMP (Community: ‘public’, Bulk walk: no, Port: 161, Inline: no)
Process piggyback data from /omd/sites/biuro/tmp/check_mk/piggyback/UPS-socomec-rack
Services:
checktype item params description groups
So it’s ok now. Still it doesnt change a thing. Still no way to get Service discovery to work.
Pops out the same
Starting job…
FETCHING DATA
[snmp] Execute data source
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
[snmp] ERROR: list index out of range
[piggyback] Execute data source
No piggyback files for ‘UPS-socomec-rack’. Skip processing.
No piggyback files for ‘192.168.138.60’. Skip processing.
Completed.
Still no idea what is wrong but it’s something to start
Full Output here, since it’s too big for this forum settings.
Couple of times it pops out:
Getting OID .1.3.6.1.4.1.232.2.2.4.2.0: Running ‘snmpget -v1 -c public -m “” -M “” -On -OQ -Oe -Ot 192.168.138.60 .1.3.6.1.4.1.232.2.2.4.2.0’
ERROR: SNMP error
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
failed.
and it ends with
[snmp] ERROR: list index out of range
Traceback (most recent call last):
File “/omd/sites/biuro/bin/cmk”, line 94, in
exit_status = modes.call(mode_name, mode_args, opts, args)
File “/omd/sites/biuro/lib/python/cmk_base/modes/init.py”, line 72, in call
return mode.handler_function(*handler_args)
File “/omd/sites/biuro/lib/python/cmk_base/modes/check_mk.py”, line 1498, in mode_discover
discovery.do_discovery(hostnames, options.get(“checks”), options[“discover”] == 1)
File “/omd/sites/biuro/lib/python/cmk_base/discovery.py”, line 130, in do_discovery
multi_host_sections = _get_host_sections_for_discovery(sources, use_caches=use_caches)
File “/omd/sites/biuro/lib/python/cmk_base/discovery.py”, line 889, in _get_host_sections_for_discovery
return sources.get_host_sections(max_cachefile_age)
File “/omd/sites/biuro/lib/python/cmk_base/data_sources/init.py”, line 279, in get_host_sections
host_sections_from_source = source.run()
File “/omd/sites/biuro/lib/python/cmk_base/data_sources/abstract.py”, line 134, in run
raw_data, is_cached_data = self._get_raw_data()
File “/omd/sites/biuro/lib/python/cmk_base/data_sources/abstract.py”, line 183, in _get_raw_data
raw_data = self._execute()
File “/omd/sites/biuro/lib/python/cmk_base/data_sources/snmp.py”, line 233, in _execute
self._use_snmpwalk_cache)
File “/omd/sites/biuro/lib/python/cmk_base/snmp.py”, line 262, in get_snmp_table
info += _construct_snmp_table_of_rows(sanitized_columns)
File “/omd/sites/biuro/lib/python/cmk_base/snmp.py”, line 692, in _construct_snmp_table_of_rows
row = [c[index] for c in columns]
IndexError: list index out of range