Backend cache causing display issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Backend cache causing display issues

Post by BanditBBS »

Ok, so I have ~1400 hosts and ~31000 services and thought I should try the backend cache. I just added 4 new hosts and 23 services per host and applied the changes. After everything was back up I searched for the hostnames(all start with same set f characters) and hit enter. I was shown the list of the 4 hosts with all the services under them. Then when the screen auto refreshed they all disappeared. Then I searched again and nothing. Waited a few seconds and then I got the hosts with no services. Waited 30 seconds or so and got everything again. Then circle back around and do it all over again and again. Finally I just shut off the cache and all is fine.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Backend cache causing display issues

Post by jomann »

Interesting, is the location that you're storing the cache on just regular disk? We did testing on the back-end caching on a server of pretty similar size but didn't have display issues. Can you let me know what you set your back-end settings to with a screenshot of the settings screen just to see if something weird was going on?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Backend cache causing display issues

Post by BanditBBS »

I just checked the checkbox and hit save. I used the default including using ramdisk.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Backend cache causing display issues

Post by jomann »

Re-reading what you did, I think it may be a bug in the way that the caching works, so I will add it in TPS for us to test and look into in-house. It should have shown the services once the back-end cache was cleared based on the time value for sure (I think it's set to 5 min by default) but for whatever reason wasn't updating your cache files.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bheden
Product Development Manager
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Backend cache causing display issues

Post by bheden »

Bandit,

I couldn't replicate specifically what it is that you experienced, but it makes sense to me.

Technical geek stuff:

The way the cache works is that whenever XI is trying to grab a chunk of data, it checks to see if an existing cache (XML file) with the exact parameters is found. If it is found, and it is within the allotted time frame, it simply returns that data (the file likely didn't contain any references to your new hosts and services). This can potentially teeter back and forth a few times before the data is mostly accurate.

Solution:

The caching shouldn't really be used in a system that is going to change frequently. That seems to be begging for trouble. I should have listed this as an important note on the Backend Cache settings page. I'll update that now for 5.3.1.

Thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
Locked