Thread: [Mod-apache-snmp-users] [error] AP2_SNMP: agentHttpAddress set to: [error] 127.0.0.1:80
Monitor Apache using SNMP
Brought to you by:
eplx
From: Edge, S. <Sea...@mt...> - 2007-07-27 20:37:45
|
All of my MIBs are empty. I'm doing snmpwalks from the localhost. I followed the documentation on how to set this up but it's still not working. I'm running: - apache2.0.59=20 - mod_ap2_snmp_1.04 - net-snmp-5.4 Here's my pertinent Apache config: ------------- LoadModule ap2_snmp_module modules/mod_ap2_snmp.so ExtendedStatus On=20 <Location /ap2_snmp> Sethandler ap2_snmp Order Deny,Allow Deny from all=20 # For testing. Allow from all </Location> snmp_community private snmp_agent_address localhost snmp_tmp_dir /tmp/ snmp_version 1 #snmpv3_user user1 pass1 snmp_http_address 127.0.0.1 80 ------------- Any idea why it's throwing the error from the subject? I noticed in the mailing list archives that you said there should be some txt file in /tmp but I don't have that. For now, I'm running apache as root and /tmp is 777. Any help would be appreciated. Thanks, Sean This email (including any attachments) is for its intended-recipient's use only. This email may contain information that is confidential or privileged. If you received this email in error, please immediately advise the sender by replying to this email and then delete this message from your system. For further information and disclaimers that apply to this email, see [http://www.viacom.com/email_disclaimer.jhtml]. |
From: Derrick G. <dge...@id...> - 2007-09-12 14:43:57
|
I am also receiving the following error messages like others: [error] AP2_SNMP: agentHttpAddress set to: [error] 127.0.0.1:80 I have checked http://localhost/ap2_snmp and it returns an "ok" page. I have checked /tmp/ap2_snmp.tmp is being created and /tmp has 777 = permissions. I have tried using version 1.04 and 1.03 with the same results. I have restarted snmpd and when running snmpwalk against the apache2 mib = for status it returns that apache is down. HTTPD process still run even = with the error messages. Is there an issue in mod_ap2_snmp.c on line 298? It seems that the checks = on snmp_http_address will fail no matter what. I would really like to use this module since it seems to have great = potential. |
From: Esteban P. <est...@gm...> - 2007-09-12 17:27:37
|
Hi, did you restart apache after restarting snmpd?? The error appears once only when you restart apache2? Regards, Esteban On 9/12/07, Derrick Georgiades <dge...@id...> wrote: > > I am also receiving the following error messages like others: > > [error] AP2_SNMP: agentHttpAddress set to: [error] 127.0.0.1:80 > > I have checked http://localhost/ap2_snmp and it returns an "ok" page. > I have checked /tmp/ap2_snmp.tmp is being created and /tmp has 777 > permissions. > > I have tried using version 1.04 and 1.03 with the same results. > I have restarted snmpd and when running snmpwalk against the apache2 mib > for status it returns that apache is down. HTTPD process still run even > with the error messages. > > Is there an issue in mod_ap2_snmp.c on line 298? It seems that the checks > on snmp_http_address will fail no matter what. > > I would really like to use this module since it seems to have great > potential. > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Mod-apache-snmp-users mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-apache-snmp-users > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |
From: Derrick G. <dge...@id...> - 2007-09-12 17:52:27
|
I have restarted apache2 after my snmpd restart. I get the error every time I start or stop apache2. Snmpd is left running and is up before apache2 starts. Apache is listen on port 80. Thanks |
From: Esteban P. <est...@gm...> - 2007-09-13 13:54:01
|
Hi, That error is not an "error". It's only an info message but appears like an error. I will fix it on the next release. Are you getting other values when you try snmpdwalk ?? Can you send me the results?? Regards, Esteban On 9/12/07, Derrick Georgiades <dge...@id...> wrote: > > I have restarted apache2 after my snmpd restart. > I get the error every time I start or stop apache2. > Snmpd is left running and is up before apache2 starts. > Apache is listen on port 80. > > Thanks > > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |
From: Derrick G. <dge...@id...> - 2007-09-13 14:25:02
|
Here is my command for walking and the out put: localhost# snmpwalk -v1 -c public localhost APACHE2-MIB::serverStatus APACHE2-MIB::serverStatus.0 =3D INTEGER: down(0) I get null and zero values for all the other apache2 mib oids. Thanks |
From: Derrick G. <dge...@id...> - 2007-09-13 21:04:08
|
If I run snmpwalk or snmpget on the full name or oid I get a message like = this: localhost# snmpwalk -v1 -c public localhost .iso.org.dod.internet.private.e= nterprises.apache2-mib.apache2MIBInformation.serverName .iso.org.dod.internet.private.enterprises.apache2-mib.apache2MIBInformation= .serverName: Unknown Object Identifier (Sub-id not found: enterprises -> = apache2-mib If I "runsnmpd -Dmib_init" I see that the module for snmpd is loading = fine.=20 mib_init: initializing: snmp_mib Thanks Derrick |
From: Esteban P. <est...@gm...> - 2007-07-30 12:52:21
|
Hi! Please try http://localhost/ap2_snmp/ and check that you receive and OK. Then check if the file ap2_snmp.tmp is created in /tmp/.. Remember that you should start SNMPD before Apache. Regards, Esteban On 7/27/07, Edge, Sean <Sea...@mt...> wrote: > > All of my MIBs are empty. I'm doing snmpwalks from the localhost. > > I followed the documentation on how to set this up but it's still not > working. I'm running: > - apache2.0.59 > - mod_ap2_snmp_1.04 > - net-snmp-5.4 > > > Here's my pertinent Apache config: > ------------- > LoadModule ap2_snmp_module modules/mod_ap2_snmp.so > > ExtendedStatus On > > <Location /ap2_snmp> > Sethandler ap2_snmp > Order Deny,Allow > Deny from all > # For testing. > Allow from all > </Location> > > snmp_community private > snmp_agent_address localhost > snmp_tmp_dir /tmp/ > snmp_version 1 > #snmpv3_user user1 pass1 > snmp_http_address 127.0.0.1 80 > ------------- > > > Any idea why it's throwing the error from the subject? I noticed in the > mailing list archives that you said there should be some txt file in > /tmp but I don't have that. For now, I'm running apache as root and > /tmp is 777. Any help would be appreciated. > > Thanks, > Sean > > > > This email (including any attachments) is for its intended-recipient's > use only. This email may contain information that is confidential or > privileged. If you received this email in error, please immediately > advise the sender by replying to this email and then delete this message > from your system. For further information and disclaimers that apply to > this email, see [http://www.viacom.com/email_disclaimer.jhtml]. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Mod-apache-snmp-users mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-apache-snmp-users > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |
From: Edge, S. <Sea...@mt...> - 2007-07-30 18:00:07
|
Esteban, I just realized I replied only to you and not the list, sorry about that. My original reply is below. ap2_snmp.tmp IS being created in /tmp - I guess I expected it to be created soon after Apache started but it took a while. Now I'm getting these errors in the SNMPD logfile: =20 error on subcontainer 'interface container' insert (-1) could not create socket /proc/stat: Too many open files /proc/stat: Too many open files /proc/stat: Too many open files cannot open /proc/net/dev ... /proc/stat: Too many open files cannot open /proc/net/snmp ... /proc/stat: Too many open files could not create socket Apparently snmpd died soon after. We have room for quite a few open files: =20 # lsof | wc -l 1702 # cat /proc/sys/fs/file-max 209708 =20 By the way... I just noticed that ap2_snmp.tmp is now gone from /tmp again. I restarted Apache and it was gone and didn't come back... SNMPD is still running since I last started it. Thanks, Sean =20 ________________________________ From: Edge, Sean=20 Sent: Monday, July 30, 2007 10:36 AM To: 'Esteban Pizzini' Subject: RE: [Mod-apache-snmp-users] [error] AP2_SNMP: agentHttpAddress set to: [error] 127.0.0.1:80 Esteban, I receive the OK when going to ap2_snmp. However there is no file called ap2_snmp.tmp in /tmp. I always start SNMPd before Apache. Thanks for your reply. =20 I just noticed these messages in the snmpd logfile: c64 32 bit check failed c64 32 bit check failed c64 32 bit check failed c64 32 bit check failed =20 -Sean ________________________________ From: Esteban Pizzini [mailto:est...@gm...]=20 Sent: Monday, July 30, 2007 8:52 AM To: Edge, Sean Cc: mod...@li... Subject: Re: [Mod-apache-snmp-users] [error] AP2_SNMP: agentHttpAddress set to: [error] 127.0.0.1:80 Hi! Please try http://localhost/ap2_snmp/ and check that you receive and OK. Then check if the file ap2_snmp.tmp is created in /tmp/.. Remember that you should start SNMPD before Apache.=20 Regards, Esteban On 7/27/07, Edge, Sean <Sea...@mt...> wrote:=20 All of my MIBs are empty. I'm doing snmpwalks from the localhost. =09 I followed the documentation on how to set this up but it's still not working. I'm running: - apache2.0.59 - mod_ap2_snmp_1.04=20 - net-snmp-5.4 =09 =09 Here's my pertinent Apache config: ------------- LoadModule ap2_snmp_module modules/mod_ap2_snmp.so =09 ExtendedStatus On =09 <Location /ap2_snmp> Sethandler ap2_snmp=20 Order Deny,Allow Deny from all # For testing. Allow from all </Location> =09 snmp_community private snmp_agent_address localhost snmp_tmp_dir /tmp/ snmp_version 1=20 #snmpv3_user user1 pass1 snmp_http_address 127.0.0.1 80 ------------- =09 =09 Any idea why it's throwing the error from the subject? I noticed in the mailing list archives that you said there should be some txt file in=20 /tmp but I don't have that. For now, I'm running apache as root and /tmp is 777. Any help would be appreciated. =09 Thanks, Sean =09 =09 =09 This email (including any attachments) is for its intended-recipient's=20 use only. This email may contain information that is confidential or privileged. If you received this email in error, please immediately advise the sender by replying to this email and then delete this message from your system. For further information and disclaimers that apply to this email, see [http://www.viacom.com/email_disclaimer.jhtml]. =09 =09 ------------------------------------------------------------------------ -=20 This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mod-apache-snmp-users mailing list Mod...@li...=20 =09 https://lists.sourceforge.net/lists/listinfo/mod-apache-snmp-users =09 --=20 ----------------------------------------------------------------------=20 Esteban Pizzini (http://mod-apache-snmp.sourceforge.net)=20 This email (including any attachments) is for its intended-recipient's use only. This email may contain information that is confidential or privileged. If you received this email in error, please immediately advise the sender by replying to this email and then delete this message from your system. For further information and disclaimers that apply to this email, see [http://www.viacom.com/email_disclaimer.jhtml]. |
From: Esteban P. <est...@gm...> - 2007-08-03 02:27:58
|
Hi, Sorry for my delay... Did you try to compile net-snmp without ap2_snmp? are you still getting that log error?? I think that error (/proc/stat: Too many open files) is not related with ap2_snmp... Regards, Esteban On 7/30/07, Edge, Sean <Sea...@mt...> wrote: > > Esteban, > I just realized I replied only to you and not the list, sorry about that. > My original reply is below. ap2_snmp.tmp IS being created in /tmp - I guess > I expected it to be created soon after Apache started but it took a while. > Now I'm getting these errors in the SNMPD logfile: > > error on subcontainer 'interface container' insert (-1) > could not create socket > /proc/stat: Too many open files > /proc/stat: Too many open files > /proc/stat: Too many open files > cannot open /proc/net/dev ... > /proc/stat: Too many open files > cannot open /proc/net/snmp ... > /proc/stat: Too many open files > could not create socket > Apparently snmpd died soon after. We have room for quite a few open > files: > > # lsof | wc -l > 1702 > # cat /proc/sys/fs/file-max > 209708 > > By the way... I just noticed that ap2_snmp.tmp is now gone from /tmp > again. I restarted Apache and it was gone and didn't come back... SNMPD is > still running since I last started it. > > Thanks, > Sean > > ------------------------------ > *From:* Edge, Sean > *Sent:* Monday, July 30, 2007 10:36 AM > *To:* 'Esteban Pizzini' > *Subject:* RE: [Mod-apache-snmp-users] [error] AP2_SNMP: agentHttpAddress > set to: [error] 127.0.0.1:80 > > Esteban, > I receive the OK when going to ap2_snmp. However there is no file called > ap2_snmp.tmp in /tmp. I always start SNMPd before Apache. Thanks for your > reply. > > I just noticed these messages in the snmpd logfile: > c64 32 bit check failed > c64 32 bit check failed > c64 32 bit check failed > c64 32 bit check failed > > -Sean > > ------------------------------ > *From:* Esteban Pizzini [mailto:est...@gm...] > *Sent:* Monday, July 30, 2007 8:52 AM > *To:* Edge, Sean > *Cc:* mod...@li... > *Subject:* Re: [Mod-apache-snmp-users] [error] AP2_SNMP: agentHttpAddress > set to: [error] 127.0.0.1:80 > > Hi! > > Please try http://localhost/ap2_snmp/ and check that you receive and OK. > Then check if the file ap2_snmp.tmp is created in /tmp/.. > > Remember that you should start SNMPD before Apache. > > Regards, > Esteban > > On 7/27/07, Edge, Sean <Sea...@mt...> wrote: > > > > All of my MIBs are empty. I'm doing snmpwalks from the localhost. > > > > I followed the documentation on how to set this up but it's still not > > working. I'm running: > > - apache2.0.59 > > - mod_ap2_snmp_1.04 > > - net-snmp-5.4 > > > > > > Here's my pertinent Apache config: > > ------------- > > LoadModule ap2_snmp_module modules/mod_ap2_snmp.so > > > > ExtendedStatus On > > > > <Location /ap2_snmp> > > Sethandler ap2_snmp > > Order Deny,Allow > > Deny from all > > # For testing. > > Allow from all > > </Location> > > > > snmp_community private > > snmp_agent_address localhost > > snmp_tmp_dir /tmp/ > > snmp_version 1 > > #snmpv3_user user1 pass1 > > snmp_http_address 127.0.0.1 80 > > ------------- > > > > > > Any idea why it's throwing the error from the subject? I noticed in the > > mailing list archives that you said there should be some txt file in > > /tmp but I don't have that. For now, I'm running apache as root and > > /tmp is 777. Any help would be appreciated. > > > > Thanks, > > Sean > > > > > > > > This email (including any attachments) is for its intended-recipient's > > use only. This email may contain information that is confidential or > > privileged. If you received this email in error, please immediately > > advise the sender by replying to this email and then delete this message > > from your system. For further information and disclaimers that apply to > > this email, see [http://www.viacom.com/email_disclaimer.jhtml]. > > > > ------------------------------------------------------------------------- > > > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Mod-apache-snmp-users mailing list > > Mod...@li... > > https://lists.sourceforge.net/lists/listinfo/mod-apache-snmp-users > > > > > > -- > ---------------------------------------------------------------------- > Esteban Pizzini > (http://mod-apache-snmp.sourceforge.net) > > > This email (including any attachments) is for its intended-recipient's > use only. This email may contain information that is confidential or > privileged. If you received this email in error, please immediately > advise the sender by replying to this email and then delete this message > from your system. For further information and disclaimers that apply to > this email, see [http://www.viacom.com/email_disclaimer.jhtml]. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Mod-apache-snmp-users mailing list > Mod...@li... > https://lists.sourceforge.net/lists/listinfo/mod-apache-snmp-users > > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |