Cactid 0.8.6i Beta2 Available for Test

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

N3NCY wrote:Ah, ok I think I am catching on!

Here is where I am stuck now:
aclocal19
autoheader259
cp CHANGELOG ChangeLog
automake19
autoconf259
LD_LIBRARY_PATH=/usr/local/lib:/opt/net-snmp/lib/:/opt/mysql/lib/mysql/
export LD_LIBRARY_PATH
./configure --prefix=/opt/apache/htdocs/cacti --with-mysql=/opt/mysql/ --with-snmp=/opt/net-snmp/
configure: error: cannot run /usr/local/bin/bash config/config.sub


Any thoughts?
Convert config/config.sub to unix text format. I get the same error if I don't do that.
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Notes on Unix install (happens to be Sol 8/SPARC)

Post by duckhead »

Overall, this is a wonderful program, but the build on Unix is still pretty shaky. That's probably because TheWitness is still developing under Windows. In any event, here are my notes on a Unix build I just did:

1. It is necesary to convert all of the files in the tar.gz from DOS to Unix line endings. If you don't do this first, you're going to have strange problems.

2. It is necessary to run autoconf at a minimum. Note that this is typically done by the developer, so the users don't have to install autoconf.

3. The configure script autoconf generated for Solaris 8 + Net-SNMP has a bug, possibly depending on how Net-SNMP was built. In my case, I had to include "-lkstat" to make sure that we pass the configure test for Net-SNMP. If you have this bug, you'll see references to things like kstat_open in config.log. I'll need to look and see what other packages do to come up with a solution. I'm not a autoconf guru by any means.

4. There are a couple functions called in cactid.c, install_cactid_signal_handler and uninstall_cactid_signal_handler, these are prototyped in error.h and defined in error.c. Unfortunately, the function definitions are commented out. I'm not sure what the intent is here (whether or not we should be calling these), so I commented out the calls in cactid.c. It may be that the correct answer is to remove the comments in error.c, I'm not sure.

5. Once configure runs successfully, run "make".

6. The config/install-sh is not shipped executable. It has to be for "make install" to succeed. Run: "chmod u+x config/install-sh"

7. Run "make install"

8. The install installs a bunch of files that it likey shouldn't. Generally, you don't expect to have header files installed unless there are also library files. The header files that "make install" installs are only necessary for the cactid compile, so they should be omitted.

9. There might be another issue with the default directories the install is going to. I use a custom directory, so I need to investigate a little more.

Edit: Add in the part about the signal handlers and stroke TheWitness's ego a bit at the top.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Here are the results :

Code: Select all

SYSTEM STATS: Time:118.9541 Method:cactid Processes:4 Threads:30 Hosts:180 HostsPerProcess:45 DataSources:3578 RRDsProcessed:2412
This system is running CentOS 4.4 under VMware ESX Server 2.5.2 (1 Opteron 250 @ 2.4 GHz and 512 Mb RAM are dedicated to this virtual machine).

Could the threads / number of processes, etc. be configured better ?

Edit : there does not appear to be a problem with I/O

Code: Select all

10:11:13          CPU     %user     %nice   %system   %iowait     %idle
Average:          all      2,24      0,50      6,65      5,88     84,73
Thanks !
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1 process
20 threads

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
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I download cactid.tar.gz and extract it
But I didnt find configure file.
I find configure.ac file.
Is there any missing file?
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

TFC wrote:I download cactid.tar.gz and extract it
But I didnt find configure file.
I find configure.ac file.
Is there any missing file?
If using linux, you need to at least do a autoconf to create the config file (probably Windows too) I personally do it this way

Code: Select all

aclocal
autoheader
automake
autoconf
./configure
make
make install
If using linux, you will also have to convert it unix format using the dos2unix tool, and rename CHANGELOG to ChangeLog
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

TheWitness wrote:1 process
20 threads
  • With 1 process / 20 threads :

    Code: Select all

    POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
    09/15/2006 08:59:54 AM - SYSTEM STATS: Time:293.0574 Method:cactid Processes:1 Threads:20 Hosts:180 HostsPerProcess:180 DataSources:3578 RRDsProcessed:2276
  • With 2 processes / 20 threads :

    Code: Select all

    09/15/2006 09:07:43 AM - SYSTEM STATS: Time:161.7287 Method:cactid Processes:2 Threads:20 Hosts:180 HostsPerProcess:90 DataSources:3578 RRDsProcessed:2412
  • With 4 processes / 25 threads :

    Code: Select all

    09/15/2006 09:32:03 AM - SYSTEM STATS: Time:121.2605 Method:cactid Processes:4 Threads:25 Hosts:180 HostsPerProcess:45 DataSources:3578 RRDsProcessed:2412
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What is your script and script server count?

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?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

25, but on this system I only use SNMP.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What are your max_oid's per get request sent to? Do you have a high latency network?

Regards,

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

Post by TheWitness »

I am going to make a change to poller.php this weekend to speed up rrdtool, are you interested?

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?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I've tested from 30 to 60, but it does not seem to change anything. Current value is 45

Most of the servers respond in 1 to 2 ms.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Build Problem

Post by NetGeek »

Ok,
Have downloaded source and converted from DOS to Unix. Have also performed the follwing steps:

aclocal
autoheader
automake
autoconf

Now I try to run ./configure and get the following:

nms-lab3(root)# ./configure
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... config/install-sh -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking whether to enable -Wall... no
checking for gethostbyname in -lnsl... yes
checking for socket in -lsocket... yes
checking for floor in -lm... yes
checking for pthread_exit in -lpthread... yes
checking for deflate in -lz... yes
checking for egrep... egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for signal.h... (cached) yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for unsigned long long... yes
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for malloc... yes
checking for calloc... yes
checking for gettimeofday... yes
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_realloc in -lcrypto... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
nms-lab3(root)#

Any thoughts how to get past this point?
Thanks!
NetGeek
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Re: Build Problem

Post by duckhead »

NetGeek wrote:
Any thoughts how to get past this point?
Thanks!
NetGeek
Sure, did you bother to read my post above, specifically point number 3, which is specific to the Solaris 8 OS + Net-SNMP?
User avatar
NetGeek
Posts: 15
Joined: Mon Nov 14, 2005 2:00 pm

Re: Build Problem

Post by NetGeek »

duckhead wrote:
NetGeek wrote:
Any thoughts how to get past this point?
Thanks!
NetGeek
Sure, did you bother to read my post above, specifically point number 3, which is specific to the Solaris 8 OS + Net-SNMP?
Yup, Sure Did!!
And this is what I got:

nms-lab3(root)# ./configure -lkstat
configure: error: unrecognized option: -lkstat
Try `./configure --help' for more information.
nms-lab3(root)#

Do you see what I may have missed?
Thanks!
NetGeek
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest