Red Hat Bugzilla – Bug 710578
[apache] Bytes Received for Requests metrics are always 0
Last modified: 2013-09-01 15:21:57 EDT
The Apache plug-in exposes metrics such as the following:
Bytes Received for GET Requests per Minute
Bytes Received for POST Requests per Minute
Total Number of Bytes Received per Minute
When using the SNMP module to monitor Apache, the values for these metrics are always 0.
This is due to how Apache creates the response_rec used by the SNMP module. The issue is multi-part:
1) The request_rec provides various length values for the request body and a GET request will not (or should not) have a body, therefore, it is always expected to be 0
2) If request chunking is occurring (which is the case with most clients) Apache does not calculate the request body size.
At a minimum, this should be documented so that it is clear that these metrics will normally contain a 0 value.
Ideally, the SNMP module should be updated to support the calculation of the request size in a similar manner that mod_logio calculates a request size. It calculates it by gathering all the chunks and examining the request size as a whole instead of the body only.
requires documentation (per 10/7/2011 triage meeting with ccrouch)
Noted this in the section on setting up SNMP for Apache:
Bulk closing of BZs that have no target version set, but which are ON_QA for more than a year and thus are in production for a long time.