搭建nagios监控
# tar zxvf nagios-3.2.0.tar.gz# pwd
/root/nagios/nagios-3.2.0
# ./configure --prefix=/usr/local/nagios/
# make all && make install
# make install-init
# make install-commandmode
# make install-config
# tar -zxvf nagios-plugins-1.4.14.tar.gz
# cd nagios-plugins-1.4.14
# ./configure --prefix=/usr/local/nagios/
# make && make install
# tar jxvf nagios-cn-3.2.0.tar.bz2
# cd nagios-cn-3.2.0
# ./configure
# make all && make install
# tar zxvf httpd-2.2.22.tar.gz
# mkdir /usr/local/apache2
# ./configure --prefix=/usr/local/apache2
# make && make install
# cd php-5.3.20
# mkdir /usr/local/php
# ./configure --prefix=/usr/local/php/ --with-apxs2=/usr/local/apache2/bin/apxs
# make && make install
User nagios
Group nagios
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
AddType application/x-httpd-php .php
#setting for nagios
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>
# /usr/local/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd yangqing
New password:
Re-type new password:
Adding password for user ixdba
# /etc/init.d/nagios start
有事秘书干,没事干秘书! 这是什么东东啊 路过,支持一下啦 为中华而努力读书!一包中华好多钱啊~~~ 恐龙说:“遇到色狼,不慌不忙;遇到禽兽,慢慢享受……” 解释就是掩饰,掩饰就是编故事!
页:
[1]