NetApp E-Series service-discovery-preview error - name 'quote_shell_string' is not defined

I’m having some issues with the NetApp E-Series check that I’m not sure on how to troubleshoot.
The agent works fine command line but is getting an error through the CheckMK UI.
The command line:

 /omd/sites/XXXX/local/share/check_mk/agents/special/agent_netappeseries  -u <USER> -s <PASSWORD> -m batteries <NETAPP_E-HOSTNAME> 

returns the following:

<<<netapp_eseries_batteries:sep(0)>>>
{'Tray 99-1': {'batteryRef': '0900000000000000000001000000000000000000', 'status': 'optimal', 'physicalLocation': {'trayRef': '0E00000000000000000000000000000000000000', 'slot': 1, 'locationParent': {'refType': 'controller', 'controllerRef': '070000000000000000000001', 'symbolRef': None, 'typedReference': None}, 'locationPosition': 1, 'label': ''}, 'batteryAge': 1013, 'batteryLifeRemaining': -1, 'batteryTypeData': {'batteryType': 'dualIndividualFrus', 'cruParentController': None, 'parentController': '070000000000000000000001'}, 'reserved1': '0000000000000000', 'reserved2': '', 'manufacturerDate': '1575158400', 'vendorName': 'VN NETAPP  ', 'vendorPN': 'PN 271-00061+A1', 'vendorSN': 'SN <SN>', 'fruType': 'FT IBATTERY', 'rtrAttributes': {'cruType': 'unknown', 'parentCru': None, 'rtrAttributeData': None}, 'repairPolicy': {'removalData': {'removalMethod': 'parent', 'rtrAttributes': None}, 'replacementMethod': 'self'}, 'batteryCanExpire': False, 'automaticAgeReset': True, 'learnCycleData': {'lastBatteryLearnCycle': '1688601600', 'nextBatteryLearnCycle': '1693440000', 'batteryLearnCycleInterval': 8}, 'smartBatteryData': {'lastBatteryLearnCycle': '1688601601', 'nextBatteryLearnCycle': '1693440000', 'batteryLearnCycleInterval': 8}, 'id': '0900000000000000000001000000000000000000', 'checkmk_item_identifier': 'Tray 99-1'}, 'Tray 99-2': {'batteryRef': '0900000000000000000002000000000000000000', 'status': 'optimal', 'physicalLocation': {'trayRef': '0E00000000000000000000000000000000000000', 'slot': 2, 'locationParent': {'refType': 'controller', 'controllerRef': '070000000000000000000002', 'symbolRef': None, 'typedReference': None}, 'locationPosition': 1, 'label': ''}, 'batteryAge': 1013, 'batteryLifeRemaining': -1, 'batteryTypeData': {'batteryType': 'dualIndividualFrus', 'cruParentController': None, 'parentController': '070000000000000000000002'}, 'reserved1': '0000000000000000', 'reserved2': '', 'manufacturerDate': '1575158400', 'vendorName': 'VN NETAPP  ', 'vendorPN': 'PN 271-00061+A1', 'vendorSN': 'SN <SN>', 'fruType': 'FT IBATTERY', 'rtrAttributes': {'cruType': 'unknown', 'parentCru': None, 'rtrAttributeData': None}, 'repairPolicy': {'removalData': {'removalMethod': 'parent', 'rtrAttributes': None}, 'replacementMethod': 'self'}, 'batteryCanExpire': False, 'automaticAgeReset': True, 'learnCycleData': {'lastBatteryLearnCycle': '1688601601', 'nextBatteryLearnCycle': '1693440000', 'batteryLearnCycleInterval': 8}, 'smartBatteryData': {'lastBatteryLearnCycle': '1688601601', 'nextBatteryLearnCycle': '1693440000', 'batteryLearnCycleInterval': 8}, 'id': '0900000000000000000002000000000000000000', 'checkmk_item_identifier': 'Tray 99-2'}}

CMK version:
Checkmk version 2.2.0p5
OS version:
CentOS Stream release 9

Error message:
Error running automation call service-discovery-preview (exit code 2), error:
name ‘quote_shell_string’ is not defined

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

OMD[dpim]:~/local/share/check_mk/agents$ cmk --debug -vvn monitor01.v2139.local
Checkmk version 2.2.0p5
+ FETCHING DATA
  Source: SourceInfo(hostname='monitor01.v2139.local', ipaddress='10.250.139.99', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7fa80b12bf10]
Read from cache: NoCache(monitor01.v2139.local, 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
Piggyback file '/omd/sites/dpim/tmp/check_mk/piggyback/monitor01.v2139.local/vc01.v2139.local': Successfully processed from source 'vc01.v2139.local'
No piggyback files for '10.250.139.99'. Skip processing.
[cpu_tracking] Stop [7fa80b12bf10 - 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
<<<esx_vsphere_vm:cached(1689089298,90)>>> / Transition NOOPParser -> HostSectionParser
<<<esx_vsphere_objects:cached(1689089298,90):sep(9)>>> / Transition HostSectionParser -> HostSectionParser
<<<labels:sep(0)>>> / Transition HostSectionParser -> HostSectionParser
No persisted sections
  HostKey(hostname='monitor01.v2139.local', source_type=<SourceType.HOST: 1>)  -> Add sections: ['esx_vsphere_objects', 'esx_vsphere_vm', 'labels']
Received no piggyback data
[cpu_tracking] Start [7fa80a7083d0]
value store: synchronizing
Trying to acquire lock on /omd/sites/dpim/tmp/check_mk/counters/monitor01.v2139.local
Got lock on /omd/sites/dpim/tmp/check_mk/counters/monitor01.v2139.local
value store: loading from disk
Releasing lock on /omd/sites/dpim/tmp/check_mk/counters/monitor01.v2139.local
Released lock on /omd/sites/dpim/tmp/check_mk/counters/monitor01.v2139.local
Piggyback file '/omd/sites/dpim/tmp/check_mk/piggyback/monitor01.v2139.local/vc01.v2139.local': Successfully processed from source 'vc01.v2139.local'
No piggyback files for '10.250.139.99'. Skip processing.
[cpu_tracking] Stop [7fa80a7083d0 - Snapshot(process=posix.times_result(user=0.0, system=0.009999999999999981, children_user=0.0, children_system=0.0, elapsed=0.009999999776482582))]
[piggyback] Successfully processed from source 'vc01.v2139.local', execution time 0.0 sec | execution_time=0.010 user_time=0.000 system_time=0.010 children_user_time=0.000 children_system_time=0.000 cmk_time_agent=0.000OMD[dpim]:~/local/share/

You need to update the installed Netapp-E Series mkp

Version 3.0.2 should be the latest one.
Until now this is not visible on the exchange.
Only question to @aeckstein if the package is in review or needs submission? :wink:

That fixed the issue.
Thanks Andreas!

Hi,

Im currently on vacation and only had the chance to test the recent changes I did in my own dev environment.
Because of that, I haven’t uploaded the checkmk 2.2 compatible MKP to the exchange yet.
If the check works fine for you, I will upload it tomorrow.

1 Like

I uploaded version 3.02 to the checkmk exchange now.

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.