Package: ganglia-monitor
Version: 3.7.2-4
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I'm running ganglia on debian bullseye. When I run "gmond --help"
or "gmetric --help", I get:

  -c, --conf=STRING     The configuration file to use for finding send channels 
                           (default=`/etc/gmond.conf')

The package delivers /etc/ganglia/gmond.conf:

root@bullseye:/usr/src/ganglia-3.7.2# dpkg -S /etc/ganglia/gmond.conf 
ganglia-monitor: /etc/ganglia/gmond.conf
root@bullseye:/usr/src/ganglia-3.7.2# LC_ALL=C dpkg -S /etc/gmond.conf 
dpkg-query: no path found matching pattern /etc/gmond.conf

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I tried running gmetric without option "-c". Gmetric looks then for a file
not delivered in the package:

root@bullseye:/usr/src/ganglia-3.7.2# gmetric 
Configuration file '/etc/gmond.conf' not found.

Unable to create ganglia send channels. Exiting.

   * What outcome did you expect instead?

I expected that the commands would look for the delivered configuration
file. The package from buster looks for the correct file and doesn't
need the "-c" option:

1 jochen@buster:~$ gmetric --help
gmetric 3.6.0
...
  -c, --conf=STRING     The configuration file to use for finding send channels 
                           (default=`/etc/ganglia/gmond.conf')

That looks like a regression for me. A cursory look at salsa hints
at commit 
https://salsa.debian.org/debian/ganglia/-/commit/594581d074beb0adc3fad1e0c0a1d380ae7e995a
"Simplify rules file.". The commit removed the option 
to configure: --sysconfdir=/etc/ganglia

        ./configure CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" 
LDFLAGS="$(LDFLAGS)" --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
                --prefix=/usr --mandir=\$${prefix}/share/man \
                --libdir=\$${prefix}/lib \
                --sysconfdir=/etc/ganglia \

I changed debian/rules accordingly (pseudo patch):

 override_dh_auto_configure:
         dh_auto_configure -- \
+                --sysconfdir=/etc/ganglia \
                 --with-gmetad

With that change applied --help shows /etc/ganglia/gmond.conf
and the error messages disappears.

I hope the description is clear enough. Thanks for your work
on ganglia.


-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ganglia-monitor depends on:
ii  adduser              3.118
ii  init-system-helpers  1.60
ii  libapr1              1.7.0-6
ii  libc6                2.31-12
ii  libconfuse2          3.3-2
ii  libganglia1          3.7.2-4
ii  libpcre3             2:8.39-13
ii  libtirpc3            1.3.1-1
ii  lsb-base             11.1.0
ii  zlib1g               1:1.2.11.dfsg-2

ganglia-monitor recommends no packages.

ganglia-monitor suggests no packages.

-- no debconf information

Reply via email to