[Nagios-devel] avail.cgi typo
Posted: Tue Aug 09, 2005 2:10 pm
This is a multi-part message in MIME format.
--------------090108060508090704050504
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ahoy.
I found a small bug in avail.c (more of a typo, really), causing
availability reports to show total downtime percentage in the
unscheduled field.
The attached patch takes care of it. Apply with patch -p1.
--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer
--------------090108060508090704050504
Content-Type: text/plain;
name="nagios-cgi-avail-typo.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-cgi-avail-typo.diff"
diff -urN ./cgi/avail.c /home/exon/Nagios/cgi/avail.c
--- ./cgi/avail.c 2005-08-02 12:36:57 +0200
+++ /home/exon/Nagios/cgi/avail.c 2005-01-19 12:27:24 +0100
@@ -4015,7 +4015,7 @@
/* down times */
printf("DOWN");
- printf("Unscheduled%s%2.3f%%%2.3f%%\n",time_down_unscheduled_string,percent_time_down_unscheduled,percent_time_down_unscheduled_known);
+ printf("Unscheduled%s%2.3f%%%2.3f%%\n",time_down_unscheduled_string,percent_time_down,percent_time_down_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);
--------------090108060508090704050504--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
--------------090108060508090704050504
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Ahoy.
I found a small bug in avail.c (more of a typo, really), causing
availability reports to show total downtime percentage in the
unscheduled field.
The attached patch takes care of it. Apply with patch -p1.
--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Lead Developer
--------------090108060508090704050504
Content-Type: text/plain;
name="nagios-cgi-avail-typo.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-cgi-avail-typo.diff"
diff -urN ./cgi/avail.c /home/exon/Nagios/cgi/avail.c
--- ./cgi/avail.c 2005-08-02 12:36:57 +0200
+++ /home/exon/Nagios/cgi/avail.c 2005-01-19 12:27:24 +0100
@@ -4015,7 +4015,7 @@
/* down times */
printf("DOWN");
- printf("Unscheduled%s%2.3f%%%2.3f%%\n",time_down_unscheduled_string,percent_time_down_unscheduled,percent_time_down_unscheduled_known);
+ printf("Unscheduled%s%2.3f%%%2.3f%%\n",time_down_unscheduled_string,percent_time_down,percent_time_down_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);
--------------090108060508090704050504--
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]