Nagios 安装方法
nagiso 安装方法
June 22, 2009 | By Fabio Milano In CentOS, Nagios, Tutorial |
Installing Nagios server and network monitoring on Centos 5 server
The official documentation can be found at http://support.nagios.com/knowledge-base/official-documentation .
Install necessary packages
yum install httpd gcc glibc glibc-common gd gd-devel php
Create Nagios User account and group
useradd -m nagios
Create nagcmd group for allowing external commands to be submitted through the web interface. Add both the nagios user and the apache user
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
Create Directory to store Nagios installation files
mkdir /opt/Nagios
Download Nagios and Plugins
Save file to directory /opt/Nagios
http://www.nagios.org/download/download.php
As of this writing Nagios 3.0.6 (Stable) and Nagios Plugins 1.4.13 (Stable)
Extract Files:
cd /opt/Nagios
tar xzf nagios-3.0.6.tar.gz
cd nagios-3.0.6
Compile and Configure Nagios
./configure --with-command-group=nagcmd
Compile Nagios:
make all
Compile binaries, init script, sample config files:
make install
make install-init
make install-config
make install-commandmode
** Do Not Start Nagios **
Nagios has now been installed to the directory /usr/local/nagios/
Install Nagios Web Interface:
make install-webconf
Nagios Web Interface installed to /usr/local/nagios/share ( http conf file added to /etc/httpd/conf.d/nagios.conf )
Create Web Interface Login User:
** This is not the most secure method **
We will create user “nagiosadmin” ( remember the password you assign !)
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Restart Apache:
service httpd restart
Install Nagios Plugins
Extract Files:
cd /opt/Nagios
tar xzf nagios-plugins-1.4.13.tar.gz
cd nagios-plugins1.4.13
Compile and Configure Nagios Plugins
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Configure nagiosadmin email address for alerts
vi /usr/local/nagios/etc/objects/contacts.cfg
email nagios@localhost ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
Verify the sample Nagios configuration files
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Total Warnings: 0
Total Errors: 0
Start Nagios
Enable Nagios to start at system startup / boot
chkconfig --add nagios
chkconfig nagios on
chkconfig httpd on
Start Nagios
service nagios start
Log into Web Interface
转载于:https://blog.51cto.com/532074/1113510
Nagios 安装方法相关推荐
- nagios安装与配置详解1
一.Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报 ...
- Nagios安装部署与Cacti整合文档超精细版本
Nagios安装部署与Cacti整合文档超精细版本 (2011-06-01 01:28) 分类: nagios监控 Nagios安装部署与Cacti整合文档 系统环境:CentOS5.4 文档版本:V ...
- Solaris10下Nagios安装
Solaris10下Nagios安装<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office&q ...
- CentOS6.5下的Nagios安装配置详解(图文)
最近因为,科研需要,接触上了Nagios,这里,我将安装笔记做个详解.为自己后续需要和博友们学习! VMware workstation 11 的下载 VMWare Workstation 11的安装 ...
- Centos 5.2安装Cacti并集成Nagios安装文档
Centos 5.2安装Cacti并集成Nagios安装文档 本文档并非原创,而是参照网上很多文档,因为不能全部都把参照者列举出来,特在此感谢我参照文档的作者. 一.本文档所用软件说明: . 二.系统 ...
- nagios安装使用指南
话不多说,下面开始,nagios具体的介绍,可以搜一下,这篇文章为作者在实际操作中整理出来,写出来的都是负责人的内容~如果不想在线看,可以下载文档,请点击文档下载 环境准备 此文档共用2台服务器的配置 ...
- nagios 安装部署试验
RH5.3 + VMware +Nagios 11 + 环境 虚拟机vmware + 操作系统 linux rh5.3 步骤 rpm -q gcc glibc glibc-common gd gd-d ...
- Nagios安装、配置、问题记录
http://youyizhimen.blog.163.com/blog/static/170917267201201745523276/ 本文描述了我在使用Nagios的过程中遇到的一些问题.解决办 ...
- Nagios安装与配置详解
一.Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报 ...
最新文章
- Visual C++ 2008入门经典 第十五章 在窗口中绘图
- this和self区别
- 马上就校招了,是要去实习还是复习?
- 基于DotNet构件技术的企业级敏捷软件开发平台 - AgileEAS.NET - 对象控制反转
- mavros 仿真与飞行器控制
- IT的2017,面临数字生态系统新挑战,该怎么办?
- mysql连接被拒绝 密码也对_解决Mysql数据库拒绝远程连接和忘记密码的问题
- Get value from agent failed: cannot connect to [[192.168.186.130]:10050]: [113]No route to host
- Java代码执行Linux脚本
- 复旦大学高等数学学习网站
- HTML:使用JavaScript(js)脚本在网页上显示实时时间
- 辽宁大学计算机专科专业,2020辽宁大学计算机考研专业课调整
- python爬虫 | 爬取巨潮资讯上的上市公司招股说明书
- 会计科目中的借贷理解
- j-4 大炮打蚊子 (10 分)关于最后一个测试点出错及本题的具体思路(以作者思路为例)
- 贝尔机:带你领略编码的魅力
- LVTTL与LVCMOS区别
- 集成学习(voting)
- 【java笔记】day01
- hi3798mv300救砖包_山东移动M301H数码视讯版-海思3798MV300芯片刷机包
热门文章
- java继承原理内存角度_Java编程的逻辑 (17) - 继承实现的基本原理
- jmeter html 乱码,JMeter3.0图形化HTML报告中文乱码问题处理
- php m grep event,linux grep (linux查找关键字在php出现的次数)
- 类重复引用_JVM类加载从JDK来看
- ES6入门——类的概念
- javascript base64加密解密
- 早上发现还是问题不断
- 诗与远方:无题(四十八)
- Android之使用MediaMetadataRetriever类获取视频第一帧
- centos php7 redis,CentOS7 yum快速安装php7.1+nginx+mysql+redis