SNMP problem - noSuchName in Services while trying to get data from UPS

Hi.

I want to add normal host without agent with snmp.
It works for other devices so my cmk seems to be ok.

What I have:
UPS With some IP, snmp v1 with community set to some password.

In cmk I have: new host, no agent, snmp v1 with this password.

When I hit Diagnostics, on the snmp part I’ve got proper data:

sysDescr: UPS SNMP Agent
sysContact:
sysName: UPS_SOC_RACK
sysLocation: somelocation

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?

Hi.

I use 1.6.0p17 version of CMK

debug don’t pop out anything.

omd su biuro
OMD[biuro]:~$ cmk --debug -vvl ups-socomec-rack
OMD[biuro]:~$

No output at all

snmpwalk works correctly:
snmpwalk -v1 -c public 192.168.138.60
iso.3.6.1.2.1.1.1.0 = STRING: “UPS SNMP Agent”
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.2254.2.4
iso.3.6.1.2.1.1.3.0 = Timeticks: (1518733772) 175 days, 18:42:17.72
iso.3.6.1.2.1.1.4.0 = “”
iso.3.6.1.2.1.1.5.0 = STRING: “UPS_SOC_RACK”
iso.3.6.1.2.1.1.6.0 = STRING: “duchn01”
iso.3.6.1.2.1.1.7.0 = INTEGER: 0
iso.3.6.1.2.1.2.1.0 = INTEGER: 0
End of MIB

This i how it looks like.
My Config:

When I Hit Diagnostics/Test i got this:

And When I Go to Services I got:

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:

snmpwalk -v1 -c public 192.168.138.60 iso.3.6.1.4.1.2254.2.4
iso.3.6.1.4.1.2254.2.4.1.1.0 = STRING: "Socomec"
iso.3.6.1.4.1.2254.2.4.1.2.0 = STRING: "NETYS UPS"
iso.3.6.1.4.1.2254.2.4.1.3.0 = STRING: "1.05"
iso.3.6.1.4.1.2254.2.4.1.4.0 = STRING: "2.0r "
iso.3.6.1.4.1.2254.2.4.1.5.0 = ""
iso.3.6.1.4.1.2254.2.4.1.6.0 = ""
iso.3.6.1.4.1.2254.2.4.1.7.0 = INTEGER: 5000
iso.3.6.1.4.1.2254.2.4.1.8.0 = INTEGER: 230
iso.3.6.1.4.1.2254.2.4.1.9.0 = INTEGER: 50
iso.3.6.1.4.1.2254.2.4.1.10.0 = INTEGER: 230
iso.3.6.1.4.1.2254.2.4.1.11.0 = INTEGER: 50
iso.3.6.1.4.1.2254.2.4.1.12.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.1.13.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.1.14.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.1.15.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.1.16.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.1.17.0 = NULL
iso.3.6.1.4.1.2254.2.4.1.18.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.1.19.0 = INTEGER: 1
iso.3.6.1.4.1.2254.2.4.2.1.0 = NULL
iso.3.6.1.4.1.2254.2.4.2.2.0 = NULL
iso.3.6.1.4.1.2254.2.4.2.3.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.2.4.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.2.5.0 = NULL
iso.3.6.1.4.1.2254.2.4.2.6.0 = NULL
iso.3.6.1.4.1.2254.2.4.2.7.0 = NULL
iso.3.6.1.4.1.2254.2.4.3.1.0 = INTEGER: 1
iso.3.6.1.4.1.2254.2.4.3.2.0 = INTEGER: 2
iso.3.6.1.4.1.2254.2.4.3.3.0 = NULL
iso.3.6.1.4.1.2254.2.4.3.4.0 = NULL
iso.3.6.1.4.1.2254.2.4.3.5.0 = NULL
iso.3.6.1.4.1.2254.2.4.3.6.0 = NULL
iso.3.6.1.4.1.2254.2.4.3.7.0 = NULL
iso.3.6.1.4.1.2254.2.4.3.8.0 = INTEGER: 255
iso.3.6.1.4.1.2254.2.4.4.1.0 = INTEGER: 1
iso.3.6.1.4.1.2254.2.4.4.2.0 = INTEGER: 499
iso.3.6.1.4.1.2254.2.4.4.3.0 = INTEGER: 2340
iso.3.6.1.4.1.2254.2.4.4.4.0 = NULL
iso.3.6.1.4.1.2254.2.4.4.5.0 = NULL
iso.3.6.1.4.1.2254.2.4.4.6.0 = NULL
iso.3.6.1.4.1.2254.2.4.4.7.0 = NULL
iso.3.6.1.4.1.2254.2.4.4.8.0 = NULL
iso.3.6.1.4.1.2254.2.4.4.9.0 = NULL
iso.3.6.1.4.1.2254.2.4.4.10.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.1.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.5.2.0 = INTEGER: 500
iso.3.6.1.4.1.2254.2.4.5.3.0 = INTEGER: 1
iso.3.6.1.4.1.2254.2.4.5.4.0 = INTEGER: 2300
iso.3.6.1.4.1.2254.2.4.5.5.0 = INTEGER: 82
iso.3.6.1.4.1.2254.2.4.5.6.0 = INTEGER: 1800
iso.3.6.1.4.1.2254.2.4.5.7.0 = INTEGER: 49
iso.3.6.1.4.1.2254.2.4.5.8.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.9.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.10.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.11.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.12.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.13.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.14.0 = NULL
iso.3.6.1.4.1.2254.2.4.5.15.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.1.0 = INTEGER: 499
iso.3.6.1.4.1.2254.2.4.6.2.0 = INTEGER: 1
iso.3.6.1.4.1.2254.2.4.6.3.0 = INTEGER: 2330
iso.3.6.1.4.1.2254.2.4.6.4.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.5.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.6.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.7.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.8.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.9.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.10.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.11.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.12.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.13.0 = NULL
iso.3.6.1.4.1.2254.2.4.6.14.0 = NULL
iso.3.6.1.4.1.2254.2.4.7.1.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.7.2.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.7.3.0 = INTEGER: 1
iso.3.6.1.4.1.2254.2.4.7.4.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.7.5.0 = INTEGER: 12
iso.3.6.1.4.1.2254.2.4.7.6.0 = INTEGER: 2190
iso.3.6.1.4.1.2254.2.4.7.7.0 = NULL
iso.3.6.1.4.1.2254.2.4.7.8.0 = INTEGER: 100
iso.3.6.1.4.1.2254.2.4.7.9.0 = INTEGER: 22
iso.3.6.1.4.1.2254.2.4.7.10.0 = NULL
iso.3.6.1.4.1.2254.2.4.7.11.0 = NULL
iso.3.6.1.4.1.2254.2.4.8.1.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.8.2.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.8.3.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.1.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.2.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.3.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.4.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.5.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.6.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.7.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.8.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.9.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.10.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.11.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.12.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.13.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.14.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.15.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.16.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.17.0 = NULL
iso.3.6.1.4.1.2254.2.4.9.18.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.19.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.20.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.21.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.22.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.23.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.24.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.25.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.26.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.27.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.9.28.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.1.0 = NULL
iso.3.6.1.4.1.2254.2.4.10.2.0 = NULL
iso.3.6.1.4.1.2254.2.4.10.3.0 = INTEGER: 40
iso.3.6.1.4.1.2254.2.4.10.4.0 = INTEGER: 90
iso.3.6.1.4.1.2254.2.4.10.5.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.6.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.7.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.8.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.9.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.10.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.11.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.12.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.13.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.14.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.15.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.16.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.17.0 = INTEGER: 0
iso.3.6.1.4.1.2254.2.4.10.18.0 = INTEGER: 0
End of MIB

Do you use a distributed setup? If there is nothing then something is wrong with your configuration.

Test with a “cmk -D ups-socomec-rak”. What do you see?

1 Like

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
  --------- ---- ------ ----------- ------

Yes, Once Again I’ve checked this with completely clean Ubuntu 20.04 and fresh most simple installation of cmk - This errors also pops out.

How should I test and debug processing script of this check? What file is executed when it’s parsing data over snmp ?

Again if you do a cmk --debug -vvI hostname you see at least something.

This is the wrong host configuration, you need to configure with “No agent” and not the special agent.

This must be some bug, since in GUI it’s no Agent selected. This option without special agent.

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.

screens are above

cmk --debug -vvI hostname gives no result at all.

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.

On the command line it is a upper case i not lower case L
cmk --debug -vvI hostname
Lower case L is “list hosts” from a hostgroup with name “hostname” :slight_smile:

Thank’s IT worked and I have debug!

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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.