Agent_hp_msa error (Agent exited with code 1)

Hi all,

I upgrade from 1.6.0 to 2.0.0 (First b3, then b4), everything works fine for me, except agent_hp_msa.
I used it with a HP MSA2040 storage, and the agent works fine under 1.6, but no luck under 2.0.

This is the cmk -d output:

ERROR [special_hp_msa]: Agent exited with code 1: Traceback (most recent call last):
File “/omd/sites/cmk/share/check_mk/agents/special/agent_hp_msa”, line 12, in
sys.exit(main())
File “/omd/sites/cmk/lib/python3/cmk/special_agents/agent_hp_msa.py”, line 175, in main
args = parse_arguments(argv or sys.argv[1:])
File “/omd/sites/cmk/lib/python3/cmk/special_agents/agent_hp_msa.py”, line 38, in parse_arguments
if args.verbose >= 2:
TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘int’(!!)

Have you tried calling it from the command line ?
The debug option may give you some clue where this error comes up. Either thedatastructure on the target host might have changed or the returned data doesn’t comply with the expected information by the special agent plugin.

~/share/check_mk/agents/special$ ./agent_hp_msa --help
usage: agent_hp_msa [-h] [-v] [–debug] -u USERNAME -p PASSWORD hostaddress

positional arguments:
hostaddress HP MSA host name

optional arguments:
-h, --help show this help message and exit
-v, --verbose Increase verbosity
–debug Debug mode: let Python exceptions come through
-u USERNAME, --username USERNAME
HP MSA user name
-p PASSWORD, --password PASSWORD
HP MSA user password

Thank you for your reply and sorry for the delay.
I already tried it, in my docker environment:

/omd/sites/cmk/share/check_mk/agents/special/agent_hp_msa -u MSAUSER -p MSAPASSWD MYMSAIP
File “/omd/sites/cmk/share/check_mk/agents/special/agent_hp_msa”, line 12, in
sys.exit(main())
File “/omd/sites/cmk/lib/python3/cmk/special_agents/agent_hp_msa.py”, line 175, in main
args = parse_arguments(argv or sys.argv[1:])
File “/omd/sites/cmk/lib/python3/cmk/special_agents/agent_hp_msa.py”, line 38, in parse_arguments
if args.verbose >= 2:
TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘int’

With --debug show it the same output.
The plugin works well, under 1.6.0 container.