icinga2使用check_snmp_idrac.py监控DELL硬件状态:
git clone
cd pynag
python setup.py build
python setup.py install
yum install net-snmp-devel net-snmp-python
下载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配置略