aklyuk / zabbix-hp-3par

16 stars 15 forks source link

Problem with external script #5

Open chostik opened 3 years ago

chostik commented 3 years ago

Hello,

Zabbix 5.4

Debian 10 Linux

Python 3.7.3

HP 3PAR 8200

3PAR OS VERSION 3.2.2.612 (MU4)+P51,P56,P57

I have a problem with a script when I started it from console:

Traceback (most recent call last): File "./hp_3par_get_state_wbem.py", line 224, in get_status_resources state_of_concrete_instances = hp_connect.EnumerateInstances(CIM_class, PropertyList=["OperationalStatus","HealthState", "DeviceID", "ElementName", "Tag", "SerialNumber", "SystemLED", "OtherOperationalStatus"]) File "/usr/local/lib/python3.7/dist-packages/pywbem/_cim_operations.py", line 2783, in EnumerateInstances PropertyList=PropertyList) File "/usr/local/lib/python3.7/dist-packages/pywbem/_cim_operations.py", line 1824, in _imethodcall self, request_data, cimxml_headers) File "/usr/local/lib/python3.7/dist-packages/pywbem/_cim_http.py", line 400, in wbem_request conn_id=conn.conn_id, request_data=req_body) pywbem._exceptions.HTTPError: 404 (Not Found)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./hp_3par_get_state_wbem.py", line 362, in main() File "./hp_3par_get_state_wbem.py", line 349, in main result_status = get_status_resources(arguments.hp_user, arguments.hp_password, arguments.hp_ip, arguments.hp_port, arguments.storage_name, list_CIM_classes) File "./hp_3par_get_state_wbem.py", line 262, in get_status_resources except pywbem.exceptions.TimeoutError as oops: AttributeError: module 'pywbem' has no attribute 'exceptions'

It's looks like opening a wrong page...