nagiosxi cookie

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

nagiosxi cookie

Post by eltrasimaco »

When browsing two nagiosxi instances (such as production and tests) , I get lots of session timeouts and, i suspect it has to do with the "nagiosxi" cookie, which overwrites last settings; is there any way to name this cookie in a "variable" fasion? (something like uname, or such)?
Thanks in advance
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosxi cookie

Post by tmcdonald »

Cookies should be tied to a specific domain, so unless you have your two XI servers on the same FQDN but different subdirectories, there is something else going on.
Former Nagios employee
eltrasimaco
Posts: 75
Joined: Thu Aug 02, 2012 7:15 am

Re: nagiosxi cookie

Post by eltrasimaco »

Actually, it's as you say, there are two nagios instances in the same domain, listening to different ports;I would be happy to know if there is any hint, trick or workaround, related to this subject.
Thanks!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: nagiosxi cookie

Post by mcapra »

Separate domains is the W3C compliant (§2) way of handling this particular case. Separate paths would also be a W3C compliant solution, but I don't think it will work in Nagios XI.

Shy of a re-write of how Nagios XI handles persistence, I believe it's a limitation of mod_php in this particular case. I think you could use connection pools in FPM to work around this, but Nagios XI isn't tested/developed against FPM. You'd also need to be relatively familiar with how FPM works as I doubt there's a convenient HowToForge article for this particular case.
Former Nagios employee
https://www.mcapra.com/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagiosxi cookie

Post by tmcdonald »

We generally recommend against running XI on the same server as our other software, but we might not have anything published specifically for running two XI instances on the same server. The same advice would apply here though, you are going to see issues like this at the very least. It's not something we support, and would require a rewrite of XI as @mcapra mentioned.
Former Nagios employee
Locked