[Nagios-devel] Availability cgi patch for known unscheduled down
Posted: Wed Apr 04, 2007 2:11 pm
--Apple-Mail-2--151028130
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=UTF-8;
delsp=yes;
format=flowed
Hi, I found that the availability cgi did not show the proper down =20
percentage for the know time unscheduled.
Here's the patch for it:
=EF=BF=BC
--=20
Sergio Guzm=C3=A1n
--Apple-Mail-2--151028130
Content-Type: multipart/mixed;
boundary=Apple-Mail-3--151028130
--Apple-Mail-3--151028130
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
charset=US-ASCII
Hi, I found that the availability cgi did not show the proper down percentage for the know time unscheduled.Here's the patch for it:
--Apple-Mail-3--151028130
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream; x-unix-mode=0644;
name=avail.c-fix-known-unscheduled-downtime.patch
Content-Disposition: attachment;
filename=avail.c-fix-known-unscheduled-downtime.patch
--- nagios-2-x-cvs/cgi/avail.c 2007-01-02 20:50:42.000000000 -0600
+++ nagios-2-x-cvs.1/cgi/avail.c 2007-04-04 16:05:23.000000000 -0600
@@ -4038,7 +4038,7 @@
/* down times */
printf("DOWN");
- printf("Unscheduled%s%2.3f%%%2.3f%%\n",time_down_unscheduled_string,percent_time_down_unscheduled,percent_time_down_known);
+ printf("Unscheduled%s%2.3f%%%2.3f%%\n",time_down_unscheduled_string,percent_time_down_unscheduled,percent_time_down_unscheduled_known);
printf("Scheduled%s%2.3f%%%2.3f%%\n",time_down_scheduled_string,percent_time_down_scheduled,percent_time_down_scheduled_known);
printf("Total%s%2.3f%%%2.3f%%\n",time_down_string,percent_time_down,percent_time_down_known);
--Apple-Mail-3--151028130
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1
<SPAN =
class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing:
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]