This solution is based on zabbix 2.0 api and LLD which is only available in zabbix 2.0
The template included uses active checks. Your zabbix agent must be configured for active checks otherwise the server won't receive any data..
If you are still running zabbix 1.8 or later you can try an older template: http://www.zabbix.com/forum/showthread.php?t=21104
Description
This solutions gives you complete monitoring of HP servers hardware just like you would get in HP SIM, but using zabbix. The template only uses HP WBEM providers and the SMART Array Configuration Utility CLI (not mandatory) so there is no need to install HP SIM or make any SNMP configuration.
The template uses active checks and so it works with servers that are behind NAT, without the need to configure any port forwardings. Finally, this template works on low-end servers like ML110 which have embedded controllers and for which HP SIM is not available.
A complete overview of triggers can be viewed at: http://img820.imageshack.us/img820/8566/overviewic.jpg
You get monitoring for the following:
You also get temperature graphs for disks and sensors like so:


Usage
Download the archive, extract the XML template, import it into the frontend and link the hosts to it.
Copy the vbs scripts to your zabbix agent folder and configure the following lines in your zabbix_agentd.conf file, replacing the path in the UserParameter with your zabbix agent installation path, restart the agent.
Download the perl scripts to you zabbix server, edit them, specifically the parameters below, and cron them (I personally user cron.hourly).
The scripts connect using $user and $password via json api (so the user needs API access, check that in the frontend) and creates the following graphs for all hosts linked to "HP Server" template.
For a detailed explanation of how the scripts work you can view the following post: http://www.zabbix.com/forum/showthread.php?t=26678
Go to http://support.hp.com and get the HP WBEM providers for you server model from the downloads section. After installation you may need to restart your server. If the providers are not properly installed you will get an alert from the HP System Wbem providers not installed trigger.
Go to http://support.hp.com and get the HP Smart Array Configuration Utility and HP Smart Array Configuration Utility CLI for your server model from the downloads section. After installation you must run the Setup HP Array Configuration utility and selec the local application mode.
This step is optional, but allows monitoring the physical disks temperature, if the disk/controller firmware supports it (you can always try to upgrade the firmware).
Gotchas
For best results you can download the whole Product Support Pack and install the most recent software and firmware versions for all components, except the HP SIM Agent which is not needed.
If you are using any other of my templates, make sure your hosts only have one active instance of the WIN Eventlog OOP item. If there is more than one, disable the extra items.
The eventlog triggers send an alert containing information on the most recent events logged. For these to show up in the alert make sure you include the following macros in the alert message:
Eventlog info: {ITEM.LASTVALUE}
If you have any issues importing this template, please upgrade to zabbix 2.0.2 (not released at the date of this post) and php 5.3 or higher.
Update 1
I can confirm that importing templates with Discovery Rules is broken in zabbix 2.0.1 and will be fixed in zabbix 2.0.2.
A partial fix for this, until zabbix 2.0.2 is released, can be achieved by SSH to your zabbix server and making the following changes to these files:
This will fix importing Discovery rules, item prototypes and trigger prototypes. Graph prototypes importing will still be broken, as they will get imported directly into the template, not in the discovery rules.
Update 2
Fixed a bug which caused the eventlog items to never be populated, by adding a new item in the template. Please download and import again.
Update 3
Decreased eventlog query time to 300s.
The template included uses active checks. Your zabbix agent must be configured for active checks otherwise the server won't receive any data..
If you are still running zabbix 1.8 or later you can try an older template: http://www.zabbix.com/forum/showthread.php?t=21104
Description
This solutions gives you complete monitoring of HP servers hardware just like you would get in HP SIM, but using zabbix. The template only uses HP WBEM providers and the SMART Array Configuration Utility CLI (not mandatory) so there is no need to install HP SIM or make any SNMP configuration.
The template uses active checks and so it works with servers that are behind NAT, without the need to configure any port forwardings. Finally, this template works on low-end servers like ML110 which have embedded controllers and for which HP SIM is not available.
A complete overview of triggers can be viewed at: http://img820.imageshack.us/img820/8566/overviewic.jpg
You get monitoring for the following:
- Eventlog entries generated by HP
- Fans
- Logical disks
- Physical disks
- Management processors (ILO)
- Memory modules
- NICs
- Processors
- Sensors
- Smart array controllers
You also get temperature graphs for disks and sensors like so:


Usage
Download the archive, extract the XML template, import it into the frontend and link the hosts to it.
Copy the vbs scripts to your zabbix agent folder and configure the following lines in your zabbix_agentd.conf file, replacing the path in the UserParameter with your zabbix agent installation path, restart the agent.
Code:
#hp discovery UserParameter = hp.discovery[*],cscript "C:\Program Files\Zabbix agent\zabbix_hp_discovery.vbs" //Nologo "$1" #hp wbem UserParameter = hp.wbem[*],cscript "C:\Program Files\Zabbix agent\zabbix_hp_wbem.vbs" //Nologo "$1" "$2" "$3" #hp system UserParameter = hp.system[*],cscript "C:\Program Files\Zabbix agent\zabbix_hp_system.vbs" //Nologo "$1" #eventlog query UserParameter = eventlog.query[*],cscript "C:\Program Files\Zabbix agent\zabbix_win_eventlog.vbs" //Nologo "$1" "$2" # allow weird chars in userparameters arguments UnsafeUserParameters=1
Code:
$user = "Admin"; ### username
$password = "zabbix"; ### password
$url = "http://127.0.0.1/api_jsonrpc.php"; ### intenal zabbix url
For a detailed explanation of how the scripts work you can view the following post: http://www.zabbix.com/forum/showthread.php?t=26678
- HP Sensor "ALL" temperature
- HP Physical disk "ALL" temperature
Go to http://support.hp.com and get the HP WBEM providers for you server model from the downloads section. After installation you may need to restart your server. If the providers are not properly installed you will get an alert from the HP System Wbem providers not installed trigger.
Go to http://support.hp.com and get the HP Smart Array Configuration Utility and HP Smart Array Configuration Utility CLI for your server model from the downloads section. After installation you must run the Setup HP Array Configuration utility and selec the local application mode.
This step is optional, but allows monitoring the physical disks temperature, if the disk/controller firmware supports it (you can always try to upgrade the firmware).
Gotchas
For best results you can download the whole Product Support Pack and install the most recent software and firmware versions for all components, except the HP SIM Agent which is not needed.
If you are using any other of my templates, make sure your hosts only have one active instance of the WIN Eventlog OOP item. If there is more than one, disable the extra items.
The eventlog triggers send an alert containing information on the most recent events logged. For these to show up in the alert make sure you include the following macros in the alert message:
Eventlog info: {ITEM.LASTVALUE}
If you have any issues importing this template, please upgrade to zabbix 2.0.2 (not released at the date of this post) and php 5.3 or higher.
Update 1
I can confirm that importing templates with Discovery Rules is broken in zabbix 2.0.1 and will be fixed in zabbix 2.0.2.
A partial fix for this, until zabbix 2.0.2 is released, can be achieved by SSH to your zabbix server and making the following changes to these files:
- Edit /var/www/html/include/classes/import/formatters/C20ImportFormatter.php
- Search for getDiscoveryRules function
- Modify the line:
- if (!empty[$host['discovery_rules'])) {
- with:
- if (!empty[$template['discovery_rules'])) {
This will fix importing Discovery rules, item prototypes and trigger prototypes. Graph prototypes importing will still be broken, as they will get imported directly into the template, not in the discovery rules.
Update 2
Fixed a bug which caused the eventlog items to never be populated, by adding a new item in the template. Please download and import again.
Update 3
Decreased eventlog query time to 300s.

Comment