Using Nagios and Grafana on different servers
Posted: Wed Jul 18, 2018 4:21 am
Hello,
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:
When I verify that Histou is working by running this on the Nagios server:
And this on the Grafana server:
They both come back positive and seem to work.
However when I try to verify that Histou is working in Grafana by doing this:
The IP 10.100.1.40 is the Grafana server.
I just get
I don't know what else to do here to get it working so I thought that I could try and install Grafana on the Nagios server just to see if it would work, and it did..
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,
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=PINGI 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,