status.cgi miscounting (2.0b and 1.2)

Ollie Cook ollie at uk.clara.net
Wed Jan 5 14:39:28 CET 2005


Hi,

I've noticed under 2.0b (and 1.2 previously) that status.cgi sometimes
miscounts the host and service status values.

For example, at present on a test platform I have:

Host Status Totals:
  Up           175
  Down           3
  Unreachable    0
  Pending        0
  All Problems   3
  All Types    178

However, filtering on host status type "Down" by clicking that link gives "0
Matching Service Entries Displayed". This is true... none of the hosts it's
monitoring are actually down.

Looking at status.c I can't see where this counting error is coming from:

      else if(temp_hoststatus->status==HOST_DOWN){
        total_down++;

and doesn't change the value of total_down anywhere else.

Has anyone seen this behaviour, or is anyone able to suggest where I look to
track down this bug?

Thanks,

Ollie

-- 
Ollie Cook         Systems Architect, Claranet UK
ollie at uk.clara.net               +44 20 7685 8065


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list