Вики IT-KB

Пошаговые руководства, шпаргалки, полезные ссылки...

Инструменты пользователя

Инструменты сайта


draft:pavel-kozlov:icinga-monitoring-plugin-wmi

Установка плагинов Icinga 2 для поддержки WMI (черновик)

wmic

apt-get install autoconf gcc
wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2
tar -xvf wmi-1.3.14.tar.bz2
cd wmi-1.3.14/
nano GNUmakefile

после лицензионого соглашения добавить строчку:

GNUmakefile
ZENHOME=../..
make "CPP=gcc -E -ffreestanding"
mkdir /opt/monitoring/plugins/bin
cp Samba/source/bin/wmic /opt/monitoring/plugins/bin/

check_wmi_plus

apt-get install libnet-dns-perl libdatetime-perl libconfig-inifiles-perl libnumber-format-perl
mkdir check_wmi_plus
cd  check_wmi_plus
wget http://edcint.co.nz/checkwmiplus/sites/default/files/check_wmi_plus.v1.61.tar.gz 
tar -xvf check_wmi_plus.v1.61.tar.gz
cp check_wmi_plus.pl /opt/monitoring/plugins/libexec/
cp check_wmi_plus_help.pl /opt/monitoring/plugins/libexec/
cp -r etc/* /etc/ 
cp /etc/check_wmi_plus/check_wmi_plus.conf.sample /etc/check_wmi_plus/check_wmi_plus.conf
nano  /etc/check_wmi_plus/check_wmi_plus.conf
check_wmi_plus.conf
$base_dir='/opt/monitoring/plugins/libexec/';
$wmic_command="/opt/monitoring/plugins/bin/wmic";

проверка версий модулей Perl:

/opt/monitoring/plugins/libexec/check_wmi_plus.pl -d -d | head -n 17
draft/pavel-kozlov/icinga-monitoring-plugin-wmi.txt · Последнее изменение: 14.06.2018 13:48 — Алексей Максимов

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki