I don’t really know if this is a Grafana or Nagios related issue but I will try and ask here to see if anyone knows what’s wrong.
So I have Nagios (a network monitoring software) installed a a server and Grafana on a separate server as well.
I need to get the information from Nagios to Grafana and to get this working I need to use InfluxDB (you already know what this is), Nagflux (Connector for Nagios and InfluxDB) and Histou (A Grafana addon that creates graphs for Nagios data).
I’ve read this tutorial but this is for using Nagios and Grafana on the same server, which I’m not.
So when I put the histou.js on the Grafana server and change the url value to the IP of the Nagios server I just get the following error when entering this address: https://10.100.1.40:3000/dashboard/script/histou.js?host=NAGIOS-MONITOR&service=PING&orgId=1&refresh=30s
HTTP code: 404 Message: error Url: http://10.100.1.230/histou/index.php?host=NAGIOS-MONITOR&service=PING&height=&legend=true&annotations=false
Grafana IP: 10.100.1.40
Nagios IP: 10.100.1.230
But when I Install Grafana locally on the Nagios server and do the same thing it works.
I can also verify that it actually is working by running the following on both the Nagios server and Grafana server:
curl -G "http://10.100.1.230/histou/?host=NAGIOS-MONITOR&service=PING"
So if feels like it’s Grafana that doesn’t want to play right. Maybe the addon need Nagios to be installed?
I even tried to install Apache and PHP on the Grafana server and putting the Histou software there and pointing the config to this but it didn’t help.
Does anyone know what’s wrong here? Maybe this isn’t possible?