当前位置: 首页 > news >正文

开源Linux监控系统:Icinga

Blog: http://www.simlinux.com

其实Icinga是Nagios监控的一个分支,有两个分支版本Icinga1和Icinga2;Icinga除了完全兼容Nagios的插件和扩展甚至配置文件,在web接口和报告上有很大的改进,并且简化了插件的开发;Icinga1和Nagios的基础监控类似,增加了一些新的特性和修复了Nagios的一些bug
详细可参考:
https://www.icinga.org/icinga/icinga-1/features/
https://www.icinga.org/icinga/icinga-2/architecture/
下面基于Centos7来安装Icinga1:


一、安装LAMP环境
1.安装apache和php 
yum -y install httpd php php-pear php-xmlrpc php-xsl php-soap php-mysql php-pdo php-gd php-mbstring
防火墙放行httpd服务
firewall-cmd —add-service=http (临时放行)
firewall-cmd —permanent —add-service=http(永久放行,写入配置文件,系统重启后依然有效)
systemctl start http.service

vim /var/www/html/info.php
<?php
    phpinfo();
?>
<br>
测试php解析是否正常
vim /etc/php.ini
date.timezone= PRC

2.安装Mariadb

yum -y install mariadb-server mariadb
mysql_secure_installation
systemctl start mariadb
systemctl status mariadb

二、安装icinga监控工具

wget http://packages.icinga.org/epel/ICINGA-release.repo -O /etc/yum.repod/icinga.repo
rpm --import http://packages.icinga.org/icinga.key
yum  -y install icinga icinga-doc icinga-gui
htpasswd -cm /etc/icinga/passwd  geekwolf
systemctl start icinga
systemctl start httpd

三、安装Nagios插件

   rpm -Uvh http://ftp.ines.lug.ro/fedora/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
   yum -y install nagios-plugins nagios-plugins-all
   配置文件路径/etc/icinga,配置方式和nagios一样


   vim  /etc/icinga/cgi.cfg
   authorized_for_system_information=geekwolf
   authorized_for_configuration_information=geekwolf
   authorized_for_full_command_resolution=geekwolf
   authorized_for_system_commands=geekwolf
   authorized_for_all_services=geekwolf
   authorized_for_all_hosts=geekwolf
   authorized_for_all_service_commands=geekwolf
   authorized_for_all_host_commands=geekwolf

访问Web:http://192.168.117.129/icinga 

相关资源

Icinga官方文档 :http://docs.icinga.org
Icinga EPEL :http://packages.icinga.org/epel
Icinga安装包及vagrant box下载 :https://www.icinga.org/download
Centos7网络配置和服务管理参考: http://simlinux.com/blog/2014/08/12/centos7wang-luo-pei-zhi-he-fu-wu-guan-li/

本文转自    geekwolf   51CTO博客,原文链接:
http://blog.51cto.com/linuxgeek/1540788



相关文章:

  • 组策略故障实际案例排错
  • RHEL5.4编译安装LAMP
  • 生产环境监控mysql服务状态
  • 了解Handler,Looper, MessageQueue,Message的工作流程
  • 对BSD的新路由查找算法的理解
  • 验证文件中记录总行数是否与数据库文件同名表记录总数是否一致
  • 编写一个Linux虚拟网卡来实现类NVI
  • Windows下powershell可执行python
  • Css基本样式————文本
  • js 简单实现 LRU
  • DoS Attacks Prevention with TCP Intercept
  • NIOS2随笔——自定义IP(DPRAM)
  • Webpack入门教程十五
  • IPv6, DAD 工作原理详解
  • 解决configure: error: Please reinstall the libcurl distribution
  • angular组件开发
  • axios 和 cookie 的那些事
  • iOS仿今日头条、壁纸应用、筛选分类、三方微博、颜色填充等源码
  • JAVA多线程机制解析-volatilesynchronized
  • js正则,这点儿就够用了
  • Mac 鼠须管 Rime 输入法 安装五笔输入法 教程
  • Material Design
  • Redis的resp协议
  • tweak 支持第三方库
  • windows下如何用phpstorm同步测试服务器
  • 从零开始在ubuntu上搭建node开发环境
  • 使用 Xcode 的 Target 区分开发和生产环境
  • 使用Maven插件构建SpringBoot项目,生成Docker镜像push到DockerHub上
  • 湖北分布式智能数据采集方法有哪些?
  • ###STL(标准模板库)
  • #include
  • (4)通过调用hadoop的java api实现本地文件上传到hadoop文件系统上
  • (function(){})()的分步解析
  • (MATLAB)第五章-矩阵运算
  • (安全基本功)磁盘MBR,分区表,活动分区,引导扇区。。。详解与区别
  • (板子)A* astar算法,AcWing第k短路+八数码 带注释
  • (翻译)Quartz官方教程——第一课:Quartz入门
  • (附源码)springboot助农电商系统 毕业设计 081919
  • (一)使用IDEA创建Maven项目和Maven使用入门(配图详解)
  • (原创)boost.property_tree解析xml的帮助类以及中文解析问题的解决
  • (转)Google的Objective-C编码规范
  • (转)可以带来幸福的一本书
  • . NET自动找可写目录
  • .CSS-hover 的解释
  • .naturalWidth 和naturalHeight属性,
  • .net的socket示例
  • .NET文档生成工具ADB使用图文教程
  • /boot 内存空间不够
  • @angular/cli项目构建--http(2)
  • @requestBody写与不写的情况
  • [ 代码审计篇 ] 代码审计案例详解(一) SQL注入代码审计案例
  • [AIGC] Nacos:一个简单 yet powerful 的配置中心和服务注册中心
  • [BZOJ4016][FJOI2014]最短路径树问题
  • [C++]priority_queue的介绍及模拟实现
  • [excel与dict] python 读取excel内容并放入字典、将字典内容写入 excel文件