Ad Widget

Collapse

Help with python script to monitor IBM Storwize storages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thiago.info
    Junior Member
    • Feb 2008
    • 28

    #1

    Help with python script to monitor IBM Storwize storages

    I’m trying to monitor IBM Storwize storages performance using zabbix.

    I found an amazing script that uses Storwize CIM Provider (WBEM) to get storage performance in an automated way, discovering everything on the storage side and then using zabbix_sender and LLD to populate the data into zabbix server.

    That script works very well and I could monitor my local storage without much effort.

    The issue started when I tried to use it on my remote storages (running the script on zabbix remote proxy). I was able to get storage performance data but something is happening that I can’t receive that data on my zabbix server.

    I did a lot of troubleshooting and still have no clue on how to get it working:
    - zabbix_sender works without problem using a manual test
    - I can authenticate with zabbix api server, and retrieve monitored hosts using a simple script from zabbix proxy server

    As I don’t have python scripting skill,I really appreciate if someone could help me looking at the scripts source (or testing it) and point me anything that could be the problem when running the script on anywhere besides zabbix server.

    The project seems to be archived, but the source is available at:

    Download: https://storage.googleapis.com/googl...ce-archive.zip
  • beowulf007
    Junior Member
    • May 2015
    • 17

    #2
    Hi thiago.info,

    I see you have good progress on monitoring IBM Storewize in Zabbix, could you please help me on how did you do it? i am having problem in setting up ibm storwize snmp, the web gui configuration is quite simple but i as i try to query the ibm storewize for any snmp data using snmpget and snmpwalk i could not get any data. I tried using telnet and nmap to check if port 161 or 162 is open but they are closed. I try to search its web gui for any options to open its PORT but failed to see any. Kindly enlighten me on this one please..
    Here is my current config..

    Comment

    • thiago.info
      Junior Member
      • Feb 2008
      • 28

      #3
      It's not possible to monitor Storwize through SNMP Get commands.
      This SNMP Servers settings in V7000 GUI is only for SNMP Traps.
      You can monitor Storwize using scripted commands like svcinfo...
      Or, you can try this project: https://storage.googleapis.com/googl...ce-archive.zip

      Comment

      • ClaudioCre
        Junior Member
        • Dec 2019
        • 10

        #4
        Hi thiago, I have execute the your procedure for integrations ofi zabbix with V7000. I have configurated but I have any doubt:

        in the zabbix Gui, how must be configurated the interface? (in attach the my configuration).
        Click image for larger version

Name:	Host_V7000.JPG
Views:	2253
Size:	104.6 KB
ID:	406793
        Moreover, I have problem with SSL.
        pywbem._exceptions.ConnectionError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618); OpenSSL version used: OpenSSL 1.0.2k-fips 26 Jan 2017


        I have modify the WBEMConnection (the root/ibm and add the four None)
        svc_mon.py: conn = pywbem.WBEMConnection('https://'+cluster, (user, password), 'zabbix/zabbix',None,None,None,None)
        svc_perf_discovery_sender.py: conn = pywbem.WBEMConnection('https://'+cluster, (user, password), 'zabbix/zabbix',None,None,None,None)
        svc_perf_graph.py: conn = pywbem.WBEMConnection('https://'+cluster, (user, password), 'zabbix/zabbix',None,None,None,None)
        svc_perf_wbem.py: conn = pywbem.WBEMConnection('https://'+cluster, (user, password), 'zabbix/zabbix',None,None,None,None)


        can you give me suggestion for resulution of problems

        This are log of zabbix svc: [ATTACH]n406794[/ATTACH]

        Comment

        • ClaudioCre
          Junior Member
          • Dec 2019
          • 10

          #5
          Hi, I have resolved the problem of CERTIFICATE_VERIFY_FAILED. In the WBEMConnection I have misconfigured third value "None". In fact it had to be True: ie No_verification.

          Now I have the another problem:

          zabbix_sender is not send the data because a problem with Timestamp. in the file svc_mon.errlog I have the following error:

          Thu Aug 13 11:14:01 CEST 2020
          zabbix_sender [16920]: ERROR: [line 1] 'Timestamp' required
          Sending failed. Use option -vv for more detailed output.


          And the file is not processed:

          Thu Aug 13 11:16:01 CEST 2020
          Connecting to v7000_pom
          Response from "192.168.141.200:10051": "processed: 0; failed: 230; total: 230; seconds spent: 0.001580"
          sent: 230; skipped: 0; total: 230


          on zabbix Gui I am not see the data.

          This are the new log: LOG_20200813.zip

          Can you Help me

          Comment

          Working...