Redhat配置nagios-安裝nagios
作者:佚名
Redhat配置nagios:Nagios是監(jiān)控系統(tǒng),Nagios能監(jiān)控所指定的本地或遠(yuǎn)程主機(jī)以及服務(wù),同時(shí)提供異常通知功能等。這篇文章講述的是Redhat配置nagios
安裝nagios組件
本文講述的是:Redhat配置nagios。返回大綱。
安裝nagios
- [root@localhost src]# tar zxvf nagios-3.2.1.tar.gz
- [root@localhost src]# cd nagios-3.2.1
- [root@localhost nagios-3.2.1]#./configure --with-command-group=nagcmd --prefix=/usr/local/nagios
- [root@localhost nagios-3.2.1]# make all
- [root@localhost nagios-3.2.1]# make install
- [root@localhost nagios-3.2.1]# make install-init
- /usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
- /usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios
- [root@localhost nagios-3.2.1]# make install-config
- ……
- *** Config files installed ***
- Remember, these are *SAMPLE* config files. You'll need to read
- the documentation for more information on how to actually define
- services, hosts, etc. to fit your particular needs.
- [root@localhost nagios-3.2.1]# make install-commandmode
- /usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw
- chmod g+s /usr/local/nagios/var/rw
- *** External command directory configured ***
驗(yàn)證安裝在/usr/local/nagios,是否生成目錄bin etc sbin share var.
- [root@localhost ~]# cd /usr/local/nagios
- [root@localhost nagios]# ls
- bin etc sbin share var
【編輯推薦】
責(zé)任編輯:zhaolei
來源:
csdn