Monitor Tool(1)Nagios
1. Nagios Introduction
Nagios, Nagios-plugins
NRPE - watch the resources used on nodes machines.
NSCA - node machines send the info to nagios
NSClient++ - for windows
NDOUtils - Nagios info and event info into databases.
Support shell scripts, perl, ruby, Python
Graph Plugins (Nagiosgraph, Nagiosgrapher, PNP4Nagios
2. Install on Ubuntu
switch to root user first
>sudo -i
Install some tool
>sudo apt-get install build-essential
>sudo apt-get install apache2
>sudo apt-get install php5-gd
>sudo apt-get install libgd2-xpm-dev
>sudo apt-get install libapache2-mod-php5
>wget http://hivelocity.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.8/nagios-4.0.8.tar.gz
>wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
>useradd nagios
>groupadd nagcmd
>usermod -a -G nagcmd nagios
>tar zxvf nagios-4.0.8.tar.gz
>cd nagios-4.0.8/
>./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail
./configure --with-command-group=nagcmd --with-httpd-conf=/etc/apache2/conf.d
>make all
>make install
>make install-init
>make install-commandmode
>mkdir /etc/httpd
>mkdir /etc/httpd/conf.d/
>make install-webconf
>cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
>chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>/etc/init.d/nagios start
>sudo apt-get install apache2-utils
>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
>tar zxvf nagios-plugins-2.0.3.tar.gz
>cd nagios-plugins-2.0.3/
>/configure --with-nagios-user=nagios --with-nagios-group=nagios
>make
>make install
Add to the startup
>ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
It will not work, link the conf
>sudo ln -s /etc/httpd/conf.d/nagios.conf /etc/apache2/conf-enabled/nagios.conf
Cool, visit this Server with this URL
http://ubuntu-master2/nagios/
username=nagiosadmin, password=password
>sudo a2enmod cgi
>apt-get install libcgi-pm-perl librrds-perl libgd-gd2-perl
>apt-get install libnet-snmp-perl libperl5.18 libpq5 libradius1 libsensors4 libsnmp-base libsnmp30 libtalloc2 libtdb1 libwbclient0 samba-common samba-common-bin smbclient snmp whois libmysqlclient-dev libssl-dev
>wget http://softlayer-dal.dl.sourceforge.net/project/nagiosgraph/nagiosgraph/1.5.1/nagiosgraph-1.5.1.tar.gz
>wget http://hivelocity.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
>./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
Follow the document in http://wellsie.net/p/512/. I install nagios and some other parts. But I do not think it is easy to configure.
References:
http://www.chenshake.com/nagios-study-notes/
http://www.ibm.com/developerworks/cn/linux/1309_luojun_nagios/
http://www.programmer.com.cn/11477/
http://logstash.net/
http://www.chenshake.com/introduction-to-cacti-nagios-monitoring-system/
old blogs
http://sillycat.iteye.com/blog/563940
http://sillycat.iteye.com/blog/562719
http://sillycat.iteye.com/blog/562660
http://sillycat.iteye.com/blog/562659
http://blog.51yip.com/server/1394.html
http://blog.51yip.com/server/1389.html
http://www.nagios.org/download/core/thanks/?t=1409086924
http://wellsie.net/p/512/
- 浏览: 2551762 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
Monitor-nagios.part1.rar
Monitor-nagios.part2.rar Monitor-nagios.part2.rar
【标题】:“Tomcat Monitor Tool - Psi-Probe” 【描述】:“Tomcat Monitor Tool - Psi-Probe 是一款高效且功能丰富的Tomcat Web服务器监控工具,它允许管理员实时查看和管理Tomcat实例的状态,确保服务器健康...
1. **配置Nagios主配置文件**:编辑`/usr/local/nagios/etc/nagios.cfg`,配置你的主机名、服务间隔、报警阈值等。 2. **配置Nagios服务**:在`/usr/local/nagios/etc/services.cfg`中添加你想监控的服务,例如HTTP...
1. **check_ping**:检查主机是否可达,通过发送ICMP回显请求。 2. **check_http**:监测HTTP服务,确保网站可以正常访问。 3. **check_nrpe**:允许远程执行Nagios插件,用于检查其他Nagios客户端上的服务。 4. **...
### Nagios中文完整版知识点详解 #### 一、Nagios概述 - **定义与功能:** - **Nagios**是一款强大的开源系统及网络监视工具,它能够监控所指定的本地或远程主机以及服务,并提供异常通知等功能。Nagios支持多种...
1. 安装Nagios主程序: - 解压nagios-2.9.tar.gz并进入解压后的目录。 - 使用`./configure`指定安装路径和其他选项,例如`--prefix=/usr/local/nagios`,同时确保GD库的库文件和头文件路径正确。 - 创建nagios...
nagios : server monitor
1. **Nagios配置**: - **主机(Hosts)**:定义要监控的服务器或设备,包括主机名、IP地址、主机状态(如在线、离线)等信息。 - **主机组(Hostgroups)**:将多个主机归类到一组,方便批量管理监控配置。 - **...
1. 配置文件:Nagios的配置文件包括命令文件(checkcommands.cfg)、服务监控文件(advanced_services.cfg)、主机配置文件(hosts.cfg)等,它们定义了Nagios如何检查服务和主机。 2. 插件执行:Nagios在/libexec...
1. 创建专门的Nagios用户和组,以提高系统安全性。使用`useradd`命令创建名为nagios的用户,指定无登录shell `/sbin/nologin`,并创建一个名为nagios的组。接着,创建Nagios的安装目录`/usr/local/nagios`,并将其...
1. 监控网络服务:Nagios支持多种常见的网络服务监控。 2. 监控主机资源:能够监测CPU负载、磁盘空间等关键硬件资源。 3. 插件扩展:用户可以编写自己的插件,增加监控项。 4. 并行服务检查:提高监控效率,减少响应...
本文将深入探讨几种流行的开源监控工具:Nagios、Cacti、Tivoli、Zabbix以及SaltStack,特别是侧重于Zabbix在Linux环境下的部署。 Nagios是一款强大的网络监控系统,它能监视网络服务、主机和应用程序,当出现问题...
1. 解压并编译`nagios-plugins`,然后安装到指定目录。 2. 解压NRPE源码包,配置并编译,安装NRPE插件和守护进程。 3. 创建`nagios`用户和`nagcmd`组,并修改权限。 4. 修改`nrpe.cfg`配置文件,指定允许的IP地址和...
1. **基本概念**:Nagios由Nagios Core(主程序)和Nagios Plugins(插件)组成。Core负责整体调度和报警,而Plugins则执行具体的检查任务,两者协同工作实现全面监控。 2. **监控范围**:Nagios可监控硬件状态、...
sudo yum install nagios-plugins-1.4.11-1.x86_64.rpm nrpe-2.12-1.x86_64.rpm nrpe-plugin-2.12-1.x86_64.rpm ``` 安装完成后,需要配置NRPE以允许Nagios服务器访问,并且在Nagios服务器上配置监控项。NRPE配置...
1. 下载Nagios核心、Nagios Plugins和NRPE(Nagios Remote Plugin Executor): - Nagios核心:如nagios-3.2.3.tar.gz - Nagios Plugins:如nagios-plugins-1.4.15.tar.gz - NRPE:如nrpe-2.12.tar.gz 2. 解压缩...