icinga2使用check_snmp_idrac.py监控DELL硬件状态

icinga2使用check_snmp_idrac.py监控DELL硬件状态:

git clone https://github.com/pynag/pynag.git

cd pynag

python setup.py build

python setup.py install

yum install net-snmp-devel net-snmp-python

https://github.com/rsmuc/health_monitoring_plugins 下载health_monitoring_plugins-master.zip

unzip health_monitoring_plugins-master.zip

cp -rv health_monitoring_plugins-master/health_monitoring_plugins/snmpSessionBaseClass.py /usr/lib64/python2.6/

cp -rv health_monitoring_plugins-master/health_monitoring_plugins/check_snmp_idrac/check_snmp_idrac.py /usr/lib64/nagios/plugins/

/usr/lib64/nagios/plugins/check_snmp_idrac.py -H 10.0.0.3 -C "public" -V 2

注:
目前发现只能设置为public才生效,设为其它不生效

templat.conf和services.conf配置略

猜你喜欢

转载自blog.51cto.com/yangzhiming/2343933