nagios監控mysql(percona-monitoring-plugins)
監控端——nagios伺服器
被監控端——mysql主從
- 在被監控端安裝nagios-plugin、nrpe-3.2.0、和percona-monitoring-plugins外掛,在監控端安裝nagios-plugins和nrpe-3.2.0
nagios-plugins外掛上篇文章已經講過,在此不再重複,需要的可以去這裡檢視
安裝nrpe
wget https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-3.2.0/nrpe-3.2.0.tar.gz
tar xf nrpe-3.2.0.tar.gz
cd nrpe-3.2.0
./configure
make all
make install
make install-plugin
make install-config
make install-init
make install-plugin安裝percona外掛
wget https://www.percona.com/downloads/percona-monitoring-plugins/percona-monitoring-plugins-1.1.7/binary/tarball/percona-monitoring-plugins-1.1.7.tar.gz
useradd nagios -s /sbin/nologin #新增nagios使用者
tar xf tar xf percona-monitoring-plugins-1.1.7.tar.gz #解壓檔案
cd percona-monitoring-plugins-1.1.7
cd nagios/bin/
cp -ra * /usr/local/nagios/libexec/ #複製檔案到外掛目錄
cd /usr/local/nagios/libexec/
chown nagios. * #修改所屬使用者和組
未完待續。。。。