Package: nagiosgrapher
Version: 1.7.1-1
Severity: normal
Tags: patch

Several of the small icons in nagios service status
only shows up as broken icons containing errors.

I tried to open the image link in another window, adjusting
the width to make it readable (width 20 is a bit small :-).

It then says 'RRD Error: end time: unparsable time:', and
then it dumps all parameters to it.

I found that rrd2-graph.cgi adds '--end=' without any end value.
So I tried this little hack:

------------------------------------------
--- /usr/lib/cgi-bin/nagios3/rrd2-graph.cgi     2009-02-16 02:56:32.000000000 
+0100
+++ /tmp/aa     2010-01-22 13:18:05.000000000 +0100
@@ -74,6 +74,7 @@
 $title   = param("title");
 $end     = param("end");
 $start   = param("start");
+$end = '-1' if $end eq '';
 
 $width      = param("width");
 $height     = param("height");

------------------------------------------

Works perfect, now I get nice icons for all services. :-)

So either should rrd2-graph.cgi stop adding --end without value
or should status.cgi in nagios really add an end
value (tried that, works also fine).



-- System Information:
Debian Release: squeeze/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-dell22 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagiosgrapher depends on:
ii  libc6                        2.10.2-5    Embedded GNU C Library: Shared lib
ii  libcalendar-simple-perl      1.20-1      Perl extension to create simple ca
ii  libgd-gd2-perl               1:2.39-2    Perl module wrapper for libgd - gd
ii  librrds-perl                 1.3.8-1     Time-series data storage and displ
ii  liburi-perl                  1.52-1      module to manipulate and access UR
ii  nagios-images                0.5         Collection of images and icons for
ii  nagios3                      3.2.0-4     A host/service/network monitoring 
ii  perlmagick [libimage-magick- 7:6.5.8.3-1 Perl interface to the ImageMagick 
ii  rrdtool                      1.3.8-1     Time-series data storage and displ
ii  ttf-dejavu                   2.30-2      Metapackage to pull in ttf-dejavu-
ii  ucf                          3.0025      Update Configuration File: preserv

nagiosgrapher recommends no packages.

Versions of packages nagiosgrapher suggests:
ii  netcat                        1.10-38    TCP/IP swiss army knife -- transit
ii  netcat-traditional [netcat]   1.10-38    TCP/IP swiss army knife

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to