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: 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]. |