I have a Nagios Core installation on one server and a Grafana installation on another.
I want to use InfluxDB, Nagflux, Grafana and Histou but I can't seem to get it working on different servers.
I have followed this installation. At first I skipped the Grafana installation as I already had it installed on another machine.
When installing Histou I installed it on the Nagios server and copied the histou.js file to the Grafana server and changed the "var url =" to the Nagios servers IP like this:
Code: Select all
var url = 'http://10.100.1.230/histou/';
Code: Select all
curl -G "http://localhost/histou/?host=localhost&service=PING"
Code: Select all
curl -G "http://10.100.1.230/histou/?host=localhost&service=PING"
However when I try to verify that Histou is working in Grafana by doing this:
Code: Select all
http://10.100.1.40:3000/dashboard/script/histou.js?host=NAGIOS-MONITOR&service=PING
I just get
Code: Select all
HTTP code: 404
Message: error
Url: http://10.100.1.230/histou/index.php?host=NAGIOS-MONITOR&service=PING&height=&legend=true&annotations=false
I installed Histou as per the guide and copied the histou.js to the Grafana folder and changed the url to 10.100.1.230 and it just worked..
Am I missing something or is it not possible to have Grafana on a different server?
Note that there are no firewalls what so ever between the machines.
I even tried to install apache and php on the Grafana server and install Histou just like I did on the Nagios server but no luck there either.
Do I need to do some other configuration?
Any help here is appreciated.
Thanks,