Charts on Shinken via Graphite
Web agency » Digital news » Charts on Shinken via Graphite

Charts on Shinken via Graphite

A graph is a convenient way to see the evolution of a server's metrics. When we think of graph in the linux world, we usually think of Munin. Very powerful solution that I use in some cases. However, the latter has its own agent who will interrogate the target machine in order to obtain the data interpreted in the form of a graph afterwards. When you already have a monitoring server like Shinken, it's like doing the job twice. To overcome this we are going to set up a Graphite server.

The program is made up of three parts.

  • Whisper, a database engine
  • Carbon, listening server which takes care of inserting the data into the database
  • Graphite, web interface in python Django

Installation of Graphite

Installing dependencies

You also need a web server, with the library allowing you to load a Django program.

Graphite installation

Setting up the default configuration

Setting up the apache vHost

Warning, if you are on a more recent distribution with a version of Apache greater than 2.4, you must modify the vHost as follows

We activate the vHost

Database creation

We launch the Carbon server

Send test data

At this stage we have functional Graphite, if you go to the address of your server in HTTP you should see your test data appear on the web interface.

graphite-webui

Junction at Shinken

We install the Graphite module from the Shinken repositories

We add the graphite-ui module to the WebUI under /etc/shinken/modules/webui.cfg

We add the graphite module to the broker under /etc/shinken/brokers/broker-master.cfg

We configure the graphite module under /etc/shinken/modules/graphite.cfg

We configure access to the graphite webui under /etc/shinken/modules/ui-graphite.cfg

Be careful not to put a slash at the end of the URL, otherwise the links will not work.

And finally we relaunch Shinken to take all this into account.

You should now see your graphs in the tab of the same name on the Shinken web interface

shinken_graph_graphiteOn the Graphite web interface, your hosts should also appear.

graphite_webui

The “4 hours” tab may not work. This is because the timezone is not the same on the two components.

To adjust the shinken timezone, go to the /etc/shinken/shinken.cfg file

And for graphite you have to activate the configuration file by copying the example

And uncomment the line corresponding to the timezone value

 

 

 

★ ★ ★ ★ ★