System OK or critical top right not always correct

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

System OK or critical top right not always correct

Post by WillemDH »

Hello,

A minor 'usability' issue. The Systems Ok, or Systems Critical on the top right of every Nagios XI page does not always seem to correctly show the state of the Nagios XI system. When I click apply configuration, sometimes the system still show critical while everything is up again. other times it shows Systems OK, but when I search for a host, I get an error saying 'No matching services found - showing matching hosts instead.'
Besides this, since the 2014 upgrade, when the system shows as critical, the red overflows the new Nagios XI status bar. See screesnhot.

The screenshot was taken during an apply configuration.
It would be nice if it was obvious with this system status option when an apply configuration was executed and when the system really has a problem.

I made a usability issue for it.. http://tracker.nagios.com/view.php?id=571

Grtz

Willem
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: System OK or critical top right not always correct

Post by abrist »

This has to do with the timing on the crons. The data that is represented by those icons is updated at the top of the minute by a cron. After that, your browser must hit its refresh timer to get the new state of them. So is certain circumstances, If you apply config right before the top of the minute, the monitoring engine icon may turn red as nagios is restarting and will not turn green until the cron runs again and the browser refreshes. There is a bit of spin up time with the ndo broker after a nagios restart. The larger the install and slower the database connection, the longer it will take for ndo to normalize. This is why after an apply config, it may take a short bit for all the objects to be accessible through the UI.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: System OK or critical top right not always correct

Post by WillemDH »

Ok, I can imagine there are limitations with cron. I thought it was some kind of bug and that it didn't work with cronjobs.
I was thinking it was sort of continuously running like a service with a while loop, which checks the status of critical services every 10 seconds or so. (I have no idea what kind of load this would give, so forgive me if I'm asking things that are not possible yet.. )

Or, check this article http://kvz.io/blog/2009/01/09/create-daemons-in-php/ where some sort of php daemon is used.

And the red of the system problem should not be over the black menubar?

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: System OK or critical top right not always correct

Post by sreinhardt »

Correct the red bar should not be over the black bar, that is definitely a css bug it looks like. I'm sure the load wouldn't be too high if we did it more often, and we could certainly provide instructions on how to alter that crons runtime, but we feel it generally refreshes fast enough for most systems. As for the different image\display when running apply config, I think that is an excellent idea, if you haven't already please submit a feature request for that!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: System OK or critical top right not always correct

Post by WillemDH »

Hey,

It is already in the feature request.

Thank you for listening. :) You can close this thread.

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
Locked