[Nagios-devel] Bug-Fix Patch for Avail.cgi
Posted: Thu Feb 16, 2006 1:58 pm
------=_20060216135825_37944
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hi All,
This patch fixes the problem with the Service Group summaries where the
columns (for a given Service Group row,) don't always add up to 100%.
(i.e., OK-Time + Warning-Time + Critical-Time + Unknown-Time != 100%)
The problem was that the indeterminate-time column was not being computed
and, when a relatively new service was displayed, the columns didn't
add-up.
It appears that this problem has been in all of the 2.0 release candidates
as well as the current 2.0 stable release.
Anyway, I finally got around to tracking it down, fixing and testing it
and it works as expected.
Attached is the diff for avail.c
Thanks,
Bob Ingraham
------=_20060216135825_37944
Content-Type: text/plain; name="avail-fix.diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="avail-fix.diff"
3756a3757
> percent_time_indeterminate=0.0;
3766a3768
> percent_time_indeterminate=(double)(((double)time_indeterminate*100.0)/(double)total_time);
------=_20060216135825_37944--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Hi All,
This patch fixes the problem with the Service Group summaries where the
columns (for a given Service Group row,) don't always add up to 100%.
(i.e., OK-Time + Warning-Time + Critical-Time + Unknown-Time != 100%)
The problem was that the indeterminate-time column was not being computed
and, when a relatively new service was displayed, the columns didn't
add-up.
It appears that this problem has been in all of the 2.0 release candidates
as well as the current 2.0 stable release.
Anyway, I finally got around to tracking it down, fixing and testing it
and it works as expected.
Attached is the diff for avail.c
Thanks,
Bob Ingraham
------=_20060216135825_37944
Content-Type: text/plain; name="avail-fix.diff"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="avail-fix.diff"
3756a3757
> percent_time_indeterminate=0.0;
3766a3768
> percent_time_indeterminate=(double)(((double)time_indeterminate*100.0)/(double)total_time);
------=_20060216135825_37944--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]