您好,登錄后才能下訂單哦!
檢查包是否安裝,因為Nagios需要依賴這些包提供服務 [root@bogon nagios]# rpm -q gcc glibc glibc-common gd gd-devel xinetd openssl-devel [root@bogon nagios]#yum install -y gd gd-devel xinetd openssl-devel 建立nagios賬號 [root@bogon ~]# useradd nagios -s /sbin/nologin [root@bogon ~]# mkdir /usr/local/nagios [root@bogon ~]# chown -R nagios.nagios /usr/local/nagios/ 下載地址 你可以通過下面鏈接地址http://www.nagios.org/download/plugins/ 下載各種插件。 Nagios Addons是Nagios 擴展項目, 解壓安裝文件 [root@bogon nagios]# tar zxvf nagios-3.5.0.tar.gz [root@bogon nagios]# cd nagios 編譯安裝包 [root@bogon nagios]# ./configure --prefix=/usr/local/nagios/ [root@bogon nagios]# make all [root@bogon nagios]# make install [root@bogon nagios]# make install-init [root@bogon nagios]# make install-commandmode [root@bogon nagios]# make install-config 安裝Nagios 插件 [root@bogon nagios]# tar zxvf nagios-plugins-1.4.16.tar.gz [root@bogon nagios]# cd nagios-plugins-1.4.16 [root@bogon nagios-plugins-1.4.16]# ./configure --prefix=/usr/local/nagios [root@bogon nagios]#make && make install Apache基本配置 [root@bogon nagios-plugins-1.4.16]# cd /usr/local/apache/conf/ [root@bogon conf]# vim httpd.conf ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin" <Directory "/usr/local/nagios/sbin"> AuthType Basic Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthUserFile /usr/local/nagios/etc/htpasswd Require valid-user </Directory> Alias /nagios "/usr/local/nagios/share" <Directory "/usr/local/nagios/share"> AuthType Basic Options None AllowOverride None Order allow,deny Allow from all AuthName "nagios Access" AuthUserFile /usr/local/nagios/etc/htpasswd Require valid-user </Directory> [root@bogon conf]# htpasswd -c /usr/local/nagios/etc/htpasswd nagios 啟動Nagios服務 [root@bogon conf]# service nagios start
客戶端需要安裝nrpe插件
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。