Ad Widget

Collapse

Monitoring Intel/LSI/Symbios RAID controllers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • denser
    Member
    • Oct 2014
    • 30

    #31
    Its run script that put to zabbix sender(you suggest do it via windows scheduler). Thts all. Wont like to use also windows additional tuning.

    Comment

    • mail_admin
      Junior Member
      • Dec 2014
      • 6

      #32
      I am very new to zabbix and I want to monitor HS22 blade server with LSI RAID controller. The server is running windows 2012 standard 64 bit.
      I have my zabbix agent 2.4.1 file at location c:\zabbix_agentd.conf.
      Copied the files intel_raid_check and intel_raid_discovery file to zabbix directory C:\zabbix_agents_2.4.1.win. Placed CmdTool2_64.exe in c:\raid folder. I have uploaded the template in zabbix server running on centos. Do I need to add any value mapping. I have a file zabbix_agent_userparameters and I don't know how to proceed further. Can anyone please help me on how to proceed to next step. Thanks in advance.

      Comment

      • ArtemK
        Senior Member
        • May 2013
        • 232

        #33
        Originally posted by mail_admin
        Do I need to add any value mapping
        If you imported template without errors - then no, you don't need any value mapping. Otherwise - you'll found it on github

        check that CmdTool2_64.exe shows info about your controller in elevated command promt/powershell
        Code:
        CmdTool2_64.exe -adpcount
        CmdTool2_64.exe -adpallinfo -aN
        If it works and shows info about RAID controller - you are lucky.
        • Put lines from agent_userparameters text file to your zabbix agent configuration (Today I prefer to include it in main config, but there is actually no difference).
        • You need to check path to scripts in these userparameters. You also should check path to CmdTool in each script.
        • Then, you need to create two windows scheduler tasks - one for discovery script, and one for trapper checks script, if you want to use it (if I remember correctly - almost all items in template are "trapper" items, but you can change type of these items to zabbix agent). You probably want to run discovery script with 0.5/1h interval, and trapper script every 5/10 minutes.


        That's it, pretty easy (if you don't have 100 servers )
        Last edited by ArtemK; 16-12-2014, 22:10.

        Comment

        • artem.ultra
          Junior Member
          • Aug 2015
          • 16

          #34
          Hi.
          I use zabbix server 2.4.5
          When I import the template get the error:
          Code:
              Created: Application "LSI RAID adapter" on "Template LSI RAID (agent + trapper)".
              Created: Application "LSI RAID BBU" on "Template LSI RAID (agent + trapper)".
              Created: Application "LSI RAID Logical Volume" on "Template LSI RAID (agent + trapper)".
              Created: Application "LSI RAID Physical Volume" on "Template LSI RAID (agent + trapper)".
              Created: Discovery rule "RAID discovery adapters" on "Template LSI RAID (agent + trapper)".
              Created: Discovery rule "RAID discovery bbu" on "Template LSI RAID (agent + trapper)".
              Created: Discovery rule "RAID discovery pdisks" on "Template LSI RAID (agent + trapper)".
              Created: Discovery rule "RAID discovery vdisks" on "Template LSI RAID (agent + trapper)".
              Cannot find value map "LSI RAID BBU & LD Status" used for item prototype "BBU state on adapter:{#ADAPTER_ID}" of discovery rule "RAID discovery bbu" on "Template LSI RAID". [conf.import.php:190 → CFrontendApiWrapper->import() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() in /usr/share/zabbix/include/classes/import/CConfigurationImport.php:180]
          I ask your help

          Comment

          • ArtemK
            Senior Member
            • May 2013
            • 232

            #35
            Hi,

            you should add value mappings first
            Last edited by ArtemK; 20-03-2018, 22:48.

            Comment

            • artem.ultra
              Junior Member
              • Aug 2015
              • 16

              #36
              thank. happened
              and what CmdTool2 in script raid_check.ps1?

              Comment

              • tremo
                Junior Member
                • Mar 2016
                • 11

                #37
                Originally posted by artem.ultra
                thank. happened
                and what CmdTool2 in script raid_check.ps1?
                Hi.
                I'm configuring windows based machine and i need your help because Im not getting anything with our script.
                That is what i did.
                1. I imported template to the zabbix server( without errors)
                2. I added lines from file user_parameters to the zabbix_agent.conf file
                3. i added intel_raid_checks files into zabbix folder on my windows machine
                4. I link template to the host.

                What is wrong?
                I do not get any errors and any data

                Host configured to use zabbix agent
                Last edited by tremo; 08-03-2016, 11:48.

                Comment

                • ArtemK
                  Senior Member
                  • May 2013
                  • 232

                  #38
                  please, use latest scripts from github

                  IIRC, you should use system scheduler to run discovery and trapper scripts to get data. For example you can schedule to run discovery script every hour and trapper_checks script every 5 minutes.

                  If you want to use agent checks only - change discovery and all items/prototypes type to "zabbix active"

                  Comment

                  • artem.ultra
                    Junior Member
                    • Aug 2015
                    • 16

                    #39
                    dell perc h730 mini
                    Code:
                    PS C:\Program Files\Zabbix> .\raid_discovery.ps1
                    info from server: "processed: 0; failed: 4; total: 4; seconds spent: 0.000102"
                    sent: 4; skipped: 0; total: 4
                    Code:
                    PS C:\Program Files\Zabbix> .\CmdTool2_64.exe -adpcount
                    Controller Count: 1.
                    Exit Code: 0x01
                    Code:
                    PS C:\Program Files\Zabbix> .\CmdTool2_64.exe -adpallinfo -aN
                    syntax error, unexpected TOKEN_UNKNOWN, expecting $end
                         Storage Command Line Tool  Ver 1.11.03 Mar 26, 2014
                         (c)Copyright 2014, LSI Corporation, All Rights Reserved.
                    what's wrong?

                    Comment

                    • ArtemK
                      Senior Member
                      • May 2013
                      • 232

                      #40
                      Originally posted by artem.ultra
                      dell perc h730 mini
                      Code:
                      PS C:\Program Files\Zabbix> .\raid_discovery.ps1
                      info from server: "processed: 0; failed: 4; total: 4; seconds spent: 0.000102"
                      sent: 4; skipped: 0; total: 4
                      That doesn't tell me anything, did you configured host in zabbix, attached template to it?
                      Originally posted by artem.ultra
                      Code:
                      PS C:\Program Files\Zabbix> .\CmdTool2_64.exe -adpallinfo -aN
                      ...
                      what's wrong?
                      -aN - N is controller number, try
                      Code:
                      CmdTool2_64.exe -adpallinfo -a0

                      Comment

                      • artem.ultra
                        Junior Member
                        • Aug 2015
                        • 16

                        #41
                        Originally posted by ArtemK
                        That doesn't tell me anything, did you configured host in zabbix, attached template to it?
                        yes. i am attached template to server
                        Code:
                        PS C:\Program Files\Zabbix> .\CmdTool2_64.exe -adpallinfo -a0
                        ERROR:Could not detect controller.
                        Failed to get ControllerId List.
                        Failed to get CpController object.
                        Exit Code: 0x01

                        Comment

                        • ArtemK
                          Senior Member
                          • May 2013
                          • 232

                          #42
                          hmm, did you try this command in elevated powershell session?

                          Could you also post here zsend_data.txt file, it should be in the same folder where your CmdTool2_64.exe is located. If it contains some data - then there is problem in zabbix configuration.

                          Comment

                          • artem.ultra
                            Junior Member
                            • Aug 2015
                            • 16

                            #43
                            Originally posted by ArtemK
                            hmm, did you try this command in elevated powershell session?
                            yes
                            Code:
                            - intel.raid.discovery.pdisks { "data":[{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"7", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"3", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"4", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"2", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"1", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"0", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"6", "{#ADAPTER_ID}":"0" },{ "{#ENCLOSURE_ID}":"32", "{#PDRIVE_ID}":"5", "{#ADAPTER_ID}":"0" } ]}
                            - intel.raid.discovery.vdisks { "data":[{ "{#VDRIVE_ID}":"1", "{#ADAPTER_ID}":"0" },{ "{#VDRIVE_ID}":"0", "{#ADAPTER_ID}":"0" } ]}
                            - intel.raid.discovery.bbu { "data":[{ "{#ADAPTER_ID}":"0" } ]}
                            - intel.raid.discovery.adapters { "data":[{ "{#ADAPTER_ID}":"0" } ]}

                            Comment

                            • ArtemK
                              Senior Member
                              • May 2013
                              • 232

                              #44
                              That strange, discovery script sees one conrtoller...you probably didn't run cmdtool in "admin" shell.


                              Anyway, this is probably my fault, I renamed item keys between versions...latest version on github uses "hw.raid.discovery" keys. You have "intel.raid.discovery" keys. Which keys you have defined in template?

                              I recommend you to remove current template/scripts and import template/download scripts from github and then try again.

                              Comment

                              • artem.ultra
                                Junior Member
                                • Aug 2015
                                • 16

                                #45
                                PS C:\zabbix> .\raid_discovery.ps1 -vv
                                Sending failed. Use option -vv for more detailed output.

                                Comment

                                Working...