In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Icinga2 monitors HP server hardware alarms through check_hpasm:
Https://labs.consol.de/nagios/check_hpasm/#download
Note: this tool can also be used to directly monitor Windows systems. Windows servers install hp-snmp-agents components by default when installing the system.
The monitored server needs to install hp-snmp-agents (and snmp)
# dpkg-I hp-snmp-agents_10.40-2909.34_amd64.deb
# / sbin/hpsnmpconfig
Enter y (that is, use the existing / etc/snmp/snmpd.conf configuration)
If you report the following error, the solution is also simple (not necessarily universal, what I have encountered is so good), execute / sbin/hpsnmpconfig, then select n, enter the same password twice (commutiy that) for the first item, and then enter by default.
CRITICAL-snmpwalk returns no product name (cpqsinfo-mib), wrong device
You can troubleshoot on redhat with the following command:
# snmpwalk-v 2c-c public 127.0.0.1 1.3.6.1.4.1.232
# / etc/init.d/hp-snmp-agents status (make sure it is start status)
# tar zxfv check_hpasm-4.7.5.4.tar.gz
# cd check_hpasm-4.7.5.4
#. / configure
# make
# make install
# cp-rv / usr/local/nagios/libexec/check_hpasm / usr/lib64/nagios/plugins/
# / usr/lib64/nagios/plugins/check_hpasm-H 10.0.0.3-C public-- perfdata=short
Configure icinga2
# vi / etc/icinga2/conf.d/templates.conf
Object CheckCommand "HP" {
Import "plugin-check-command"
Command = [PluginDir + "/ check_hpasm"]
Arguments = {
"- H" = "$address$"
"- C" = "$snmp$"
"--perfdata" = "$perf$"
}
}
: wq
# vi / etc/icinga2/conf.d/services.conf
Apply Service "HP" {
Import "generic-service"
Check_command = "HP"
Vars.snmp= "xxxxxxx"
Vars.perf= "--perfdata=short"
Assign where host.address = "10.0.0.2" | | host.address = "10.0.0.3"
}
: wq
# service icinga2 restart
You can also use the nrpe of the monitored end (not easily affected by the network)
Ubuntu:
# vi / etc/nagios/nrpe.cfg
Commanded [check _ hpubt] = / usr/lib/nagios/plugins/check_hpasm-H 127.0.0.1-C public
: wq
# service nagios-nrpe-server restart
Redhat:
# vi / etc/nagios/nrpe.cfg
Commanded [check _ hpubt] = sudo / usr/lib64/nagios/plugins/check_hpasm-H 127.0.0.1-C public
: wq
# service nrpe restart
# vi / etc/sudoers
Nagios ALL= (ALL) NOPASSWD:/usr/lib64/nagios/plugins/*
# Defaults requiretty (uncommented by default)
: wq
Configuration of icinga2 on the monitor side
Attached:
-v: displays server hardware details
-- hpasmcli / sbin/hpasmcli shows the health of the hard drive
-- snmpwalk / usr/bin/snmpwalk result is the same as-- hpasmcli
-- blacklist daac excludes the health of controller accelerators
Https://labs.consol.de/nagios/check_hpasm/
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.