Spine Compile Issues Here

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

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

Re: New ping.*

Post by TheWitness »

zentigger wrote:Well, I can build now using the new ping.h and ping.c. The poller runs, but doesn't seem to be working completely. It is also timing out--the php poller came close, but could usually squeeze in under 5 min...

Unfortunately other projects are screaming for my attention right now, so I will have to slide this to the back burner for now. If I have a chance, I will post more details...
Did you try the 0.8.7a release?

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?
skyraven
Posts: 10
Joined: Sun Oct 28, 2007 7:22 pm

Post by skyraven »

Hello,

Did the FreeBSD problem get solved ?


I'm using cacti-0.8.7 and spine-0.8.7 (stable not SVN) and I'm getting with configure:

configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: see the Autoconf documentation
configure: WARNING: netinet/ip.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to http://bugs.cacti.net ##
configure: WARNING: ## ------------------------------------ ##

configure: WARNING: netinet/ip_icmp.h: present but cannot be compiled
configure: WARNING: netinet/ip_icmp.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip_icmp.h: see the Autoconf documentation
configure: WARNING: netinet/ip_icmp.h: section "Present But Cannot Be Compiled"
configure: WARNING: netinet/ip_icmp.h: proceeding with the preprocessor's result
configure: WARNING: netinet/ip_icmp.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to http://bugs.cacti.net ##
configure: WARNING: ## ------------------------------------ ##

and after ./configure and make:

cacti-spine-0.8.7 # gmake
if gcc -DHAVE_CONFIG_H -I. -I. -I./config -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -g -O2 -MT sql.o -MD -MP -MF ".deps/sql.Tpo" -c -o sql.o sql.c; \
then mv -f ".deps/sql.Tpo" ".deps/sql.Po"; else rm -f ".deps/sql.Tpo"; exit 1; fi
In file included from common.h:86,
from sql.c:34:
/usr/include/netinet/ip_icmp.h:71: error: syntax error before "n_short"
/usr/include/netinet/ip_icmp.h:78: error: syntax error before "n_short"
/usr/include/netinet/ip_icmp.h:100: error: syntax error before "n_time"
/usr/include/netinet/ip_icmp.h:105: error: field `idi_ip' has incomplete type
gmake: *** [sql.o] Error 1


Is there any solution for this ?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

We had a little server issue, so Ian was not able to perform the official release of 0.8.7a today.

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?
zentigger
Posts: 5
Joined: Tue Feb 05, 2002 7:00 pm

Working now!

Post by zentigger »

I have 0.8.7a installed on FreeBSD 6.2 and it seems to be running fine now.

As we process rather a lot of data sources, it seemed necessary to allow a lot of concurrent poller processes and threads to get through under the 298s time limit. I had this set to about 10 pollers and 75 threads, figuring I would just throw them all out there and the kernel could handle the scheduling to complete so many tasks. I was busy and didn't really have the time to tune this.
It worked fine for a while, but the other day my load average suddenly doubled and would not come back down. I took some time to tune this down to about 5 pollers and 20 threads. It has not really impacted the amount of time required to complete the polling run, but has drastically lowered my server load averages.
Presumably spinning off so many threads all at once was creating an enormous log-jam that was taking longer to sort out than if all the "logs" were neatly filed out one or two a time. I would be curious to know if anyone else has some insights on that, or other tips for tuning/optimizing cacti installations. I thought there used to be a thread comparing poller run-times and system stats, but I can't find it now.
fish
Posts: 10
Joined: Tue Nov 09, 2004 12:28 am

Post by fish »

i got segmentation faults when trying to execute spine on my slackware 10.1

here's the debug :

Code: Select all

badkarma@mail ~/cacti/log $ spine --verbosity=5 35 35
SPINE: Using spine config file [/etc/spine.conf]
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_webroot''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_cactilog''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The path_php_server variable is /home/badkarma/cacti/script_server.php
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /home/badkarma/cacti/log/cacti.log
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_destination''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_php_binary''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/local/bin/php
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'availability_method''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 2
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_recovery_count''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_failure_count''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_method''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 2
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_retries''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 5
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_timeout''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 10000
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_perror''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pwarn''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 0
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pstats''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 0
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_threads''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The threads variable is 16
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'poller_interval''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The polling interval is 300 seconds
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'concurrent_processes''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 16
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'script_timeout''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The script timeout is 25
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'php_servers''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 5
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT action FROM poller_item WHERE action=2 AND host_id BETWEEN 35 AND 35 LIMIT 1'
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: StartHost='35', EndHost='35', TotalPHPScripts='0'
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_get_size''
12/07/2007 01:21:46 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 30
12/07/2007 01:21:46 PM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine parent)
badkarma@mail ~/cacti/log $
and here's what i'm trying to see with gdb but honestly i don't know what to do next

Code: Select all

This GDB was configured as "i486-slackware-linux".
(gdb) file /usr/bin/spine
Reading symbols from /usr/bin/spine...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -C /etc/spine.conf 35 35
Starting program: /usr/bin/spine -C /etc/spine.conf 35 35
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 23934)]
SPINE: Using spine config file [/etc/spine.conf]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 23934)]
0x00000000 in ?? ()
(gdb) backtrace
#0  0x00000000 in ?? ()
(gdb)
i follow the installation instruction from documentation and only this happen when i execute aclocal

Code: Select all

/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/gnet-2.0.m4:8: warning: underquoted definition of AM_PATH_GNET_2_0
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB
other command after that went good, installed completly.

well, thats all i can explain to you all, hope someone able to help me.

thx.
fish
Posts: 10
Joined: Tue Nov 09, 2004 12:28 am

solved

Post by fish »

case closed, it's run well after i upgrade php and mysql.
sorry for the inconvenience. :oops:
flb-iori
Posts: 33
Joined: Thu Dec 13, 2007 7:51 pm

Post by flb-iori »

Hi all, I have this error when runing autoconf (or autoreconf after):

configure.ac: required file `config/mkinstalldirs' not found
autoreconf: automake failed with exit status: 1

I read somewhere than we had to modify config/mkinstalldirs path, but I found it only in Makefile and Makefile.in, I try replacing it by all these path:

./usr/share/automake-1.4/mkinstalldirs
./usr/share/automake-1.5/mkinstalldirs
./usr/share/automake-1.6/mkinstalldirs
./usr/lib/rpm/mkinstalldirs

(result of find . -name mkinstalldirs) but nothing changed, same result... Does someone have any ideas?
Thanks!
hkiene
Posts: 3
Joined: Wed Jul 18, 2007 4:53 am

Post by hkiene »

Hello
I have also the problem with compile spine under Debian

configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.22, ltmain.sh = "1.5.22 Debian 1.5.22-4") ***

Please run libtoolize --copy --force

I have run libtoolize but the error is I can't compile it.

hkiene
hkiene
Posts: 3
Joined: Wed Jul 18, 2007 4:53 am

Post by hkiene »

hkiene wrote:Hello
I have also the problem with compile spine under Debian

configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.22, ltmain.sh = "1.5.22 Debian 1.5.22-4") ***

Please run libtoolize --copy --force

I have run libtoolize but the error is I can't compile it.

hkiene
I forgot in the ltmain.sh is the version test exactly "1.5.22 Debian 1.5.22-4" and the Timestamp is also correct.
I have no idea where the fail is.
cdnvballer
Cacti User
Posts: 89
Joined: Fri May 25, 2007 1:18 pm

Post by cdnvballer »

Hello,

just installed new cacti 0.8.7c instance (yay),

but having trouble with the current downloaded source for spine:

1) when I dl and extract to my OpenSUSE 10.1 box, configure script isn't executable

2) after chmod +x to configure, trying to run it gives me the following:

tools:/home/cvo/cacti-spine-0.8.7c # ./configure
./configure: line 3: syntax error near unexpected token `<<<'
./configure: line 3: `<<<<<<< .mine'


did I miss something? or was I supposed to patch the old spine source?
confused here, the INSTALL doc doesn't say much...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is a known problem. It should be fixed in SVN by now. Larry's going to release a new tar.gz soon
Reinhard
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

After commenting out every single entry of .mine etc I am now getting this on compile

configure: error: cannot run /bin/sh config/config.sub
GuessWho
Posts: 16
Joined: Tue Jan 13, 2009 2:55 pm

Post by GuessWho »

Rather than changing all the permissions in the install directory why don't you just run the bootstrap script. i.e.

./bootstrap

Worked for me and installed the binary and config file.
User avatar
dragossto
Cacti User
Posts: 86
Joined: Tue May 15, 2007 5:24 am
Location: Romania
Contact:

Post by dragossto »

hello
i have a insue whit spine 0.8.7c

02/15/2009 02:00:31 AM - SYSTEM STATS: Time:29.9326 Method:spine Processes:1 Threads:10 Hosts:133 HostsPerProcess:133 DataSources:1303 RRDsProcessed:692
02/15/2009 02:00:27 AM - SPINE: Poller[0] WARNING: SS[1] The PHP Script Server did not respond in time and will therefore be restarted
02/15/2009 02:00:06 AM - SPINE: Poller[0] Host[1] Description[Localhost] DS[99] Graphs['Localhost - Memory Usage'] WARNING: SNMP timeout detected [500 ms], ignoring host '127.0.0.1'
02/15/2009 02:00:01 AM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 120 seconds have passed since the last poll!
02/15/2009 01:59:00 AM - SYSTEM STATS: Time:59.1596 Method:spine Processes:1 Threads:10 Hosts:133 HostsPerProcess:133 DataSources:1303 RRDsProcessed:0
02/15/2009 01:59:00 AM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.
02/15/2009 01:58:02 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
02/15/2009 01:58:02 AM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
02/15/2009 01:58:02 AM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine thread)
02/15/2009 01:57:06 AM - SYSTEM STATS: Time:4.8801 Method:spine Processes:1 Threads:10 Hosts:133 HostsPerProcess:133 DataSources:1305 RRDsProcessed:693

after fault the graf are not maid for 5 minute
the fault it random at time
and the error ocure aprox after 1 to 8 hour.

info about host
Cacti Version - 0.8.7d
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux 2.6.27.8
Web Server - Apache/2.2.9 (Unix) DAV/2 PHP/5.2.6
PHP - 5.2.6
PHP Extensions - xmlwriter, libxml, dom, xmlreader, xml, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, standard, Reflection, posix, json, imap, hash, filter, date, apache2handler, bcmath, bz2, calendar, ctype, curl, dba, dbase, exif, ftp, gettext, gd, gmp, iconv, ldap, mbstring, mhash, mysql, mysqli, openssl, PDO, pdo_mysql, pdo_sqlite, pspell, shmop, snmp, soap, SQLite, tokenizer, wddx, xsl, zip, zlib
MySQL - 5.0.51b
RRDTool - 1.3.6
SNMP - 5.4.1.2
Plugins
  • Cacti Log View (CLog - v1.1)
    Host Info (hostinfo - v0.2)
    Device Monitoring (monitor - v0.8.2)
    NTop Viewer (ntop - v0.1)
    Global Plugin Settings (settings - v0.5)
    Network Tools (tools - v0.3)
y attach entire log of error make whit DEVEL - Developer debug level
Attachments
error.log.tar
(116.22 KiB) Downloaded 191 times
User avatar
dragossto
Cacti User
Posts: 86
Joined: Tue May 15, 2007 5:24 am
Location: Romania
Contact:

Post by dragossto »

add full error debug
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests