Package: mrtg
Version: 2.17.8+git20211022.f52e91e-1
Severity: normal

The Environment Variables available to External Monitoring Scripts are
changed significantly when running under systemd. USER and HOME are two
examples of useful variables that are missing.

They would normally be set by systemd if the unit had `User=` set, but
mrtg do not do this (because it wants to be able to create directories
on startup when the --fhs option is given).

/var/www/html/mrtg it should probably be created with postinstall, but
the other directories could be added to the systemd service file (along
with User=), and then systemd will automatically create them as required
(and automatically populate environment variables like USER and HOME).


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (700, 'testing'), (500, 'stable-updates'), (500, 
'stable-security')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.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 mrtg depends on:
ii  debconf [debconf-2.0]  1.5.78
ii  init-system-helpers    1.60
ii  libc6                  2.32-4
ii  libgd3                 2.3.0-2
ii  libsnmp-session-perl   1.14~git20201002.0dedded-1
ii  perl                   5.32.1-6

mrtg recommends no packages.

Versions of packages mrtg suggests:
ii  apache2 [httpd]       2.4.51-2
ii  links2 [www-browser]  2.25-1
pn  mrtg-contrib          <none>
ii  w3m [www-browser]     0.5.3+git20210102-6

-- Configuration Files:
/etc/cron.d/mrtg changed [not included]
/etc/mrtg.cfg [Errno 13] Permission denied: '/etc/mrtg.cfg'
/etc/mrtg/mrtg.cfg [Errno 13] Permission denied: '/etc/mrtg/mrtg.cfg'

-- debconf information:
* mrtg/conf_mods: true
  mrtg/own_user: true
* mrtg/create_www: true
  mrtg/fix_permissions: false

Reply via email to