Hpe one view agent

Hi
i’ve got this issue with hpe devices.
any suggestion?

Thanks ;

**CMK version:2.2.0P18
**OS version:RHEL 7.9

**Error message:ent exited with code 1: Traceback (most recent call last):
File “/omd/sites/production/local/share/check_mk/agents/special/agent_hpe_oneview”, line 160, in
api_calls(args.hostname, token, args.api)
File “/omd/sites/production/local/share/check_mk/agents/special/agent_hpe_oneview”, line 151, in api_calls
count = len(result[“members”])

KeyError: 'members'

**Output of “cmk --debug -vvn hostname”:** (If it is a problem with checks or plugins)
MD[pxxx]:~$ cmk --debug -vvn xxxxxx
Checkmk version 2.2.0p18
+ FETCHING DATA
  Source: SourceInfo(hostname='xxxxxx', ipaddress='xxxxxxx', ident='special_hpe_oneview', fetcher_type=<FetcherType.SPECIAL_AGENT: 6>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f38b29e23d0]
Read from cache: AgentFileCache(elrlnxovw01, path_template=/omd/sites/production/tmp/check_mk/data_source_cache/special_hpe_oneview/{hostname}, max_age=MaxAge(checking=0, discovery=450.0, inventory=450.0), simulation=False, use_only_cache=False, file_cache_mode=6)
Not using cache (does not exist)
[ProgramFetcher] Execute data source
Calling: /omd/sites/production/local/share/check_mk/agents/special/agent_hpe_oneview -H xxxxxx -u xxxxxx -p 'xxxxxxxxx' -a 4600
[cpu_tracking] Stop [7f38b29e23d0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.15, children_system=0.02, elapsed=0.26999999955296516))]
  Source: SourceInfo(hostname='elrlnxovw01', ipaddress='xxxxxxx', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f38b2a02810]
Read from cache: NoCache(xxxxxxxxx, path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
[PiggybackFetcher] Execute data source
No piggyback files for 'xxxxx'. Skip processing.
No piggyback files for 'xxxxx9'. Skip processing.
[cpu_tracking] Stop [7f38b2a02810 - 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
  HostKey(hostname='hostxxxxx', source_type=<SourceType.HOST: 1>)  -> Not adding sections: Agent exited with code 1: Traceback (most recent call last):
  File "/omd/sites/xxx/local/share/check_mk/agents/special/agent_hpe_oneview", line 160, in <module>
    api_calls(args.hostname, token, args.api)
  File "/omd/sites/xx/local/share/check_mk/agents/special/agent_hpe_oneview", line 151, in api_calls
    count = len(result["members"])
                ~~~~~~^^^^^^^^^^^
KeyError: 'members'
  HostKey(hostname='xxxxxxx', source_type=<SourceType.HOST: 1>)  -> Add sections: []
Received no piggyback data
[cpu_tracking] Start [7f38b2a0c090]
value store: synchronizing
Trying to acquire lock on /omd/sites/pxxxxx/tmp/check_mk/counters/xxxxxx
Got lock on /omd/sites/xxxxx/tmp/check_mk/counters/xxxxxx
value store: loading from disk
Releasing lock on /omd/sites/xxxx/tmp/check_mk/counters/xxxx
Released lock on /omd/sites/xxx/tmp/check_mk/counters/xxxx
No piggyback files for 'exxx'. Skip processing.
No piggyback files for 'xxxx9'. Skip processing.
[cpu_tracking] Stop [7f38b2a0c090 - Snapshot(process=posix.times_result(user=0.010000000000000009, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[special_hpe_oneview] KeyError: 'members'(!!), [piggyback] Success (but no data found for this host), execution time 0.3 sec | execution_time=0.270 user_time=0.010 system_time=0.000 children_user_time=0.150 children_system_time=0.020 cmk_time_ds=0.100 cmk_time_agent=0.000
Agent exited with code 1: Traceback (most recent call last):
  File "/omd/sites/production/local/share/check_mk/agents/special/agent_hpe_oneview", line 160, in <module>
    api_calls(args.hostname, token, args.api)
  File "/omd/sites/production/local/share/check_mk/agents/special/agent_hpe_oneview", line 151, in api_calls
    count = len(result["members"])
                ~~~~~~^^^^^^^^^^^
KeyError: 'members'(!!)

the same was raised (and fixed) in HPE Oneview Agent (1.74) error on only 1 out of 4 oneview 8.7 appliances - @jwiederh uploaded a new version to the exchange, but it looks like that isn’t available publicly yet. Jeronimo, would you mind sharing the mkp here in the meantime :slight_smile: ?

1 Like

Hi,

it looks like the 1.7.5 got approved: https://exchange.checkmk.com/packages/hpe-oneview/1339/hpe_oneview-1.7.5.mkp

Here is the newest mkp anyway:
hpe_oneview-1.7.5.mkp (9.1 KB)

Cheers Jeronimo

2 Likes

hi jwiederh,
great job .

1 Like

hello Jeronimo

I got these output ( mapping error).
Invalid check parameter: Undefined key ‘map_state’ in the dictionary. Allowed are map_status.
Variable: checkgroup_parameters:hpe_oneview_appliance_state
Parameters:
{‘map_state’: {‘CONFIGURATION_ERROR’: 2,
‘ERROR’: 2,
‘FACTORY_RESET’: 1,
‘FAILOVER’: 1,
‘INCOMPATIBLE_MODEL_ERROR’: 2,
‘NETWORK_ERROR’: 2,
‘OK’: 0,
‘RESTORE’: 1,
‘RESTORE_NO_RESET_ERROR’: 2,
‘STARTING’: 0,
‘STOPPED’: 2,
‘UPGRADE’: 0}}
any ideas
Regards

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.