cactid-0.86f-1 compile problem

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

Moderators: Developers, Moderators

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

Post by TheWitness »

looks like ./configure is finding ucd_snmp and not net_snmp. This version of Cactid does not know how to do snmpV3.
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
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?
laffen
Cacti User
Posts: 56
Joined: Tue Jul 13, 2004 2:57 am
Location: Norway

Post by laffen »

TheWitness wrote:looks like ./configure is finding ucd_snmp and not net_snmp. This version of Cactid does not know how to do snmpV3.
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
TheWitness
Thanks! For some strange reason the net-snmp tools was installed, but ucd-snmp libraries (!). A quick replacement with the net-snmp libraries and cactid compiled fine.
shingouki
Posts: 24
Joined: Sat Aug 27, 2005 2:54 pm
Location: Manila, Philippines
Contact:

Post by shingouki »

hi guys,

have tried recompiling the OSSL several times but cannot figure out how to
come up with crypto.so. Is this actually the dependency ossl lib that the cactid is looking for?

Regards,

Shingouki

shingouki wrote: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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's actually libcrypto.so

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,

at last was able to compile the latest cactid in Solaris, but now having problem. Instead of faster processing time compared to cmd.php, cactid is timing out and exceeding the max. 5 min polling mark. Please help. Thanks.



10/23/2005 02:51:18 PM - SYSTEM STATS: Time: 77.0315 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 23, Hosts/Process: 23, Data Sources 211, RRDs Processed 183

10/23/2005 02:59:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

10/23/2005 03:04:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

10/23/2005 03:09:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.


Regards,

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

Post by TheWitness »

set logging to MEDIUM, cd to the cactid binary directory and run the following: "./cactid 0 15" and tell me what happens.

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 The Witness,

below was the run result , does that mean running the cactid in parallel with cmd.php, btw nothing significant registered in the cacti.log. Many thanks.

bash-3.00$ sudo -u cacti ./cactid 0 15
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6f starting


Alarm Clock

bash-3.00$

..........................

10/24/2005 03:25:06 AM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled

10/24/2005 03:26:06 AM - SYSTEM STATS: Time: 65.8685 s, Method: cmd.php, Processes: 10000, Threads: N/A, Hosts: 23, Hosts/Process: 1, Data Sources 211, RRDs Processed 191


Regards,

Shingouki



TheWitness wrote:set logging to MEDIUM, cd to the cactid binary directory and run the following: "./cactid 0 15" and tell me what happens.

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

Post by TheWitness »

Do it in DEBUG mode. Real wierd... :o :o

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 The Witness,

below are the output in the debug mode, Thanks.


$ sudo -u cacti ./cactid 0 15

CACTID: Using cactid config file [cactid.conf]
CACTID: DEBUG: The path_php_server variable is /opt/cacti-0.8.6f/script_server.php
CACTID: DEBUG: The path_cactilog variable is /opt/cacti-0.8.6f/log/cacti.log
CACTID: DEBUG: The log_destination variable is 1
CACTID: DEBUG: The path_php variable is /opt/php/bin/php
CACTID: DEBUG: The availability_method variable is 2
CACTID: DEBUG: The ping_recovery_count variable is 3
CACTID: DEBUG: The ping_failure_count variable is 2
CACTID: DEBUG: The ping_method variable is 2
CACTID: DEBUG: The ping_retries variable is 1
CACTID: DEBUG: The ping_timeout variable is 400
CACTID: DEBUG: The log_perror variable is 1
CACTID: DEBUG: The log_pwarn variable is 0
CACTID: DEBUG: The log_pstats variable is 0
CACTID: DEBUG: The threads variable is 100
CACTID: DEBUG: The polling interval is the system default
CACTID: DEBUG: The number of concurrent processes is 10000
CACTID: DEBUG: The script timeout is 25
CACTID: DEBUG: StartHost='0', EndHost='15', TotalPHPScripts='0'
CACTID: DEBUG: The PHP Script Server is Not Required
CACTID: DEBUG: The Maximum SNMP OID Get Size is 25
CACTID: CACTID: Version 0.8.6f starting
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: CACTID: Initializing Net-SNMP API

CACTID: CACTID: Initializing PHP Script Server
CACTID: DEBUG: Parent pid=11968, Script Server pid=0
CACTID: DEBUG: Initial Value of Active Threads is 0
CACTID: DEBUG: In Poller, About to Start Polling of Host
CACTID: MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
CACTID: MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
CACTID: DEBUG: Valid Thread to be Created
CACTID: DEBUG: The Value of Active Threads is 1
CACTID: Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function

.......nothing follows



cacti.log


10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The log_destination variable is 1
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The path_php variable is /opt/php/bin/php
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The availability_method variable is 2
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 0
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The log_pstats variable is 0
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The threads variable is 100
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The polling interval is the system default
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The number of concurrent processes is 10000
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The script timeout is 25
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: StartHost='0', EndHost='15', TotalPHPScripts='0'
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The PHP Script Server is Not Required
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 25
10/25/2005 08:46:23 AM - CACTID: Poller[0] CACTID: Version 0.8.6f starting
10/25/2005 08:46:23 AM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
10/25/2005 08:46:23 AM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
10/25/2005 08:46:23 AM - CACTID: Poller[0] CACTID: Initializing Net-SNMP API
10/25/2005 08:46:23 AM - CACTID: Poller[0] CACTID: Initializing PHP Script Server
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: Parent pid=11968, Script Server pid=0
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: Initial Value of Active Threads is 0
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: In Poller, About to Start Polling of Host
10/25/2005 08:46:23 AM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
10/25/2005 08:46:23 AM - CACTID: Poller[0] MYSQL: Connected to MySQL database 'cacti' on 'localhost'...
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: Valid Thread to be Created
10/25/2005 08:46:23 AM - CACTID: Poller[0] DEBUG: The Value of Active Threads is 1
10/25/2005 08:46:23 AM - CACTID: Poller[0] Host[0] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function


.......nothing follows

TheWitness wrote:Do it in DEBUG mode. Real wierd... :o :o

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

Post by TheWitness »

What's your lowest Host_id?

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 The Witness,

I have just 22 hosts all in all,


10/26/2005 03:36:07 AM - SYSTEM STATS: Time: 66.3759 s, Method: cmd.php, Processes: 100, Threads: N/A, Hosts: 22, Hosts/Process: 1, Data Sources 197, RRDs Processed 178
TheWitness wrote:What's your lowest Host_id?

TheWitness

Regards,

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

Post by TheWitness »

Please make your process count no higher than 2*number of cpus. According to your post, that would imply that you box has 50 CPU's ;)

Thanks,

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 The Witness,

just did what u suggested but same thing, setting the concurrent process to
2 and 1 for CACTID (Version 0.8.6f), though when I tried compiling a lower version of cactid, specifically CACTID (Version 0.8.6e) I was able to run it manually. Btw, Im using a version 0.8.6f for the CACTI package.

Still the problem I got is timing out, but this time the manual invoke of cactid is fine but if the UI interface or the cron takes over its timing out the 5 minutes polling mark. Please advise if Im missing something. Many thanks.



manual invoke of cactid;

bash-3.00# sudo -u cacti ./cactid 0 23
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6e starting

..................

No log handling enabled - turning on stderr logging
read_config_store open failure on /var/net-snmp/cactid.conf
read_config_store open failure on /var/net-snmp/cactid.conf
read_config_store open failure on /var/net-snmp/cactid.conf
CACTID: Time: 105.4606 s, Threads: 30, Hosts: 20

.................

auto invoke thru UI(cron);

10/29/2005 07:14:57 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
10/29/2005 07:19:57 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.


Regards,

Shingouki


TheWitness wrote:Please make your process count no higher than 2*number of cpus. According to your post, that would imply that you box has 50 CPU's ;)

Thanks,

TheWitness
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest