Package: drraw Version: 2.2b2-3 Severity: normal Tags: upstream
We use drraw to visualize RRD files that are populated by pnp4nagios. drraw can be configured to use the generated XML files from pnp. It fails however if the RRD file only contains one datasource. Simple patch: root@situla[~]# diff -u /usr/lib/cgi-bin/drraw/drraw.cgi /tmp/drraw.cgi --- /usr/lib/cgi-bin/drraw/drraw.cgi 2013-02-05 17:05:48.000000000 +0100 +++ /tmp/drraw.cgi 2013-02-05 17:05:38.000000000 +0100 @@ -4495,7 +4495,7 @@ $xml = new XML::Simple; $xml_file = $rrdfile; if ( $xml_file =~ s/rrd$/xml/g ) { - $data_xml = $xml->XMLin($xml_file); + $data_xml = $xml->XMLin($xml_file, ForceArray => 1); foreach $ds_xml ( @{$data_xml->{DATASOURCE}} ) { if ( $DSname == $ds_xml->{DS} ) { $DSname = $ds_xml->{NAME}; Thanks, Christopher -- System Information: Debian Release: 6.0.6 APT prefers stable APT policy: (700, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages drraw depends on: ii librrds-perl 1.4.3-1 time-series data storage and displ Versions of packages drraw recommends: ii apache2 2.2.16-6+squeeze10 Apache HTTP Server metapackage ii apache2-mpm-prefork [ 2.2.16-6+squeeze10 Apache HTTP Server - traditional n ii librcs-perl 1.05-4 Perl Object Class for Revision Con Versions of packages drraw suggests: pn collectd <none> (no description available) -- Configuration Files: /etc/drraw/drraw.conf changed [not included] -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org