GithubHelp home page GithubHelp logo

kldint / zabbix-hp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pfoo/zabbix-hp

0.0 0.0 0.0 36 KB

Tool providing HP server health value to a zabbix server using zabbix-sender

License: GNU General Public License v2.0

Perl 100.00%

zabbix-hp's Introduction

original scripts : https://github.com/jbfavre/python-zabbix/tree/master/scripts
original templates : https://github.com/jbfavre/python-zabbix/tree/master/templates

script were not modified a lot
templates however has been added a few triggers and items rules

uncompress scripts to /etc/zabbix/scripts/
uncompress zabbix-agent.conf.d to zabbix config dir: usually /etc/zabbix/zabbix-agent.conf.d/
uncompress sudoers.d content to /etc/sudoers.d/

To install the HP tools, refers to HP https://downloads.linux.hpe.com/SDR/project/mcp/, apt file is given in sources.list.d folder
Require : 
- hpasmcli (provided by hp-health)
- hpssacli (provided by hpssacli)

HP RAID script is slow, it may be required to change timeout to Timeout=10 in your zabbix agent config (/etc/zabbix/zabbix-agent.conf).

regexp must be added to http://yourzabbixserver/zabbix/adm.regexps.php (administration > general > regular expression) or discovery rules wont work (=99% of the templates)
There is however no way to export those regexp ... so you have to add them by hand
Example for :
HP Hardware Fans for discovery			regexp=^(fan)[0-9]+$				[Result is TRUE] [case sensitive=no]
HP Hardware Power for discovery			regexp=^(power)[0-9]+$				[Result is TRUE] [case sensitive=no]
HP Hardware Raid controller for discovery	regexp=^(controller)[0-9]+$			[Result is TRUE] [case sensitive=no]
HP Hardware Raid logical drive for discovery	regexp=^(logicaldrive)[0-9]+$			[Result is TRUE] [case sensitive=no]
HP Hardware Raid physical drive for discovery	regexp=^(physicaldrive)[0-9]I:[0-9]:[0-9]$	[Result is TRUE] [case sensitive=no]
HP Hardware Temperature for discovery		regexp=^(temp)[0-9]+$				[Result is TRUE] [case sensitive=no]

You can activate templates individually on your hosts, or just activate "BBC Template - HP Hardware" which is linked to the other ones
Templates are located into templates dir.

You might need to update the regexp for fan and temp to work properly in :
- hp_hard_fan.pl line 37
- hp_hard_temp.pl line 32

zabbix-hp's People

Contributors

kldint avatar pfoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.