Bug#760176: libapache2-mod-perl2: SNMP process name for apache is wrong when modperl is enabled

Cyril Lavier cyril.lavier at davromaniak.eu
Mon Sep 1 16:09:53 UTC 2014


Package: libapache2-mod-perl2
Version: 2.0.7-3
Severity: normal
Tags: patch

Dear Maintainer,

I was trying to monitor apache2 process status using the hrSWRunTable on a server with modperl enabled.

I installed apache2 and libapache2-mod-perl2 packages, then I enabled the perl module.

The only way to "resolve" this issue was disabling perl module with "a2dismod perl", but now, my application which needs modperl doesn't work, so for now, I can't monitor apache2 through SNMP.

When the perl module is enabled, apache2 process name in SNMP (and in /proc/*/status) is "/usr/sbin/apach" ("/usr/sbin/apache2" trimmed to 15 characters), when perl module is disabled, apache2 process name in SNMP (and in /proc/*/status) is "apache2", which is the correct one.

I found a bug openned on Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=782369) which explains the whole issue and gives a patch to resolve this issue. 

I tried the patch on the source package for stable and testing, and it seems to "patch" well. I didn't test the build and running apache2 with this patched module. I will try it tomorrow.

I took a quick look at the source packages for stable, testing and experimental, and they all seems to have the issue.

I hope I was clear enough, don't hesitate to contact me if you need further information.

Thanks.

-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the pkg-perl-maintainers mailing list