Error on snmp service configuration: "Error 400 embedded null byte" Is display on Wato when try to manage some discovery service

Hello

I have some HP Server DL 320 Gen11, on which I do snmp v3 monitoring; All same model and same iLO version.

On 1 of them, i have a strange behaviour : On 2 of the 48 discovered services, it seem there is a cabalistic and invisible ouput, inside the service name.

Consequence: i can not manage to change from undecide to monitored or ignored. when i try a red message appear on web interface :

HTTP Error - 400: Error running automation call get-services-labels: embedded null byte

I did try delete the host and add again… but same symptom appear.
Where to look to understand and correct ?

CMK version:2.1.0p28
OS version:debian 10

Error message: HTTP Error - 400: Error running automation call get-services-labels: embedded null byte

**

Output of “cmk --debug -vvn MY_ESX_SUPERVISED_HOST_IMM”: WARNING: 1 deprecated plugins will be ignored in Checkmk version 2.2 (see werk #14084): ilo_firmware
Checkmk version 2.1.0p28
Try license usage history update.
Trying to acquire lock on /omd/sites/checkmk/var/check_mk/license_usage/next_run
Got lock on /omd/sites/checkmk/var/check_mk/license_usage/next_run
Trying to acquire lock on /omd/sites/checkmk/var/check_mk/license_usage/history.json
Got lock on /omd/sites/checkmk/var/check_mk/license_usage/history.json
Next run time has not been reached yet. Abort.
Releasing lock on /omd/sites/checkmk/var/check_mk/license_usage/history.json
Released lock on /omd/sites/checkmk/var/check_mk/license_usage/history.json
Releasing lock on /omd/sites/checkmk/var/check_mk/license_usage/next_run
Released lock on /omd/sites/checkmk/var/check_mk/license_usage/next_run
+ FETCHING DATA
  Source: SourceType.HOST/FetcherType.SNMP
[cpu_tracking] Start [7fed99ead6a0]
[SNMPFetcher] Fetch with cache settings: SNMPFileCache(MY_ESX_SUPERVISED_HOST_IMM, base_path=/omd/sites/checkmk/tmp/check_mk/data_source_cache/snmp, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=False, use_outdated=False, simulation=False)
Not using cache (Does not exist)
[SNMPFetcher] Execute data source
Write data to cache file /omd/sites/checkmk/tmp/check_mk/data_source_cache/snmp/checking/MY_ESX_SUPERVISED_HOST_IMM
Trying to acquire lock on /omd/sites/checkmk/tmp/check_mk/data_source_cache/snmp/checking/MY_ESX_SUPERVISED_HOST_IMM
Got lock on /omd/sites/checkmk/tmp/check_mk/data_source_cache/snmp/checking/MY_ESX_SUPERVISED_HOST_IMM
Releasing lock on /omd/sites/checkmk/tmp/check_mk/data_source_cache/snmp/checking/MY_ESX_SUPERVISED_HOST_IMM
Released lock on /omd/sites/checkmk/tmp/check_mk/data_source_cache/snmp/checking/MY_ESX_SUPERVISED_HOST_IMM
[cpu_tracking] Stop [7fed99ead6a0 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.010000001639127731))]
  Source: SourceType.HOST/FetcherType.PIGGYBACK
[cpu_tracking] Start [7fed99e50640]
[PiggybackFetcher] Fetch with cache settings: NoCache(MY_ESX_SUPERVISED_HOST_IMM, base_path=/omd/sites/checkmk/tmp/check_mk/data_source_cache/piggyback, max_age=MaxAge(checking=0, discovery=120, inventory=120), disabled=True, use_outdated=False, simulation=False)
Not using cache (Cache usage disabled)
[PiggybackFetcher] Execute data source
No piggyback files for 'MY_ESX_SUPERVISED_HOST_IMM'. Skip processing.
No piggyback files for '192.168.10.10'. Skip processing.
Not using cache (Cache usage disabled)
[cpu_tracking] Stop [7fed99e50640 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
  Source: SourceType.HOST/FetcherType.SNMP
No persisted sections
  -> Add sections: []
  Source: SourceType.HOST/FetcherType.PIGGYBACK
No persisted sections
  -> Add sections: []
Received no piggyback data
Received no piggyback data
[cpu_tracking] Start [7fed99e789a0]
value store: synchronizing
Trying to acquire lock on /omd/sites/checkmk/tmp/check_mk/counters/MY_ESX_SUPERVISED_HOST_IMM
Got lock on /omd/sites/checkmk/tmp/check_mk/counters/MY_ESX_SUPERVISED_HOST_IMM
value store: loading from disk
Releasing lock on /omd/sites/checkmk/tmp/check_mk/counters/MY_ESX_SUPERVISED_HOST_IMM
Released lock on /omd/sites/checkmk/tmp/check_mk/counters/MY_ESX_SUPERVISED_HOST_IMM
No piggyback files for 'MY_ESX_SUPERVISED_HOST_IMM'. Skip processing.
No piggyback files for '192.168.10.10'. Skip processing.
[cpu_tracking] Stop [7fed99e789a0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[snmp] Success, execution time 0.0 sec | execution_time=0.010 user_time=0.010 system_time=0.000 children_user_time=0.000 children_system_time=0.000 cmk_time_snmp=0.000 cmk_time_agent=0.000

**

What happens on the command line with a cmk --debug -vvII MY_ESX_SUPERVISED_HOST_IMM?
And if this runs smoothly is this strange named service shown correctly with a cmk -vvD MY_ESX_SUPERVISED_HOST_IMM?

Hello,
we have the same error with version 2.2.0p8 and an ilo6 (HP GEn11 server). We cannot disable or comment out the service.
The commands you have submitted have not shown any abnormalities. It is the service “Logical Device 1”. Attached is the output

 cmk -vvD ILO-ESXi0-X.Y.X.Y

ILO-ESXi0-X.Y.X.Y
Addresses:              X.Y.X.Y
Tags:                   [address_family:ip-v4-only], [agent:no-agent], [criticality:critical], [ip-v4:ip-v4], [networking:lan], [piggyback:auto-piggyback], [site:slave_company], [snmp:sn                                                                      mp], [snmp-only:snmp-only], [snmp_ds:snmp-v2]
Labels:                 [cmk/site:slave_company]
Host groups:            VMWare
Contact groups:
Agent mode:             No agent
Type of agent:
  SNMP (Community: 'public', Bulk walk: yes, Port: 161, Backend: Inline)
  Process piggyback data from /omd/sites/slave_company/tmp/check_mk/piggyback/ILO-ESXi0-X.Y.X.Y
Services:
  checktype         item             params                                                                                                                      description                                                                                        groups
  ----------------- ---------------- --------------------------------------------------------------------------------------------------------------------------- ---------------------                                                                      ------- ------
  hp_proliant_cpu   0                {}                                                                                                                          HW CPU 0                                                                                   
  hp_proliant_cpu   1                {}                                                                                                                          HW CPU 1                                                                                   
  hp_proliant_fans  1 (system)       {}                                                                                                                          HW FAN1 (system)                                                                           
  hp_proliant_fans  2 (system)       {}                                                                                                                          HW FAN2 (system)                                                                           
  hp_proliant_fans  3 (system)       {}                                                                                                                          HW FAN3 (system)                                                                           
  hp_proliant_fans  4 (system)       {}                                                                                                                          HW FAN4 (system)                                                                           
  hp_proliant_fans  5 (system)       {}                                                                                                                          HW FAN5 (system)                                                                           
  hp_proliant_fans  6 (system)       {}                                                                                                                          HW FAN6 (system)                                                                           
  hp_proliant_mem   0                {}                                                                                                                          HW Mem 0                                                                                   
  hp_proliant_mem   11               {}                                                                                                                          HW Mem 11                                                                                  
  hp_proliant_mem   13               {}                                                                                                                          HW Mem 13                                                                                  
  hp_proliant_mem   15               {}                                                                                                                          HW Mem 15                                                                                  
  hp_proliant_mem   16               {}                                                                                                                          HW Mem 16                                                                                  
  hp_proliant_mem   18               {}                                                                                                                          HW Mem 18                                                                                  
  hp_proliant_mem   2                {}                                                                                                                          HW Mem 2                                                                                   
  hp_proliant_mem   20               {}                                                                                                                          HW Mem 20                                                                                  
  hp_proliant_mem   22               {}                                                                                                                          HW Mem 22                                                                                  
  hp_proliant_mem   25               {}                                                                                                                          HW Mem 25                                                                                  
  hp_proliant_mem   27               {}                                                                                                                          HW Mem 27                                                                                  
  hp_proliant_mem   29               {}                                                                                                                          HW Mem 29                                                                                  
  hp_proliant_mem   31               {}                                                                                                                          HW Mem 31                                                                                  
  hp_proliant_mem   4                {}                                                                                                                          HW Mem 4                                                                                   
  hp_proliant_mem   6                {}                                                                                                                          HW Mem 6                                                                                   
  hp_proliant_mem   9                {}                                                                                                                          HW Mem 9                                                                                   
  hp_proliant_psu   0/1              {'levels': (80.0, 90.0)}                                                                                                    HW PSU 0/1                                                                                 
  hp_proliant_psu   0/2              {'levels': (80.0, 90.0)}                                                                                                    HW PSU 0/2                                                                                 
  hp_proliant_psu   Total            {'levels': (80.0, 90.0)}                                                                                                    HW PSU Total                                                                               
  hp_proliant_power None             {}                                                                                                                          HW Power Meter                                                                             
  interfaces        1                {'errors': {'both': ('perc', (0.05, 0.1))}, 'speed': None, 'discovered_oper_status': ['1'], 'discovered_speed': 4294967295} Interface 1                                                                                
  interfaces        2                {'errors': {'both': ('perc', (0.05, 0.1))}, 'speed': None, 'discovered_oper_status': ['1'], 'discovered_speed': 4294967295} Interface 2                                                                                
  interfaces        3                {'errors': {'both': ('perc', (0.05, 0.1))}, 'speed': None, 'discovered_oper_status': ['1'], 'discovered_speed': 4294967295} Interface 3                                                                                
  interfaces        4                {'errors': {'both': ('perc', (0.05, 0.1))}, 'speed': None, 'discovered_oper_status': ['1'], 'discovered_speed': 4294967295} Interface 4                                                                                
  hp_proliant_raid   1              {}                                                                                                                          Logical Device  1                                                                           
  snmp_info         None             {}                                                                                                                          SNMP Info                                                                                  
  hp_proliant_temp  1 (ambient)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 1 (ambien                                                                      t)
  hp_proliant_temp  10 (memory)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 10 (memor                                                                      y)
  hp_proliant_temp  12 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 12 (syste                                                                      m)
  hp_proliant_temp  13 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 13 (syste                                                                      m)
  hp_proliant_temp  14 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 14 (syste                                                                      m)
  hp_proliant_temp  17 (ioBoard)     {'device_levels_handling': 'devdefault'}                                                                                    Temperature 17 (ioBoa                                                                      rd)
  hp_proliant_temp  18 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 18 (syste                                                                      m)
  hp_proliant_temp  19 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 19 (syste                                                                      m)
  hp_proliant_temp  2 (cpu)          {'device_levels_handling': 'devdefault'}                                                                                    Temperature 2 (cpu)                                                                        
  hp_proliant_temp  20 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 20 (syste                                                                      m)
  hp_proliant_temp  21 (powerSupply) {'device_levels_handling': 'devdefault'}                                                                                    Temperature 21 (power                                                                      Supply)
  hp_proliant_temp  22 (powerSupply) {'device_levels_handling': 'devdefault'}                                                                                    Temperature 22 (power                                                                      Supply)
  hp_proliant_temp  23 (powerSupply) {'device_levels_handling': 'devdefault'}                                                                                    Temperature 23 (power                                                                      Supply)
  hp_proliant_temp  24 (powerSupply) {'device_levels_handling': 'devdefault'}                                                                                    Temperature 24 (power                                                                      Supply)
  hp_proliant_temp  25 (ioBoard)     {'device_levels_handling': 'devdefault'}                                                                                    Temperature 25 (ioBoa                                                                      rd)
  hp_proliant_temp  26 (ioBoard)     {'device_levels_handling': 'devdefault'}                                                                                    Temperature 26 (ioBoa                                                                      rd)
  hp_proliant_temp  27 (ioBoard)     {'device_levels_handling': 'devdefault'}                                                                                    Temperature 27 (ioBoa                                                                      rd)
  hp_proliant_temp  29 (ioBoard)     {'device_levels_handling': 'devdefault'}                                                                                    Temperature 29 (ioBoa                                                                      rd)
  hp_proliant_temp  3 (cpu)          {'device_levels_handling': 'devdefault'}                                                                                    Temperature 3 (cpu)                                                                        
  hp_proliant_temp  35 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 35 (syste                                                                      m)
  hp_proliant_temp  36 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 36 (syste                                                                      m)
  hp_proliant_temp  37 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 37 (syste                                                                      m)
  hp_proliant_temp  38 (system)      {'device_levels_handling': 'devdefault'}                                                                                    Temperature 38 (syste                                                                      m)
  hp_proliant_temp  39 (powerSupply) {'device_levels_handling': 'devdefault'}                                                                                    Temperature 39 (power                                                                      Supply)
  hp_proliant_temp  4 (memory)       {'device_levels_handling': 'devdefault'}                                                                                    Temperature 4 (memory                                                                      )
  hp_proliant_temp  6 (memory)       {'device_levels_handling': 'devdefault'}                                                                                    Temperature 6 (memory                                                                      )
  hp_proliant_temp  8 (memory)       {'device_levels_handling': 'devdefault'}                                                                                    Temperature 8 (memory                                                                      )
  uptime            None             {}                                                                                                                          Uptime

If there is strange data inside the SNMP output then it is complicated i think.
The SNMP output you can check inside the folder
“~/tmp/check_mk/data_source_cache/snmp/discovery/” or “checking”
But i don’t know an easy solution for this problem.

Hello,

the problem is with the hp_proliant_raid check (at least that was the case with us).

The variable “name” is a null byte “\x00”, which leads to this error.

But this has been fixed
With Werk

Cheers,
Mathias