Griesbacher / histou

Adds templates to Grafana in combination with nagflux
GNU General Public License v2.0
35 stars 18 forks source link

How to view histou graphs in grafana #7

Closed scott-fed closed 7 years ago

scott-fed commented 7 years ago

Hello,

I just installed the OMD 2.20 labs edition today. I was trying to get data graphed in grafana and found that histou has templates to make it a bit easier. For some reason, I can not see these templates in grafana. I have read https://labs.consol.de/de/nagios/omd/2015/10/21/activate-nagflux.html and still I am unable to view them in grafana. I've also searched google for hours an I can't figure it out. I'm running this on SLES 11 SP3.

Griesbacher commented 7 years ago

You'll never see them in Grafana like you see your own dashboards. They are created just once and designed to be dynamic and not statical like normal Grafana dashboards. Have a look at this demo system: https://demo.thruk.org/thruk/cgi-bin/extinfo.cgi?type=2&host=icinga2&service=disk%20%2F&backend=cacb0#histou_th2/1480775405/1480865405/1 You can click on the graphpreview or action url to get directed to grafana. It's maybe easier to see it, then to explain in short.

scott-fed commented 7 years ago

Thanks for the explanation, Philip.

Griesbacher commented 7 years ago

You probably didn't update the actionurl or you didn't just click on the action icon.

It is possible to save all the generated dashboards in Grafana, and we tried that once to save them just to test Grafana, if you have a decent environment, Grafana won't make it ;)

Hope that helps. Greetings, Philip

scott-fed commented 7 years ago

I'm also using check_mk instead of thurk to configure and view host details. So I guess that is also why I didn't see the action icons which I saw in your thurk demo.

Griesbacher commented 7 years ago

That's true, at least I'm not aware of any integration of Histou in check_mk. like Thruk has. But therefore the check_mk guys are the ones which have to add the support in their webpage. But never the less you should be able to open the URL in Grafana, Thruck is just adding the Hostname and Servicename dynamically, if you do this on your own it works without any helping webpage. Like this: https://demo.thruk.org/demo5/grafana/dashboard/script/histou.js?host=icinga2&service=disk%20%2F&from=1480775405000&to=1480865405000 That's the destination of the Thruk actionurl, if you create this url on your system, it should also work.

scott-fed commented 7 years ago

Unfortunately OMD labs documentation didn't point this out. I appreciate your prompt responses. Thanks!

Griesbacher commented 7 years ago

Your welcome