ports/104033: nagios trends report images wrong size
Antoine Beaupre
anarcat at lethe.koumbit.net
Thu Oct 5 21:00:53 UTC 2006
>Number: 104033
>Category: ports
>Synopsis: nagios trends report images wrong size
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 05 21:00:44 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Antoine Beaupre
>Release: FreeBSD 6.1-SECURITY i386
>Organization:
Koumbit
>Environment:
System: FreeBSD lethe.koumbit.net 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Mon Aug 28 05:21:08 UTC 2006 root at builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
A recent ports collection with nagios 2.5
>Description:
When doing a report with trends.cgi, the image gets distorted and stretched out of proportions. That is because there is a static width=900 in the .cgi.
>How-To-Repeat:
Generate a trends report. Admire the streched image.
>Fix:
Just add this patch to files/patch-cgi-trends.c
--- cgi/trends.c.orig Thu Oct 5 16:05:10 2006
+++ cgi/trends.c Thu Oct 5 16:05:12 2006
@@ -742,7 +742,7 @@
if(backtrack_archives>0)
printf("&backtrack=%d",backtrack_archives);
printf("&zoom=%d",zoom_factor);
- printf("' BORDER=0 name='trendsimage' useMap='#trendsmap' width=900>\n");
+ printf("' BORDER=0 name='trendsimage' useMap='#trendsmap'>\n");
printf("</DIV>\n");
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list