mod-apache-snmp-users Mailing List for SNMP Apache Module (Page 2)
Monitor Apache using SNMP
Brought to you by:
eplx
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(2) |
Jul
(5) |
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(2) |
Oct
(1) |
Nov
|
Dec
(1) |
2009 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(27) |
Aug
(7) |
Sep
(4) |
Oct
|
Nov
|
Dec
(11) |
2010 |
Jan
(5) |
Feb
(4) |
Mar
(6) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
From: neil c. <cam...@ho...> - 2008-12-18 01:44:36
|
Hi I have installed the Mod-Apache-snmp following the instructions. However, whenever I try and snmpget anything, it always return Not running and zero values Example [root@local ~]# snmpget -v2c -c public 127.0.0.1 APACHE2-MIB::serverUptime.0 APACHE2-MIB::serverUptime.0 = STRING: Not running [root@local ~]# snmpget -v2c -c public localhost APACHE2-MIB::idleWorkers.0 APACHE2-MIB::idleWorkers.0 = Gauge32: 0 [root@local ~]# I know apache is running [root@local ~]# ps -ef | grep httpd root 6271 1 0 11:43 ? 00:00:00 /etc/httpd/bin/httpd -k start nobody 6272 6271 0 11:43 ? 00:00:00 /etc/httpd/bin/httpd -k start nobody 6273 6271 0 11:43 ? 00:00:00 /etc/httpd/bin/httpd -k start nobody 6274 6271 0 11:43 ? 00:00:00 /etc/httpd/bin/httpd -k start nobody 6275 6271 0 11:43 ? 00:00:00 /etc/httpd/bin/httpd -k start nobody 6276 6271 0 11:43 ? 00:00:00 /etc/httpd/bin/httpd -k start root 7920 5027 0 12:32 pts/1 00:00:00 grep httpd [root@local~[root@local~]# /etc/httpd/bin/apachectl -l Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_default.c mod_auth_basic.c mod_include.c mod_filter.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c [root@local~]# ]# /etc/httpd/bin/apachectl -v Server version: Apache/2.2.11 (Unix) Server built: Dec 16 2008 11:05:55 Can anyone help me please? Regards Neil _________________________________________________________________ Net yourself a bargain. Find great deals on eBay. http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Frover%2Eebay%2Ecom%2Frover%2F1%2F705%2D10129%2D5668%2D323%2F4%3Fid%3D10&_t=763807330&_r=hotmailTAGLINES&_m=EXT |
From: Rochford, M. <mr...@UT...> - 2008-10-30 16:40:40
|
Hello, I am attempting to install the module on a FreeBSD6.3 server running Apache 2.2. I have run into several problems getting this to install correctly. Has any one installed this on Apache 2.2/ Thanks, Mike |
From: Chad R. <ch...@za...> - 2008-07-14 04:50:21
|
On Jul13, 2008, at 7:43 PM, Esteban Pizzini wrote: > I haven't tested it on apache 2.2.. Did you install it under that > version?? No. Although my company is talking about upgrading from 2.0 to 2.2 to take advantage of a couple of features. Which is why I was hoping some bolder soul than I had beat me to it. > The error that you get is only an info message...so is a bug that it > appears like > "error"... it should be "info". I'll add the 503's to the list of > future features to add. Thanks > for the suggestion! Thanks! > snmp_agent_address is used for the connection between net-snmp and > apache. The > apache should know where the net-snmp agent is running. Ah! Makes much more sense to me now, thanks again! |
From: Esteban P. <est...@gm...> - 2008-07-14 02:43:49
|
Hello Chad.. I haven't tested it on apache 2.2.. Did you install it under that version?? The error that you get is only an info message...so is a bug that it appears like "error"... it should be "info". I'll add the 503's to the list of future features to add. Thanks for the suggestion! snmp_agent_address is used for the connection between net-snmp and apache. The apache should know where the net-snmp agent is running. Please let me know if you have another question. Regards, Esteban On Sun, Jul 13, 2008 at 4:22 PM, Chad Robinson <ch...@za...> wrote: > > First, thanks for the module, Esteban. I don't know how we've managed > to go so long without an snmp module for Apache. > > Second, a couple of questions: Has anyone tested this on Apache 2.2? > Are there any plans to add 503's to the list of supported errors? Can > you explain in a little more detail what the importance of > snmp_agent_address is? > > Finally, I get the following error when I start apache, but it doesn't > seem to be affecting anything (the module works fine), so it's not > really a big deal. But if I can get rid of it, I'd like to: > > [Sun Jul 13 12:13:02 2008] [error] AP2_SNMP: agentHttpAddress set to: > [Sun Jul 13 12:13:02 2008] [error] 127.0.0.1:80 > > I set my config file up exactly like someone else on this list: > > prompt> cat ap2-snmp.conf > > <Location /ap2_snmp> > Sethandler ap2_snmp > Order Deny,Allow > Deny from all > Allow from 127.0.0.1 > </Location> > > snmp_community <etcetera> > snmp_agent_address localhost > snmp_tmp_dir /var/www/ap2/ > snmp_version 2 > snmp_http_address 127.0.0.1 80 > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > 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: Chad R. <ch...@za...> - 2008-07-13 19:22:49
|
First, thanks for the module, Esteban. I don't know how we've managed to go so long without an snmp module for Apache. Second, a couple of questions: Has anyone tested this on Apache 2.2? Are there any plans to add 503's to the list of supported errors? Can you explain in a little more detail what the importance of snmp_agent_address is? Finally, I get the following error when I start apache, but it doesn't seem to be affecting anything (the module works fine), so it's not really a big deal. But if I can get rid of it, I'd like to: [Sun Jul 13 12:13:02 2008] [error] AP2_SNMP: agentHttpAddress set to: [Sun Jul 13 12:13:02 2008] [error] 127.0.0.1:80 I set my config file up exactly like someone else on this list: prompt> cat ap2-snmp.conf <Location /ap2_snmp> Sethandler ap2_snmp Order Deny,Allow Deny from all Allow from 127.0.0.1 </Location> snmp_community <etcetera> snmp_agent_address localhost snmp_tmp_dir /var/www/ap2/ snmp_version 2 snmp_http_address 127.0.0.1 80 |
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: 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: 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-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-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 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-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) |
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-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-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: 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) |
From: Alexander B. <ins...@gm...> - 2007-07-18 16:44:27
|
SGVsbG8gcGVvcGxlCgpJIGFtIGhhdmluZyBkaWZmaWN1bHR5IGluIGdldHRpbmcgbW9kX2FwYWNo ZV9zbm1wIHRvIHdvcmsuIFRoZSBzeW1wdG9tIGlzCnRoYXQgd2hlbiBJIHN0YXJ0IGFwYWNoZSwg SSBnZXQgdGhpcyBlcnJvciBtZXNzYWdlOgoKU3RhcnRpbmcgaHR0cGQ6CltXZWQgSnVsIDE4IDEz OjA2OjE4IDIwMDddIFtlcnJvcl0gQVAyX1NOTVA6IG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wLjEgODA4MAoKCi0tIApBbGV4YW5kZXIgQnVu a2VuYnVyZwp3d3cuaW5zcGlyYWNpw7MuY29tCk4gNDHCsDIyLjkyOScgRSAywrAwOC4zMzUnIDUx bQo= |
From: Esteban P. <est...@gm...> - 2007-06-23 02:23:23
|
Hello, Have you restarted apache and snmpd? What uptime value are you getting using mod_status? Regards, ESteban On 6/22/07, mat...@ne... <mat...@ne...> wrote: > > If i ask the server .1.3.6.1.4.1.19786.1.1.2.6.0 i get a wrong uptime, > like this: (" 13686 days 10 hours 46 mins 8 sec") > What should there be wrong? > > Best regards, > > FliTTi > > ------------------------------------------------------------------------- > 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 > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |
From: <mat...@ne...> - 2007-06-22 10:50:07
|
If i ask the server .1.3.6.1.4.1.19786.1.1.2.6.0 i get a wrong uptime, like this: (" 13686 days 10 hours 46 mins 8 sec") What should there be wrong? Best regards, FliTTi |
From: Esteban P. <est...@gm...> - 2007-05-24 02:50:19
|
Hi Matthias, Please check the following: 1) ap2_snmp.tmp file is created in the /tmp/ folder 2) response of http://localhost/ap2_snmp/ --> Ok Regards, Esteban On 5/23/07, Matthias Flittner <m.f...@gm...> wrote: > > Dear Users, > > My Problem is different to the posted Problems of this kind. If I start > the apache2 I get these errors: > > [Thu May 24 00:20:47 2007] [error] AP2_SNMP: agentHttpAddress set to: > > [Thu May 24 00:20:47 2007] [error] 127.0.0.1:80 > > > > If I trigger an snmpwalk I get only empty vars. > > > > I downloaded mod_ap2_snmp_1.04 and net-snmp-5.4 and compiled both. I used > you introduction. Then I configured the following files: > > > > */etc/apache2/mods-enabled/ap2_snmp.load* > > LoadModule ap2_snmp_module /usr/lib/apache2/modules/mod_ap2_snmp.so > > > > > > */etc/apache2/mods-enabled/ap2_snmp.conf* > > ExtendedStatus On > > <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 1 > > snmp_http_address 127.0.0.1 80 > > > > > > */etc/default/snmpd.conf* > > rwcommunity public 127.0.0.1 > > syslocation FD2 > > syscontact su...@ne... > > sysservices 76 > > > > > > The /tmp folder hast 777 rights. What could be my problem? Have anyone > here an idear? > > > > Please help me. > > > > Best Reagars, > > FliTTi > > ------------------------------------------------------------------------- > 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 > > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |
From: Matthias F. <m.f...@gm...> - 2007-05-23 22:41:09
|
Dear Users, My Problem is different to the posted Problems of this kind. If I start the apache2 I get these errors: [Thu May 24 00:20:47 2007] [error] AP2_SNMP: agentHttpAddress set to: [Thu May 24 00:20:47 2007] [error] 127.0.0.1:80 If I trigger an snmpwalk I get only empty vars. I downloaded mod_ap2_snmp_1.04 and net-snmp-5.4 and compiled both. I used you introduction. Then I configured the following files: /etc/apache2/mods-enabled/ap2_snmp.load LoadModule ap2_snmp_module /usr/lib/apache2/modules/mod_ap2_snmp.so /etc/apache2/mods-enabled/ap2_snmp.conf ExtendedStatus On <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 1 snmp_http_address 127.0.0.1 80 /etc/default/snmpd.conf rwcommunity public 127.0.0.1 syslocation FD2 syscontact su...@ne... sysservices 76 The /tmp folder hast 777 rights. What could be my problem? Have anyone here an idear? Please help me. Best Reagars, FliTTi |
From: Esteban P. <est...@gm...> - 2007-05-17 14:09:39
|
Hi, Are you getting any error in apache or snmp logs? REgards, Esteban On 5/17/07, Fabricio Klabunde <fab...@gm...> wrote: > > Hello. I' ve downloaded the SNMP-APACHE mod but I wasn't able to configure > it. I've checked that the module is being loaded by the apache, but there's > something missing at the > " snmpd.conf " and I can't find it. When I command " snmpget -v 1 -c > public localhost APACHE2-MIB::serverStatus.0 for instance, I receive a > message saying that the object is not recognized. > > Is there anybody available to help me? > > Thanks. > > Fabricio Klabunde. > ** > ------------------------------------------------------------------------- > 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 > > -- ---------------------------------------------------------------------- Esteban Pizzini (http://mod-apache-snmp.sourceforge.net) |
From: Fabricio K. <fab...@gm...> - 2007-05-17 13:57:41
|
Hello. I' ve downloaded the SNMP-APACHE mod but I wasn't able to configure it. I've checked that the module is being loaded by the apache, but there's something missing at the " snmpd.conf " and I can't find it. When I command " snmpget -v 1 -c public localhost APACHE2-MIB::serverStatus.0 for instance, I receive a message saying that the object is not recognized. Is there anybody available to help me? Thanks. Fabricio Klabunde. ** |
From: Esteban P. <est...@gm...> - 2007-01-05 14:04:59
|
Hello, Please check that you have the following line in your conf: ExtendedStatus Off it's used by mod_status and needed by mod_apache_snmp.. Regards, Esteban On 1/5/07, cba...@eu... <cba...@eu...> wrote: > > Thank you Esteban, > > Le vendredi 5 janvier 2007 14:20, Esteban Pizzini a =E9crit : > > Hello, > > > > Have you enabled mod_status in apache conf?? > > Yes, I did : > [root@server root]# grep snmp /usr/local/apache2/conf/httpd.conf > LoadModule ap2_snmp_module modules/mod_ap2_snmp.so > SetEnvIfNoCase Request_URI /ap2_snmp agent_snmp > CustomLog logs/access_log common env=3D!agent_snmp > <Location /ap2_snmp> > Sethandler ap2_snmp > snmp_community xxxxxxxxxxxxxxx > snmp_agent_address 127.0.0.1 > snmp_tmp_dir /tmp/ > snmp_version 1 > snmp_http_address 10.2.0.102 80 > > Regards, > > Christophe > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > 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) |
From: <cba...@eu...> - 2007-01-05 13:56:09
|
Thank you Esteban, Le vendredi 5 janvier 2007 14:20, Esteban Pizzini a =E9crit : > Hello, > > Have you enabled mod_status in apache conf?? Yes, I did : [root@server root]# grep snmp /usr/local/apache2/conf/httpd.conf LoadModule ap2_snmp_module modules/mod_ap2_snmp.so SetEnvIfNoCase Request_URI /ap2_snmp agent_snmp CustomLog logs/access_log common env=3D!agent_snmp <Location /ap2_snmp> Sethandler ap2_snmp snmp_community xxxxxxxxxxxxxxx snmp_agent_address 127.0.0.1 snmp_tmp_dir /tmp/ snmp_version 1 snmp_http_address 10.2.0.102 80 Regards, Christophe |