Zero Totals in Search Results

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pdugas
Posts: 5
Joined: Wed Nov 13, 2013 8:57 pm

Zero Totals in Search Results

Post by pdugas »

I have to admit that after using Nagios for a decade, I've only recently used the search box that the web interface provides. I notice that while the tabular results work as expected, the Host and Service Status Totals blocks at the top of the page are always zero. Is this a known issue or am I doing something wrong?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Zero Totals in Search Results

Post by sreinhardt »

What version of nagios are you presently using? As far as I know, this is not a known or expected bug.
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.
pdugas
Posts: 5
Joined: Wed Nov 13, 2013 8:57 pm

Re: Zero Totals in Search Results

Post by pdugas »

This is the nagios-3.5.1-1.el6.x86_64 package from the EPEL repository. It's a relatively current RedHat EL6-x86_64 machine.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Zero Totals in Search Results

Post by sreinhardt »

OK, so fairly current on everything, just wanted to be sure this wasn't a 3.2 or something install. With that, are you seeing the count boxes on top empty with every page, or just when searching? Is there something specifically that you can do to recreate the issue?
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.
pdugas
Posts: 5
Joined: Wed Nov 13, 2013 8:57 pm

Re: Zero Totals in Search Results

Post by pdugas »

Zeros for all the host and all the service total fields with any search; even when there are matches that appear in the list of hosts further down in the page. This system has over 6000 hosts currently so maybe that's the issue. It's overly large.
pdugas
Posts: 5
Joined: Wed Nov 13, 2013 8:57 pm

Re: Zero Totals in Search Results

Post by pdugas »

Interesting. I just inadvertently left off the trailing * that I typically add when searching and got the first host that matched the search string and the totals were populated. When I search for "Foo", I get the first host that starts with "Foo" and the totals are correct. When I search for "Foo*", I get all the hosts that start with "Foo" and the totals are all zeros.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Zero Totals in Search Results

Post by slansing »

Hmm, sounds like either those dashlets are not getting updated, its taking a super long time to load, or you have some DB corruption, we can take care of our corruption worries by following this:

http://assets.nagios.com/downloads/nagi ... tabase.pdf

How many services are you monitoring? Can you send us a screenshot of Admin > Monitoring Engine Status
pdugas
Posts: 5
Joined: Wed Nov 13, 2013 8:57 pm

Re: Zero Totals in Search Results

Post by pdugas »

My installation is using the open-source software, not the Xi product, so there is no database here.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Zero Totals in Search Results

Post by abrist »

pdugas wrote:When I search for "Foo", I get the first host that starts with "Foo" and the totals are correct. When I search for "Foo*", I get all the hosts that start with "Foo" and the totals are all zeros.
Sounds like a bug. You may want to report it at: http://tracker.nagios.org
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.
Locked