Re: [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: 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) |