nagios安装步骤
2016-12-07 10:21
246 查看
nagios安装步骤
1、安装前准备
1)创建nagios用户和用户组
bin
etc
sbin
Share
libexec外部插件所在的目录
var
var/archives
var/rw
4、安装Nagios插件
1)安装apache与php
2)配置apache
1、安装前准备
1)创建nagios用户和用户组
useradd -s /usr/sbin/nologin nagios mkdir /usr/local/nagios chown -R nagios.nagios /usr/local/nagios2)开启系统sendmail服务
/etc/init.d/sendmail start2、编译安装nagios
tar -zxvf nagios-3.2.0.tar.gz cd nagios-3.2.0 ./configure --prefix=/usr/local/nagios make all make install make install-init make install-commandmode make install-config3、Nagios目录
bin
etc
sbin
Share
libexec外部插件所在的目录
var
var/archives
var/rw
4、安装Nagios插件
nagios-plugins-1.4.145、安装Nagios中文化插件
http://sourceforge.net/projects/nagios-cn/files/ ./configure 不指定安装路径,默认为/usr/local make all make install6、安装与配置apache和php
1)安装apache与php
2)配置apache
/usr/local/apache2/conf/httpd.conf修改
User nobody Group #-1修改为
User nagios Group nagios然后找到
DirectoryIndex index.html index.html.var修改为
DirectoryIndex index.html index.php增加:
AddType application/x-httpd-php .php在httpd.conf最后添加授权信息
#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>3)创建apache目录验证文件
/usr/local/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpassed ixdba 启动服务 /usr/local/apache2/bin/apachectl start http://ip/nagios/[/code]
相关文章推荐
- Nagios客户端的安装步骤(要监控的服务器)
- nagios的安装详细步骤
- nagios,ndoutils简要安装步骤及分布式监控环境的建立
- nagios服务端配置及客户的安装配置步骤分享[图文]
- Ubuntu下icinga(nagios衍生版)安装步骤
- 云监控 Nagios 安装步骤
- nagios安装步骤
- Ubuntu安装nagios步骤
- LINUX中nagios客户端安装步骤及遇到问题
- centreon+nagios+mysql 主节点安装全步骤验证
- nagios 安装步骤-1
- Linux Enterprise 5 安装nagios+nagiosql详细步骤
- 云监控 Nagios 安装步骤
- nagiosgraph安装步骤
- 利用Instant Client ,不安装oracle客户端使用sqlplus连接远程数据库的步骤
- WDM驱动程序入门(3)——安装步骤
- linux下cvs安装步骤
- [原创]Jabberd 1.4 Windows 环境安装步骤
- 三个.net做安装程序的步骤
- 安装SharePoint Portal Server的步骤