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.
Ad Widget
Collapse
Monitoring Intel/LSI/Symbios RAID controllers
Collapse
X
-
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
-
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
If it works and shows info about RAID controller - you are lucky.Code:CmdTool2_64.exe -adpcount CmdTool2_64.exe -adpallinfo -aN
- 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
-
Hi.
I use zabbix server 2.4.5
When I import the template get the error:
I ask your helpCode: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]Comment
-
-
-
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 agentLast edited by tremo; 08-03-2016, 11:48.Comment
-
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
-
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
what's wrong?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.Comment
-
That doesn't tell me anything, did you configured host in zabbix, attached template to it?
-aN - N is controller number, try
Code:CmdTool2_64.exe -adpallinfo -a0
Comment
-
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
-
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
-
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
-
Comment
Comment