libapache2-mod-perl2 writes wrong process name in /proc/$$/status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fedora |
In Progress
|
Medium
|
|||
libapache2-mod-perl2 (Debian) |
New
|
Unknown
|
|||
libapache2-mod-perl2 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
# uname -a
Linux ---.com 3.2.0-24-generic #39-Ubuntu SMP Mon May 21 16:52:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/issue
Ubuntu 12.04 LTS \n \l
# dpkg-query -l|grep apache
ii apache2 2.2.22-1ubuntu1 Apache HTTP Server metapackage
ii apache2-mpm-itk 2.2.22-1ubuntu1 multiuser MPM for Apache 2.2
ii apache2-suexec 2.2.22-1ubuntu1 Standard suexec program for Apache 2 mod_suexec
ii apache2-utils 2.2.22-1ubuntu1 utility programs for webservers
ii apache2.2-bin 2.2.22-1ubuntu1 Apache HTTP Server common binary files
ii apache2.2-common 2.2.22-1ubuntu1 Apache HTTP Server common files
ii libapache2-
ii libapache2-mod-php5 5.3.10-1ubuntu3.1 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-rpaf 0.6-2 module for Apache2 which takes the last IP from the 'X-Forwarded-For' header
ii libapache2-
# apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built: Feb 13 2012 01:51:55
# ps axu|grep apache
root 9070 0.0 0.3 526708 99456 ? S 12:04 0:00 /usr/sbin/apache2 -k start
....
# cat /proc/9070/status
Name: /usr/sbin/apach
State: S (sleeping)
Tgid: 9070
...
The "Name:" must be "apache2". I have troubles in searching processes by name with some unpleasant consequences.
If prefork version of apache is installed, it shows correct process name.
affects: | ubuntu → apache2-mpm-itk (Ubuntu) |
Changed in libapache2-mod-perl2 (Debian): | |
status: | Unknown → New |
Changed in fedora: | |
importance: | Unknown → Medium |
status: | Unknown → In Progress |
Description of problem: An configuration entry to display the number of httpd processes running does not work on recent SNMP servers.
Version-Release number of selected component (if applicable): net-snmp- 5.7.1-2. fc16.x86_ 64
How reproducible: Enable public SNMP community and add the following entry in /etc/snmp/ snmpd.conf:
proc httpd 30 1
Steps to Reproduce: snmpd.conf 1.4.1.2021. 2"
1. Edit /etc/snmp/
2. Enable public SNMP community and add "proc httpd 30 1"
3. Restart snmpd by issuing "systemctl restart snmpd.service" as root
4. Run "snmpwalk -v 1 localhost -c public .1.3.6.
Actual results: MIB::prCount. 1 = INTEGER: 0 MIB::prErrorFla g.1 = INTEGER: error(1) MIB::prErrMessa ge.1 = STRING: No httpd process running
UCD-SNMP-
UCD-SNMP-
UCD-SNMP-
Expected results: MIB::prCount. 1 = INTEGER: 9 MIB::prErrorFla g.1 = INTEGER: noError(0) MIB::prErrMessa ge.1 = STRING:
UCD-SNMP-
UCD-SNMP-
UCD-SNMP-
Additional info:
The number of the httpd processes currently run in the system:
# ps -ef | grep -i httpd
root 1067 1 0 Jan16 ? 00:00:02 /usr/sbin/httpd -k start
apache 1078 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1079 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1080 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1081 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1082 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1083 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1084 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
apache 1085 1067 0 Jan16 ? 00:00:00 /usr/sbin/httpd -k start
The full snmpd.conf configuration is also attached for your convenience.