Re: [Mod-apache-snmp-users] [error] AP2_SNMP: agentHttpAddress set to: 127.0.0.1:8080
Monitor Apache using SNMP
Brought to you by:
eplx
From: Esteban P. <est...@gm...> - 2007-07-18 23:59:08
|
Hello, If you your listen directive in "httpd.conf" is set to 8080 you should set snmp_http_address 127.0.0.1 8080 This directive (snmp_http_address) is used by snmp agent to know which apache's port it should pool. According your example, you should set --> snmp_http_address 127.0.0.1 80 Regards, Esteban On 7/18/07, Alexander Bunkenburg <ins...@gm...> wrote: > > Hello people > > I am having difficulty in getting mod_apache_snmp to work. The symptom is > that when I start apache, I get this error message: > > Starting httpd: > [Wed Jul 18 13:06:18 2007] [error] AP2_SNMP: agentHttpAddress set to: > [Wed Jul 18 13:06:18 2007] [error] 127.0.0.1:8080 > [ OK ] > > I am using Red Hat Enterprise Linux. I have compiled and installed > net-snmp and mod_apache_snmp according to the instructions. The /tmp > directory exists, and contains a small ap2_snmp.tmp. > > http://127.0.0.1/ap2_snmp/ gives "OK", whereas > http://127.0.0.1:8080/ap2_snmp/ gives 404. > > I lack some basic understanding of how mod_apache_snmp is suppoed to work= . > > It is true that with snmpd will send http-requests to Apache at /ap2_snmp > and Apache replies with information about its state? So the protocol betw= een > Apache and snmpd is http as usual. > > What exactly is the configuration line: > snmp_http_address 127.0.0.1 8080 > ? > Do I have to configure anything else in httpd.conf for it to work? > How does snmpd know that it must send http requests to there? > Why do I get the error message, and why does mod_apache_snmp seem to > listen at port 80 when I configured 8080? > > So many questions, I am sorry. I'd be very grateful for some help. Many > thanks for contributing mod_apache_snmp which will be very useful once I = get > it to work. > Regards from Barcelona! > Alex > > > I paste the revelant part of my httpd.conf: > > ExtendedStatus On > > # mod_apache_snmp > # See http://mod-apache-snmp.sourceforge.net/english/docs.htm > <Location /ap2_snmp> > Sethandler ap2_snmp > Order Deny,Allow > Deny from all > Allow from 127.0.0.1 > </Location> > snmp_community public > snmp_agent_address localhost > snmp_tmp_dir /tmp/ > snmp_version 2 > #snmpv3_user user1 pass1 > snmp_http_address 127.0.0.1 8080 > > > -- > Alexander Bunkenburg > www.inspiraci=F3.com <http://www.inspiraci%C3%B3.com> > N 41=B022.929' E 2=B008.335' 51m > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mod-apache-snmp-users mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-apache-snmp-users > > --=20 ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |