[Mod-apache-snmp-users] install mod-snmp-apache2 problems with httpd.conf
Monitor Apache using SNMP
Brought to you by:
eplx
|
From: luiscc1989 <lui...@gm...> - 2012-08-18 17:49:31
|
Hi everyone, firstly I'd like to apologize for my English
I'm writing this mail to request help with the install of mod-apache-snmp
v1.04 on Debian 6 Squeeze and Apache web server 2.2.16 and Net-snmp version
5.7.1
I'm following the tips and instructions of the web site and I just find a
mistake that shows me Apache when I tried to start it after the
configuration of httpd.conf
(I think that I don't have any problem at the previous steps)
*Syntax error on line 6 of /etc/apache2/httpd.conf:*
*SetHandler takes one argument, a handler name that overrides any other
configured handler*
*Action 'configtest' failed.*
*The Apache error log may have more information.*
* failed!*
I saw /var/log/apache2/error.log
*Sat Aug 18 14:19:53 2012] [notice] caught SIGTERM, shutting down*
*Created directory: /var/net-snmp*
*Created directory: /var/net-snmp/mib_indexes*
*MIB search path: $HOME/.snmp/mibs:/usr/local/share/snmp/mibs*
*Cannot find module (APACHE2-MIB): At line 1 in (none)*
*APACHE2-MIB::serverName.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverName.0*
*MIB search path: $HOME/.snmp/mibs:/usr/local/share/snmp/mibs*
*Cannot find module (APACHE2-MIB): At line 0 in (none)*
*APACHE2-MIB::serverName.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverName.0*
*APACHE2-MIB::serverTmpDir.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverTmpDir.0*
*APACHE2-MIB::agentHttpAddress.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::agentHttpAddress.0*
*APACHE2-MIB::serverStatus.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverStatus.0*
*APACHE2-MIB::serverVersion.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverVersion.0*
*APACHE2-MIB::serverBuilt.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverBuilt.0*
*APACHE2-MIB::serverRoot.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverRoot.0*
*APACHE2-MIB::serverPidfile.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverPidfile.0*
*APACHE2-MIB::serverRestart.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverRestart.0*
*APACHE2-MIB::totalServerPorts.0: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::totalServerPorts.0*
*APACHE2-MIB::serverPortNumber.1: Unknown Object Identifier*
*[Sat Aug 18 14:19:55 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 14:19:55 2012] [error] APACHE2-MIB::serverPortNumber.1*
*[Sat Aug 18 14:19:55 2012] [notice] Apache/2.2.16 (Debian)
PHP/5.3.3-7+squeeze8 with Suhosin-Patch configured -- resuming normal
operations*
*[Sat Aug 18 15:12:54 2012] [notice] caught SIGTERM, shutting down*
*APACHE2-MIB::serverStatus.0: Unknown Object Identifier*
*[Sat Aug 18 15:12:54 2012] [error] AP2_SNMP: Can't set MIB value.*
*[Sat Aug 18 15:12:54 2012] [error] APACHE2-MIB::serverStatus.0*
*[Sat Aug 18 15:12:55 2012] [warn] module ap2_snmp_module is already
loaded, skipping*
*[Sat Aug 18 15:12:55 2012] [notice] Apache/2.2.16 (Debian)
PHP/5.3.3-7+squeeze8 with Suhosin-Patch configured -- resuming normal
operations*
*[Sat Aug 18 15:18:36 2012] [notice] caught SIGTERM, shutting down*
*[Sat Aug 18 15:18:37 2012] [notice] Apache/2.2.16 (Debian)
PHP/5.3.3-7+squeeze8 with Suhosin-Patch configured -- resuming normal
operations*
It looks like that can't found APACHE2-MIB in: MIB search path:
$HOME/.snmp/mibs:/usr/local/share/snmp/mibs
So, Had I a bug in the installation?
Can I copy the MIB to this directory now?
What would be the best solution?
And also on the last line with agentHTTPaddress directive
*[Sat Aug 18 19:01:06 2012] [error] 192.168.1.10:161*
* ... waiting [Sat Aug 18 19:01:07 2012] [error] AP2_SNMP: agentHttpAddress
set to:*
*[Sat Aug 18 19:01:07 2012] [error] 192.168.1.10:161*
I'm not sure about the port of agent and if it's necessary edit other
configuration file
snmpd is running in port 161
netstat -lnp | grep snmp
udp 0 0 192.168.1.10:161 0.0.0.0:*
10170/snmpd
udp 0 0 0.0.0.0:162 0.0.0.0:*
10172/snmptrapd
I add the file of httpd.conf with this mail
Net-SNMP don't collect information, it doesn't show any response
# snmptranslate -m APACHE2-MIB -IR -On idleWorkers
.1.3.6.1.4.1.19786.1.1.2.4
# snmpwalk -v 1 -c public 192.168.1.10 .1.3.6.1.4.1.19786.1.1.2.4
#
I thank you in advance for any reply to help me!
I hope your advice
bye
|