您好,登錄后才能下訂單哦!
服務是cactiEZ 有時間再安裝個最新的nagios
現在最新stable source nagios 4.0.2 解壓
mkdir /usr/local/nagios
到解壓目錄下./configure --prefix=/usr/local/nagios
useradd nagios
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start
/etc/init.d/httpd restart
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
下載plugin安裝包,解壓安裝plugin 不安裝plugin不能服務監控
cd nagios-plugins-1.5
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
添加環境變量
export PATH=$PATH:/usr/local/zabbix/bin:/usr/local/zabbix/sbin:/usr/local/nagios/bin:/usr/local/nagios/sbin:
添加開機啟動,使用chkconfig 就可以了
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。