Здравейте,
Имам инсталиран Cacti на който се опитвам да инсталирам template който да чертае температурите на машината.
Чета
това от форума на cacti,но стигнах до извода че трябва да прекомпилирам net-snmp за да има поддръжка на lm sensors
Свалих си net-snmp от сайта им след което започнах конфигурирането
./configure --with-mib-modules="ucd-snmp/lmSensors"
Уш всичко е нормално поставям финалните редове за да видите
configure: creating ./config.status
config.status: creating Makefile
config.status: creating snmplib/Makefile
config.status: creating apps/Makefile
config.status: creating apps/snmpnetstat/Makefile
config.status: creating agent/Makefile
config.status: creating agent/helpers/Makefile
config.status: creating agent/mibgroup/Makefile
config.status: creating local/Makefile
config.status: creating testing/Makefile
config.status: creating man/Makefile
config.status: creating mibs/Makefile
config.status: creating net-snmp-config
config.status: creating net-snmp-create-v3-user
config.status: creating include/net-snmp/net-snmp-config.h
config.status: executing libtool commands
config.status: executing default commands
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
SNMP Versions Supported: 1 2c 3
Building for: linux
Net-SNMP Version: 5.5
Network transport support: Callback Unix Alias TCP UDP
SNMPv3 Security Modules: usm
Agent MIB code: ucd-snmp/lmSensors default_modules => util_funcs/header_simple_table snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host
MYSQL Trap Logging: unavailable
Embedded Perl support: enabled
SNMP Perl modules: building -- embeddable
SNMP Python modules: disabled
Authentication support: MD5 SHA1
Encryption support: DES AES
---------------------------------------------------------
Обаче след това като изпълня make и идва проблема
"make"" и етo резултата
компилира около 1 мин и ето финалните редове тоест със самите грешки
libtool: link: ranlib .libs/libnetsnmphelpers.a
libtool: link: ( cd ".libs" && rm -f "libnetsnmphelpers.la" && ln -s "../libnetsnmphelpers.la" "libnetsnmphelpers.la" )
: libnetsnmphelpers.la
make[2]: Leaving directory `/root/net-snmp-5.5/agent/helpers'
making all in /root/net-snmp-5.5/agent/mibgroup
make[2]: Entering directory `/root/net-snmp-5.5/agent/mibgroup'
/bin/sh ../../libtool --mode=compile gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.10.1/i486-linux-thread-multi/CORE -c -o ucd-snmp/lmSensors.lo ucd-snmp/lmSensors.c
libtool: compile: gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -g -O2 -Ulinux -Dlinux=linux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.10.1/i486-linux-thread-multi/CORE -c ucd-snmp/lmSensors.c -fPIC -DPIC -o ucd-snmp/.libs/lmSensors.o
ucd-snmp/lmSensors.c: In function '_sensor_load':
ucd-snmp/lmSensors.c:943: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
ucd-snmp/lmSensors.c:943: error: 'data' undeclared (first use in this function)
ucd-snmp/lmSensors.c:943: error: (Each undeclared identifier is reported only once
ucd-snmp/lmSensors.c:943: error: for each function it appears in.)
ucd-snmp/lmSensors.c:964: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
/usr/local/include/sensors/sensors.h:128: note: expected 'const struct sensors_chip_name *' but argument is of type 'int *'
ucd-snmp/lmSensors.c:964: error: too few arguments to function 'sensors_get_detected_chips'
ucd-snmp/lmSensors.c:973: error: 'SENSORS_NO_MAPPING' undeclared (first use in this function)
ucd-snmp/lmSensors.c:974: error: incompatible type for argument 1 of 'sensors_get_label'
/usr/local/include/sensors/sensors.h:104: note: expected 'const struct sensors_chip_name *' but argument is of type 'sensors_chip_name'
ucd-snmp/lmSensors.c:974: error: too many arguments to function 'sensors_get_label'
make[2]: *** [ucd-snmp/lmSensors.lo] Error 1
make[2]: Leaving directory `/root/net-snmp-5.5/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/root/net-snmp-5.5/agent'
make: *** [subdirs] Error 1
И стигнах до тук.
Google не ми даде много алтернативи за проблема най сходното което намерих беше
това със което не успях да си помогна.
Благодаря за отделеното време,ползвам Slackware 13.1