cactid-0.86f-1 compile problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

cactid-0.86f-1 compile problem

Post by torstentfk »

Hi.

compiling the cactid sources I get this error:

Code: Select all

source='snmp.c' object='snmp.o' libtool=no \
depfile='.deps/snmp.Po' tmpdepfile='.deps/snmp.TPo' \
depmode=gcc3 /bin/sh ./config/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/ucd-snmp -I/usr/include/ucd-snmp/.. -I/usr/include/mysql -g -O2 -c `test -f 'snmp.c' || echo './'`snmp.c
snmp.c: In function `snmp_host_init':
snmp.c:133: error: `usmHMACMD5AuthProtocol' undeclared (first use in this function)
snmp.c:133: error: (Each undeclared identifier is reported only once
snmp.c:133: error: for each function it appears in.)
snmp.c:137: error: `usmNoPrivProtocol' undeclared (first use in this function)
make: *** [snmp.o] Error 1
SNMP-Version:
Usage: snmpwalk [options...] <hostname> {<community>} [<objectID>]
UCD-snmp version: 4.2.6

What library is missing?

Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Uhm (clearing throat),

You are the first that I have seen in quite a while use UCD and therefore, the first to test it. :(

Ok, two options:

1) Upgrade to net-snmp client (at least sources)
2) Remove snmpv3 support. It may take me a bit.

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,

installed the net-snmp-5.1.3.1-1.fc4.src.rpm and compiled+installed it.
Then I got the error:
"libnetsnmp.so.5: cannot open shared object file".
google told me, to install "Net-SNMP-5.1.0.tar.gz".
Done.
Now the compilation works and cactid runs...

But the output of "poller.php" produces many lines like this:
"sh: line 2: -e: command not found"
The tables and rrd files are updated as normal


Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You have a hosed up script in your system. Goto System Utilities View Poller Cache and look for "Action 1:" statements. Review the scripts for something obvious. If you don't find it, open a shell and test each scritp.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,

searched for "Action: 1"; only scripts which are working. Nothing special.

Perhaps the last output is helpfull:

Code: Select all

10/13/2005 01:22:41 PM - SYSTEM STATS: Time: 14.3038 s, Method: cactid, Processes: 3, Threads: 65, Hosts: 232, Hosts/Process: 78, Data Sources 3344, RRDs Processed 2011

Notice: Undefined variable:  total_graphs_created in /srv/www/htdocs/cacti08/lib/graph_export.php on line 121
10/13/2005 01:22:41 PM - EXPORT: Poller[0] STATS: ExportTime:0.0018 TotalGraphs:
wwwrun@cacti01:/srv/www/htdocs/cacti08/scripts> sh: line 2: -e: command not found........
Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Oops... buzzzzz

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try this one...
Attachments
graph_export.zip
(8.17 KiB) Downloaded 260 times
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,

ok, now the error for graph_export has gone away.

Code: Select all

10/14/2005 08:57:45 AM - SYSTEM STATS: Time: 18.7971 s, Method: cactid, Processes: 3, Threads: 65, Hosts: 232, Hosts/Process: 78, Data Sources 3344, RRDs Processed 2011
10/14/2005 08:57:45 AM - EXPORT: Poller[0] STATS: ExportTime:0.0017 TotalGraphs:0
wwwrun@cacti01:/srv/www/htdocs/cacti08> sh: line 2: -e: command not found
sh: line 2: -e: command not found
...
Only th e following standard script are used:

Code: Select all

Data Source: cacti - Memory - Buffers  
RRD: /srv/www/htdocs/cacti08/rra/localhost_mem_buffers_1.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/linux_memory.pl Buffers:  
Data Source: cacti - Memory - Cache  
RRD: /srv/www/htdocs/cacti08/rra/localhost_mem_cache_2.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/linux_memory.pl ^Cached:  
Data Source: cacti - Memory - Free  
RRD: /srv/www/htdocs/cacti08/rra/localhost_mem_buffers_3.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/linux_memory.pl MemFree:  
Data Source: cacti - Memory - Free Swap  
RRD: /srv/www/htdocs/cacti08/rra/localhost_mem_swap_4.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/linux_memory.pl SwapUsed  
Data Source: cacti - Load Average  
RRD: /srv/www/htdocs/cacti08/rra/localhost_load_1min_5.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/loadavg_multi.pl  
Data Source: cacti - Logged in Users  
RRD: /srv/www/htdocs/cacti08/rra/localhost_users_6.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/unix_users.pl  
Data Source: cacti - Processes  
RRD: /srv/www/htdocs/cacti08/rra/localhost_proc_7.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/unix_processes.pl  
Data Source: cacti - Free Space - /dev/sda1  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_35.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get available /dev/sda1  
Data Source: cacti - Free Space - /dev/sda1  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_35.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get used /dev/sda1  
Data Source: cacti - Free Space - /dev/sda6  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_36.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get available /dev/sda6  
Data Source: cacti - Free Space - /dev/sda6  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_36.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get used /dev/sda6  
Data Source: cacti - Free Space - /dev/sdb1  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_37.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get available /dev/sdb1  
Data Source: cacti - Free Space - /dev/sdb1  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_37.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get used /dev/sdb1  
Data Source: cacti - Free Space - /dev/sdb2  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_38.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get available /dev/sdb2  
Data Source: cacti - Free Space - /dev/sdb2  
RRD: /srv/www/htdocs/cacti08/rra/localhost_hdd_free_38.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/query_unix_partitions.pl get used /dev/sdb2  
Data Source: cacti - Webhits  
RRD: /srv/www/htdocs/cacti08/rra/cacti_webhits.rrd  
Action: 1, Script: perl /srv/www/htdocs/cacti08/scripts/webhits.pl /var/log/apache2/access_log  
Torsten
shingouki
Posts: 24
Joined: Sat Aug 27, 2005 2:54 pm
Location: Manila, Philippines
Contact:

Post by shingouki »

hi Torsten,

how did you compile OpenSSL, Im having trouble with it and below are the errors. Maybe you have a suggestions.Many thanks.



checking for strerror... yes
checking for strtoll... yes
checking for mysql_init in -lmysqlclient... yes
checking for mysql_thread_init in -lmysqlclient... yes
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... no

configure: error: libcrypto not found!
bash-2.05#






torstentfk wrote:Hi,

installed the net-snmp-5.1.3.1-1.fc4.src.rpm and compiled+installed it.
Then I got the error:
"libnetsnmp.so.5: cannot open shared object file".
google told me, to install "Net-SNMP-5.1.0.tar.gz".
Done.
Now the compilation works and cactid runs...

But the output of "poller.php" produces many lines like this:
"sh: line 2: -e: command not found"
The tables and rrd files are updated as normal


Torsten
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

download source from:

http://www.openssl.org/source/

Then:

./configure
make
make install

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,
shingouki wrote:hi Torsten,

how did you compile OpenSSL, Im having trouble with it and below are the errors. Maybe you have a suggestions.Many thanks.

configure: error: libcrypto not found!
bash-2.05#
I searched for this lib in http://rpm.pbone.net/ and installed the resources.

Torsten[/quote]
shingouki
Posts: 24
Joined: Sat Aug 27, 2005 2:54 pm
Location: Manila, Philippines
Contact:

Post by shingouki »

hi,

just did what u guys suggested from source but still same error, btw Im compiling for Solaris, thx.




TheWitness wrote:download source from:

http://www.openssl.org/source/

Then:

./configure
make
make install

TheWitness
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I guess the command would be:

whereis crypto.so

But, I don't use *nix. Sorry. Let me know where it installed the crypto libraries and I can help.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
shingouki
Posts: 24
Joined: Sat Aug 27, 2005 2:54 pm
Location: Manila, Philippines
Contact:

Post by shingouki »

hi Larry,

I made the search for crypto.so, it seems the source compiled from Solaris does'nt create or compile it. The ossl libraries were installed under /usr/local/ssl/lib. Thanks.

$ ls /usr/local/ssl/lib
libcrypto.a libcrypto.so.0 libssl.a libssl.so.0 pkgconfig
libcrypto.so libcrypto.so.0.9.7 libssl.so libssl.so.0.9.7


Regards,

Shingouki

TheWitness wrote:download source from:

http://www.openssl.org/source/

Then:

./configure
make
make install

TheWitness
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

Post by laffen »

TheWitness wrote:Uhm (clearing throat),

You are the first that I have seen in quite a while use UCD and therefore, the first to test it. :(

Ok, two options:

1) Upgrade to net-snmp client (at least sources)
2) Remove snmpv3 support. It may take me a bit.

Larry
~/cacti-cactid-0.8.6f-1$ make
...
gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/include/ucd-snmp -I/usr/include/ucd-snmp/.. -I/usr/include/mysql -g -O2 -c `test -f 'snmp.c' || echo './'`snmp.c
snmp.c: In function `snmp_host_init':
snmp.c:133: error: `usmHMACMD5AuthProtocol' undeclared (first use in this function)
snmp.c:133: error: (Each undeclared identifier is reported only once
snmp.c:133: error: for each function it appears in.)
snmp.c:137: error: `usmNoPrivProtocol' undeclared (first use in this function)
make: *** [snmp.o] Error 1

Debian Sarge with
ii snmp 5.1.2-6.1 NET SNMP (Simple Network Management Protocol
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest