Your message dated Sat, 11 Oct 2025 06:49:07 +0000
with message-id <[email protected]>
and subject line Bug#699822: fixed in drraw 2.2b2-5
has caused the Debian Bug report #699822,
regarding drraw fails if pnp4nagios generates xml file with only one datasource
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
699822: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=699822
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: drraw
Source-Version: 2.2b2-5
Done: Andreas Tille <[email protected]>

We believe that the bug you reported is fixed in the latest version of
drraw, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <[email protected]> (supplier of updated drraw package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 01 Oct 2025 07:58:01 +0200
Source: drraw
Architecture: source
Version: 2.2b2-5
Distribution: unstable
Urgency: medium
Maintainer: Package Salvaging Team <[email protected]>
Changed-By: Andreas Tille <[email protected]>
Closes: 629118 699822 719019 720841 786752 1114820
Changes:
 drraw (2.2b2-5) unstable; urgency=medium
 .
   [ Andreas Tille ]
   * Maintain package in Salvage team
     Closes: #1114820
   * Point Homepage to Webarchive
   * Fake watch file since upstream site vanished
   * Standards-Version: 4.7.2 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Remove trailing whitespace in debian/copyright (routine-update)
   * d/copyright: DEP5
 .
   [ Ludovic Rousseau ]
   * Suppress warnings filling up Apache error log
     Closes: #786752
   * Use UTF-8 instead of the default ISO-8859-1
     Closes: #720841
   * Fix old Perl syntax
     Closes: #719019
 .
   [ Ivan Shmakov ]
   * Permit local user configuration
     Closes: #629118
 .
   [ Christopher Odenbach ]
   * Enable working with only one datasource
     Closes: #699822
Checksums-Sha1:
 ecc6839e283cb1d2be3916430e18c5626e07c286 1983 drraw_2.2b2-5.dsc
 1de825f88c7f13681c327835fcc5dc9ae59c6ef1 7408 drraw_2.2b2-5.debian.tar.xz
 25ca50ac3cbc309de929acadfed63a8415213e4c 5445 drraw_2.2b2-5_amd64.buildinfo
Checksums-Sha256:
 fab4100d76638faeb8f39e7e39aa0fc9a56a41b828bfce004d36e5c9556ef9b0 1983 
drraw_2.2b2-5.dsc
 fb7dffe009b157f6baaa1dc1837589a91ac30bb1d4db24a4e708f841bb85033f 7408 
drraw_2.2b2-5.debian.tar.xz
 bb80a6e6dbb3e1aad2053fd565c8259d8b02684840b75916e153f64ca99a04a2 5445 
drraw_2.2b2-5_amd64.buildinfo
Files:
 a67af3e9119aca0b2db590644cd7e03f 1983 web optional drraw_2.2b2-5.dsc
 1ab6613dd83b3474fed450ce5b0126ea 7408 web optional drraw_2.2b2-5.debian.tar.xz
 365ee7b422146a99e6ad824b94ca5254 5445 web optional 
drraw_2.2b2-5_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmjcw5kRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFxDA/+OrH/rZ0FSCVpS3sGrrHURsGlq2vXM4nh
l6KvYE300tn3dKLK8GSYuGxufRxfYLrDFb7RfuO39JncCNTuvhQDkWLjCdy9R07f
ANpzRGS92AIJH7Q+x/NgvdKjvs27MHAzzcK+49iZv2ZCwdU3dY+qNchBTLRDZ3f4
eucTrCZP+HPwhKAoJtLgge6ltT1aa0zSdkcVUTklGM6nfVUf8gixPyDeLAQW+liH
fobQQ9Ire4XJXKj4KM5TkIxhvBG/+mLQizCgWWzjOeIAMpkKnUXAqU5kfq5CK5nb
kOaNSZ6tWH+nZ2p1wnWW1oBP0MAwu2Z4uDJ64tSSeannJBa66LbMRKtidboa6aY9
Tf6ihIKm3svwp3PyFKsjTG50dGekzJ14lyfDUubU3zy6PKLoQKD6Fdsem5qzdUfE
rL4vNLWBTtyE+hySZTDae9eJsT+5auF4XdenGdloqdcfvyhIqx9MsdLoYu6IDnTu
HJ59IWHCJBv2BCjelqnTmtVAcIwEMQo4N1fykAl48/n/O7C4RqHWgrh9FzWW0oHW
7Se1TpyF4RRDlxPjzIVDmFrLGgv1pjiqAaKCjHphFbOVJWsyhJDTRaYF2gsjGOHP
yULElW6dTb1dKoeQotj4Vt1fG5aDf2HfHhK8CeqMURD0pR/cLpwg6NuUQBRxF+AT
dwr3ziftdyg=
=eBe2
-----END PGP SIGNATURE-----

Attachment: pgpj7eCdtTOUK.pgp
Description: PGP signature


--- End Message ---

Reply via email to