HI,
I am currently working on a project to work out the real time energy
consumption and carbon usage of querying a single web page. For this I
have a LAMP stack on a Centos server for my R&D. I need to retrieve real
world values to be able to perform this research from Apache and then be
able to send them out via SNMP (or pump them straight into a Ganglia
stream). I will the handle and manipulate the data once this is done on
a separate box.
My research says that mod-apache-snmp is the best way to get SNMP
metrics out of Apache, so this looked like a good option for me...
However mod-apache-snmp does not want to install...
I am using httpd-2.4.6 and mod-apache-snmp 1.04 and have tried it with
net-snmp-5.1.42 and 5.7.2 and keep getting the same error messages which
are as follows:-
[root@localhost mod_ap2_snmp_1.04]# ./install.sh
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99
-prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread
-I/usr/local/apache2/include -I/usr/local/apr/include/apr-1
-I/usr/local/apr/include/apr-1 -I/usr/src/net-snmp-5.1.4.2/include/ -c
-o mod_ap2_snmp.lo mod_ap2_snmp.c && touch mod_ap2_snmp.slo
In file included from mod_ap2_snmp.c:33:
/usr/src/net-snmp-5.1.4.2/include/net-snmp/net-snmp-config.h:925:1:
warning: "PACKAGE_BUGREPORT" redefined
In file included from /usr/local/apache2/include/ap_config.h:138,
from mod_ap2_snmp.c:17:
/usr/local/apache2/include/ap_config_auto.h:210:1: warning: this is the
location of the previous definition
In file included from mod_ap2_snmp.c:33:
/usr/src/net-snmp-5.1.4.2/include/net-snmp/net-snmp-config.h:928:1:
warning: "PACKAGE_NAME" redefined
In file included from /usr/local/apache2/include/ap_config.h:138,
from mod_ap2_snmp.c:17:
/usr/local/apache2/include/ap_config_auto.h:213:1: warning: this is the
location of the previous definition
In file included from mod_ap2_snmp.c:33:
/usr/src/net-snmp-5.1.4.2/include/net-snmp/net-snmp-config.h:931:1:
warning: "PACKAGE_STRING" redefined
In file included from /usr/local/apache2/include/ap_config.h:138,
from mod_ap2_snmp.c:17:
/usr/local/apache2/include/ap_config_auto.h:216:1: warning: this is the
location of the previous definition
In file included from mod_ap2_snmp.c:33:
/usr/src/net-snmp-5.1.4.2/include/net-snmp/net-snmp-config.h:934:1:
warning: "PACKAGE_TARNAME" redefined
In file included from /usr/local/apache2/include/ap_config.h:138,
from mod_ap2_snmp.c:17:
/usr/local/apache2/include/ap_config_auto.h:219:1: warning: this is the
location of the previous definition
In file included from mod_ap2_snmp.c:33:
/usr/src/net-snmp-5.1.4.2/include/net-snmp/net-snmp-config.h:937:1:
warning: "PACKAGE_VERSION" redefined
In file included from /usr/local/apache2/include/ap_config.h:138,
from mod_ap2_snmp.c:17:
/usr/local/apache2/include/ap_config_auto.h:225:1: warning: this is the
location of the previous definition
mod_ap2_snmp.c: In function 'ap2_snmp_pre_mpm':
mod_ap2_snmp.c:332: error: 'ap_listen_rec' undeclared (first use in this
function)
mod_ap2_snmp.c:332: error: (Each undeclared identifier is reported only once
mod_ap2_snmp.c:332: error: for each function it appears in.)
mod_ap2_snmp.c:332: error: 'lr' undeclared (first use in this function)
mod_ap2_snmp.c:351: warning: implicit declaration of function 'unlink'
mod_ap2_snmp.c:359: warning: implicit declaration of function
'ap_get_server_version'
mod_ap2_snmp.c:359: warning: passing argument 3 of 'snmp_set' makes
pointer from integer without a cast
mod_ap2_snmp.c:75: note: expected 'char *' but argument is of type 'int'
mod_ap2_snmp.c:360: warning: passing argument 3 of 'snmp_set' discards
qualifiers from pointer target type
mod_ap2_snmp.c:75: note: expected 'char *' but argument is of type
'const char *'
mod_ap2_snmp.c:361: warning: passing argument 3 of 'snmp_set' discards
qualifiers from pointer target type
mod_ap2_snmp.c:75: note: expected 'char *' but argument is of type
'const char *'
mod_ap2_snmp.c:369: error: 'ap_listeners' undeclared (first use in this
function)
mod_ap2_snmp.c: In function 'ap2_snmp_handler':
mod_ap2_snmp.c:516: warning: implicit declaration of function 'ap_rputs'
mod_ap2_snmp.c:540: warning: passing argument 1 of
'ap_get_scoreboard_worker' makes pointer from integer without a cast
/usr/local/apache2/include/scoreboard.h:185: note: expected 'struct
ap_sb_handle_t *' but argument is of type 'int'
mod_ap2_snmp.c:540: error: too many arguments to function
'ap_get_scoreboard_worker'
mod_ap2_snmp.c:547: error: 'ap_my_generation' undeclared (first use in
this function)
mod_ap2_snmp.c: In function 'register_hooks':
mod_ap2_snmp.c:643: warning: implicit declaration of function
'ap_hook_log_transaction'
apxs:Error: Command failed with rc=65536
Any idea why this is?
Thanks
--
Kind regards,
Adam Nicholas Schemanoff
Technical Consultant
|