kamtec1 / nagioschecker

Automatically exported from code.google.com/p/nagioschecker
0 stars 0 forks source link

NagiosChecker only shows one warning/critical service per host #122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Nothing special is needed to reproduce the bug.

One serveur (which is up) with several critical services. Nagios checker
only shows the first critical service, and discard the other ones.

Running Nagios 3.1.0 ans NagiosChecker 0.14.2

Original issue reported on code.google.com by olivier....@gmail.com on 16 May 2009 at 7:54

GoogleCodeExporter commented 9 years ago
I was able to reproduce the problem with Firefox 3.6.17 on Linux, and a config 
as described below. There is, however, a yet-unidentified additional influence, 
possibly the exact browser version, because other people could *not* reproduce 
the problem in spite of switching to my exact config.

By adding alert()s to nagioschecker-parser.js::parseNagiosServicesHtml(), I 
found that host_downtime was determined correctly for the first service of 
every host, but was always true for subsequent services. Since I use the "Hosts 
and services in scheduled downtime" filter, these services thus got omitted 
from the display.

I was able to fix NagiosChecker for myself with the attached patch.

Original comment by Jochen.B...@LINworks.de on 17 May 2011 at 11:36

Attachments: