Nagios (Icinga) monitors HP server hardware information with the CHECK_HP plugin

Source: Internet
Author: User
Tags ming snmp icinga hp server


Nagios (Icinga) monitors HP server hardware information with the CHECK_HP plugin


Http://cpan.metacpan.org/authors/id/D/DT/DTOWN/Net-SNMP-v6.0.1.tar.gz

http://exchange.nagios.org/directory/plugins/hardware/server-hardware/hp-(COMPAQ)/check_hp/details


Monitored side:

$ sudo apt-get install SNMPD

$ sudo vi/etc/snmp/snmpd.conf (written under access control, it is partially removed above, except for the remainder of the access control)

Press A or I to enter edit mode

Com2sec readuser Default public (note community here is public, can be changed)

Group Readgroup v1 Readuser
Group Readgroup v2c Readuser

View SystemView included. 1.3.6.1.2.1.1
View SystemView included. 1.3.6.1.2.1.25.1
View all included. 1

Access Readgroup "" Any noauth exact none none

Press ESC to exit edit mode

: Wq (Save and exit)

$ sudo servcie snmpd restart


$ sudo vi/etc/apt/source.list

Press A or I to enter edit mode

Deb Http://downloads.linux.hp.com/downloads/ManagementComponentPack/ubuntu precise Current/non-free

Press ESC to exit edit mode

: Wq (Save and exit)

$ sudo apt-get update

$ sudo apt-get install hp-health hp-snmp-agents hpacucli


$ sudo vi/etc/snmp/snmpd.conf (added at the top, Ming is free to write)

Press A or I to enter edit mode

Dlmod cmax/usr/lib/libcmax64.so
Rwcommunity Ming 127.0.0.1
Rocommunity Ming 127.0.0.1
Trapcommunity Ming
Trapsink Ming

Press ESC to exit edit mode

: Wq (Save and exit)

$ sudo service snmpd restart

$ sudo hp-snmp-agents restart

Need to keep only one network port, the rest need to be banned from the network (sudo ifconfig eth1 down)



Monitoring side:


$ tar zxfv net-snmp-v6.0.1.tar.gz

$ CD net-snmp-v6.0.1

$ Perl makefile.pl

$ sudo make

$ sudo make install

$ cd

$ tar zxfv check_hp-2.9.tar.gz

$ CD check_hp-2.9

$ sudo cp check_hp/usr/local/nagios/libexec/

Verify that the following is available:

$/usr/local/nagios/libexec/check_hp-h is monitored by the IP (such as: 10.0.1.3, computer name can also)-C public (and the monitored end snmpd.conf file in the same community) ( Plus-D displays details)

The normal display is as follows:

COMPAQ/HP Agent check:overall System State OK


$ sudo vi/usr/local/nagios/etc/objects/commands.cfg


# command ' CHECK_HP '
Define Command{
Command_name CHECK_HP
Command_line $USER 1$/check_hp-h $HOSTADDRESS $-C $ARG 1$
}

: Wq

$ sudo vi/usr/local/nagios/etc/objects/ming.cfg


Define Service {

Use Generic-service
HOST_NAME ming,ming2
Service_description CHECK_HP
Check_command Check_hp!public
}

: Wq




This article from "Linux" blog, declined reprint!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.