Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Jan 2006 13:24:54 -0800
From:      Jeffrey Williams <jeff@sailorfej.net>
To:        freebsd-ports@freebsd.org
Subject:   Apache13+mod_ssl with mod_snmp
Message-ID:  <43BEE026.9020504@sailorfej.net>

next in thread | raw e-mail | index | archive | help
I installed the Apache12+mod_ssl port with "WITH_APACHE_MODSNMP" defined.

When Apache starts I get the following errors:

[Fri Jan  6 13:05:14 2006] [notice] Apache/1.3.34 (Unix) PHP/5.1.1 
configured -- resuming normal operations
[Fri Jan  6 13:05:14 2006] [notice] Accept mutex: flock (Default: flock)
Warning: NO communities defined, SNMP access set to 'public' !
[Fri Jan  6 13:05:14 2006] [notice] SNMP:ap_bucket_open: No such file or 
directory '/usr/local/logs//bucket.webserver.mysubdomain.mydomain.tld'
[Fri Jan  6 13:05:14 2006] [notice] SNMP: agent started and listens on 
port '0.0.0.0:161'
[Fri Jan  6 13:06:44 2006] [error] (2)No such file or directory: No such 
file or directory
[Fri Jan  6 13:08:14 2006] [error] (2)No such file or directory: No such 
file or directory
[Fri Jan  6 13:09:44 2006] [error] (2)No such file or directory: No such 
file or directory
[Fri Jan  6 13:11:14 2006] [error] (2)No such file or directory: No such 
file or directory
[Fri Jan  6 13:12:44 2006] [error] (2)No such file or directory: No such 
file or directory
[Fri Jan  6 13:14:14 2006] [error] (2)No such file or directory: No such 
file or directory
.....

The last error just keeps repeating.  Now at initially I had not put in 
a SNMP configuration directive because I wasn't ready to start using it. 
  However, after seeing the errors (by the way apparently while it is 
trying to find said directory the initial httpd process pegs the cpu), I 
tried putting the following in my httpd.conf file (per the mod_snmp 
website):

<SNMP 161>
        SNMPbuckets www/buckets
        SNMPcommunity mycommunity
        sysContact myemail
        sysLocation mylocation
</SNMP>

and I get these errors when trying to start Apache:

webserver# apachectl start
Syntax error on line 1059 of /usr/local/etc/apache/httpd.conf:
Invalid command '<SNMP', perhaps mis-spelled or defined by a module not 
included in the server configuration
/usr/local/sbin/apachectl start: httpd could not be started
webserver#

No my understanding is this module is compiled and "httpd -l" does list, 
infact twice:

webserver# httpd -l
Compiled-in modules:
   http_core.c
   mod_so.c
   mod_snmp.c
   mod_snmp.c
webserver#

So what am I doing wrong, and if I can't get it to work, is there a way 
to disable mod_snmp with recompiling?

Thanks
Jeff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43BEE026.9020504>