I have been working with getting a new monitoring system in place at work and have been working with Thruk. We have several remote locations with Nagios/Thruk servers, so I used autossh for reverse ssh tunnels and used livestatus to set up the Thruk backend (connection parameter in Backend configuration like so: localhost:portnumber). This works great. However, we have a remote site that is literally half way around the world from our Master Thruk server- when I added this remote NAgios/Thruk server to the backend configuration, accessing any links in Thruk related to host data , it takes about 6 to 10 seconds to load the page. Previously, access to the pages was just about instantaneous. I researched on how to increase responsiveness, and it seemed that the best idea was to install LMD.
I have been working with LMD for several days and have not been able to get it working properly. I decided to try to get it working by using OMD to set up the Thruk site, so I created another VM and set it up Thruk with OMD. Once everything was working, I attempted to set it up with LMD. I ran into the same issues. The symptoms/info are as follows:
-All connections under Thruk Backend Configuration pass the "test" button with a green check, but none of the backends are available in Thruk EXCEPT the Thruk Master backend (hosts do not show up at all on the site).
-These errors show up in the LMD log: site went offline: [*hostname*] bad response: 400
It seemed that the LMD setup was pretty straight forward, but I guess I am either doing something wrong, or my use of reverse SSH tunnels to connect the slaves to the master Thruk server will not work with LMD. One of the many things I tried was to set up was forwarding the livestatus port on the slaves to a Unix Socket on the Thruk Master, but I did not have any success with getting the forwarding itself working.. I tried this b/c the Thruk Master backend configuration uses a local Unix socket (Connection parameter is: /omd/sites/prod/tmp/run/live) and this is the only one that works with LMD enabled.
I appreciate any help anyone can offer or any assistance in troubleshooting as I am out of ideas..