Icinga2使用graphite显示图像

下载地址:https://github.com/findmypast/icingaweb2-module-graphite

需要下载安装的软件:Django、django-tagging、pyparsing、python-whisper、pytz、mod_wsgi、python-carbon、python-twisted-core、python-zope-interface、python-zope-filesystem

软件安装略(rpm -i)

# unzip icingaweb2-module-graphite-master.zip

# mv icingaweb2-module-graphite /usr/share/icingaweb2/modules/graphite

# icinga2 feature enable graphite

icinga2页面——Configuration——Modules——graphite——enable

# mysql -u root -p‘*******‘

> create database graphite;

> grant all on graphite.* to [email protected]‘localhost‘ identified by ‘graphite‘;

> flush privileges;

> quit

# vi /etc/graphite-web/local_settings.py

SECRET_KEY = ‘jksjflsjfk‘     (此处乱码随便敲)

TIME_ZONE = ‘Asia/Shanghai‘

DATABASES= {

‘default‘: {

‘NAME‘: ‘graphite‘,

‘ENGINE‘: ‘django.db.backends.mysql‘,

‘USER‘: ‘graphite‘,

‘PASSWORD‘:‘graphite‘,

‘HOST‘: ‘127.0.0.1‘,

‘PORT‘: ‘3306‘

}

}

:wq

# /usr/lib/python2.6/site-packages/graphite/manage.py syncdb

中间输入个账号、邮箱、密码 (后面登录用的,不登录也行)

# service carbon-cache start

# mkdir /etc/icingaweb2/modules/graphite

# vi /etc/icingaweb2/modules/graphite/config.ini (此处内容可从icinga2页面enable graphite处的configuration复制)

[graphite]

metric_prefix = icinga2

base_url = http://zlinux3.ming.com/render?

legacy_mode = false

;if legacy mode is false (2.4 and newer):

service_name_template = "icinga2.$host.name$.services.$service.name$.$service.check_command$.perfdata.$metric$.value"

host_name_template = "icinga2.$host.name$.host.$host.check_command$.perfdata.$metric$.value"

;if legacy mode is true (pre 2.4):

;service_name_template = "icinga.$host.name$.services.$service.name$.$service.check_command$"

;host_name_template = "icinga.$host.name$.host.$host.check_command$"

;this template is used for the small image, macro $target$ can used.

graphite_args_template = "&target=$target$&source=0&width=300&height=120&hideAxes=true&lineWidth=2&hideLegend=true&colorList=049BAF"

;this template is used for the large image, macro $target$ can used.

:wq

# service httpd restart

# service icinga2 restart

此时到icinga2页面上看图像已经是graphite在显示了

时间: 2024-10-11 14:13:22

Icinga2使用graphite显示图像的相关文章

Grafana+Graphite搭建配置步骤

下载网址: http://grafana.org/download  (选择rpm包) #  rpm -i grafana-3.1.1-1470047149.x86_64.rpm # serivce grafana-server start 网址访问:http://ip:3000   默认用户名:admin   密码:admin Grafana和graphite结合 graphite及icinga2搭建略,可参见另外文档 登陆页面后--Data Sources--Add data source-

Centos 7 安装 icinga2

1.   通过 yum 安装icinga2  核心包 a)     Package Repositories # rpm --import  http://packages.icinga.org/icinga.key # curl -o/etc/yum.repos.d/ICINGA-release.repohttp://packages.icinga.org/fedora/ICINGA-release.repo # yum makecache b)    Installing Icinga 2

icinga2通过check_ping.pl插件生成可用性监控

下载地址: https://exchange.nagios.org/directory/Plugins/Network-Protocols/ICMP/check_ping-2Epl/details 修改脚本: # vi check_ping.pl(最后2行改成下面这样) my $loss = sprintf("%.3f",(100 - (100 * $nok/$pack))); printf("PING - Packet active = $loss%%, rta = $rt

icinga2监控netapp、ubuntu、windows的traffic流量

插件下载网址:https://github.com/cloved/check_traffic/blob/master/check_traffic.sh # mv check_traffic.sh /usr/lib64/nagios/plugins/ # chmod +x /usr/lib64/nagios/plugins/check_traffic.sh # cd /usr/lib64/nagios/plugins/ # cp check_traffic.sh check_traffic_in.

graphite 安装

依赖关系解决 sudo yum -y install bitmap bitmap-fonts Django pycairo python-devel python-ldap python-memcached mod_wsgi mod_python python-sqlite2 glibc-devel gcc gcc-c++ git openssl-devel  httpd memcached python-hashlib django-tagging  python-simplejson pip

[Android] 图像处理软件整合之处理ColorMatrix和Intend传递路径显示图像

    经过几门考试之后,终于有时间整合下自己的Anroid项目"随手拍"的图像处理部分了,主要是结合前面几篇文章讲解的各种android图像处理技术和PopupWindow布局,图像初步整合效果如下.由于该软件目前还未答辩,所以结束后会共享所有的源代码,可能需要一个月后吧,抱歉~               在"随手拍"中点击发布,有添加图片按钮,点击出现"选择本地图片"和"照相截拆选择",显示图片至另一个处理界面,底部五个

监控 graphite carbon diamond

监控: 1.检查服务可以性 2.性能指标检查 ganglia 专门做性能指标的工具 collectd  性能好 mrtg rrdtool    Round Robin datebase graphite安装: yum install graphite-web yum install python-carbon yum install python-whisper 启动carbon: /etc/init.d/carbon-cache restart 修改graphite配置: /etc/graph

icinga2对特定服务设置专门发邮件策略

icinga2对特定服务设置专门发邮件策略(如mysql.web等): # vi /etc/icinga2/conf.d/timeperiods.conf (也可以新建个TimePeriod) object TimePeriod "9to5" { import "legacy-timeperiod" display_name = "Icinga 2 9to5 TimePeriod" ranges = { "monday" =

icinga2 借助check_iostat.sh抓取linux服务器的diskIO(硬盘繁忙度)

下载地址:https://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Check-Iostat-Updated/details 对脚本进行修改(默认为$12,12为w_await值,14为%util值) UTIL=`cat $TMP | $AWK '{ sum += $14 } END { print sum / NR } '` 被监控端: 将改后的脚本拷到nrpe端的/usr/lib/nagios/plugins/