ICINGA2 displaying images using graphite

Source: Internet
Author: User
Tags icinga


ICINGA2 displaying images using graphite


: Https://github.com/findmypast/icingaweb2-module-graphite


Software to download and install: Django, django-tagging, pyparsing, Python-whisper, Pytz, Mod_wsgi, Python-carbon, Python-twisted-core, Python-zope-interface, Python-zope-filesystem



Software Installation Brief (rpm-i)


# Unzip Icingaweb2-module-graphite-master.zip


# MV Icingaweb2-module-graphite/usr/share/icingaweb2/modules/graphite


# ICINGA2 feature Enable graphite


ICINGA2 page--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 ' (here garbled random knock)


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


Enter the middle of the account, email, password (log in later, do not log in line)


# service Carbon-cache Start


# Mkdir/etc/icingaweb2/modules/graphite


# Vi/etc/icingaweb2/modules/graphite/config.ini (here content can be copied from the ICINGA2 page 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$"

The This template was 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 "

The This template was used for the large image, macro $target $ can used.


: Wq


# Service httpd Restart


# Service ICINGA2 Restart



At this point to the ICINGA2 page to see the image is already graphite in the display






This article is from the "Linux" blog, so be sure to keep this source http://yangzhiming.blog.51cto.com/4849999/1740959

ICINGA2 displaying images using graphite

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.