[Mod-apache-snmp-users] empty values when querying mod_ap2_snmp
Monitor Apache using SNMP
Brought to you by:
eplx
From: Ricardo K. <ric...@gl...> - 2009-05-27 17:34:01
|
Hi, I have mod_ap2_snmp configured and installed. I can query apache at /ap2_snmp and I get an OK response. I have the tmp directory pointing to /tmp, which is world-writable. I can do a snmpwalk and it returns all the mib objects. This all tells me that the snmp stuff should be working. However, all the values I get as result are either 0 or empty (and the serverStatus oid always returns 'down'). >From my logs I can see the following: 1. When starting apache, I get [Wed May 27 15:05:49 2009] [error] AP2_SNMP: agentHttpAddress set to: [Wed May 27 15:05:49 2009] [error] 127.0.0.1:80 2. When querying using snmpget, I get ==> /var/log/httpd/ssl_access_log <== 127.0.0.1 - - [27/May/2009:15:06:07 +0000] "GET /" 400 558 ==> /var/log/httpd/ssl_request_log <== [27/May/2009:15:06:07 +0000] 127.0.0.1 - - "GET /" 558 3. When shutting down the snmp agent (which I have as foreground process and standalone), I get AP2-SNMP: HTTP Response Error. several times. After that, I found out the reason was mod_ap2_snmp was trying to connect to apache on port 443 even though I specified port 80 in the configuration. I changed the totalAccess.c file to make port 80 the default port, and after some recompilation of stuff it started working. However, I only get data for - serverState - agentHttpAccess All the rest of the attributes are returned either as 0 or empty, except for the serverUptime which returns nonsense (>14000 days). What can I do to find out what's going on? As I see the last release was on 2006, my question is.. is this module actually supposed to work with apache 2.2, or has it been discontinued? Thanks for the help. -- Ricardo Kirkner |