Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Aug 16, 2017 6:35 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: spine doesn't work with cacti 1.0.4
PostPosted: Mon Mar 13, 2017 9:48 pm 
Offline

Joined: Tue Apr 12, 2016 8:45 pm
Posts: 8
I have upgraded to cacti 1.0.4 on fedora core 25.

Spine doesn't work right, if poller is set to cmd.php graphs are being processed OK, but on spine it gets a few graphs done then just get stuck.

spine 1.0.4 and 1.0.5 gives the same.

Code:
$ ps auxw | grep spine
cacti     8762 34.5  0.2 177856  9960 ?        Sl   11:45   0:21 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 0 --last 1 --mibs
cacti     8765  0.1  0.7 364500 28964 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8772  0.1  0.7 364500 29108 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8775  132  0.2 202444 10052 ?        Sl   11:45   1:23 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 3 --last 4 --mibs
cacti     8779  0.1  0.7 364500 29140 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8781  0.1  0.7 364500 28796 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8784 37.1  0.2 177856 10048 ?        Sl   11:45   0:23 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 6 --last 6 --mibs
cacti     8789  0.1  0.7 364500 28904 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8790  0.1  0.7 364500 29024 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8792  0.1  0.7 364500 28700 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8794 39.0  0.2 177856  9964 ?        Sl   11:45   0:24 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 7 --last 7 --mibs
cacti     8802  0.1  0.7 364500 29052 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8803  0.1  0.7 364500 28884 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8804  0.1  0.7 364500 28816 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8807 35.3  0.2 177856 10084 ?        Sl   11:45   0:22 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 8 --last 8 --mibs
cacti     8814  0.1  0.7 364500 28936 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8817 38.1  0.2 177856 10052 ?        Sl   11:45   0:24 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 9 --last 9 --mibs
cacti     8819  0.1  0.7 364500 29040 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8823  0.1  0.7 364500 29080 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8824  0.1  0.7 364500 29072 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8828 36.7  0.2 177856  9992 ?        Sl   11:45   0:22 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 11 --last 11 --mibs
cacti     8832  0.1  0.7 364500 28940 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8833  0.1  0.7 364500 28792 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8838 37.0  0.2 177856 10008 ?        Sl   11:45   0:22 /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 12 --last 12 --mibs
cacti     8841  0.1  0.7 364500 28800 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8843  0.1  0.7 364500 29252 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8844  0.1  0.7 364500 28908 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8848  0.1  0.7 364500 28936 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8853  0.1  0.7 364500 29124 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8857  0.1  0.7 364500 29108 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8858  0.1  0.7 364500 28768 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8859  0.1  0.7 364500 28972 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8860  0.1  0.7 364500 29196 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8864  0.1  0.7 364500 29132 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8869  0.1  0.7 364500 28888 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8870  0.1  0.7 364500 28764 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8871  0.1  0.7 364500 28948 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8873  0.1  0.7 364500 29060 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8879  0.1  0.7 364500 29192 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8880  0.1  0.7 364500 29092 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8882  0.1  0.7 364500 28792 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8883  0.1  0.7 364500 29076 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8885  0.1  0.7 364500 29108 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8890  0.1  0.7 364500 29100 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8894  0.1  0.7 364500 29032 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8895  0.1  0.7 364500 28784 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8899  0.1  0.7 364500 29052 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8914  0.1  0.7 364500 29092 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8915  0.1  0.7 364500 28920 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8916  0.1  0.7 364500 28784 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8920  0.1  0.7 364500 28724 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8921  0.1  0.7 364500 28996 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8931  0.1  0.7 364500 29076 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8932  0.1  0.7 364500 28996 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8935  0.1  0.7 364500 28988 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8936  0.1  0.7 364500 28776 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8939  0.1  0.7 364500 29088 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1
cacti     8940  0.1  0.7 364500 29236 ?        S    11:45   0:00 /bin/php -q /usr/share/cacti/script_server.php spine 1


I tryed to run manually one of the spine processes
Code:
$ sudo /usr/local/spine/bin/spine -C /usr/local/spine/etc/spine.conf --poller 1 --first 12 --last 12 --mibs
SPINE: Using spine config file [/usr/local/spine/etc/spine.conf]
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The path_php_server variable is /usr/share/cacti/script_server.php
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The path_cactilog variable is /usr/share/cacti/log/cacti.log
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The log_destination variable is 1 (FILE)
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The path_php variable is /bin/php
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The availability_method variable is 4
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The ping_recovery_count variable is 3
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The ping_failure_count variable is 2
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The ping_method variable is 1
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The ping_retries variable is 1
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The ping_timeout variable is 400
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The snmp_retries variable is 3
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The log_perror variable is 1
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The log_pwarn variable is 0
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The boost_redirect variable is 0
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The log_pstats variable is 0
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The threads variable is 20
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The polling interval is 300 seconds
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The number of concurrent processes is 15
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The script timeout is 25
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The selective_device_debug variable is 2
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The spine_log_level variable is 0
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The number of php script servers to run is 10
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: StartDevice='12', EndDevice='12', TotalPHPScripts='1'
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The PHP Script Server is Required
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: The Maximum SNMP OID Get Size is 100
2017-03-14 11:47:22 - SPINE: Poller[1] Selective Debug Devices 2
2017-03-14 11:47:22 - SPINE: Poller[1] Version 1.0.5 starting
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: MySQL is Thread Safe!
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: Spine is running asroot.
2017-03-14 11:47:22 - SPINE: Poller[1] SPINE: Initializing Net-SNMP API
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
2017-03-14 11:47:22 - SPINE: Poller[1] SPINE: Initializing PHP Script Server(s)
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[0] PHP Script Server Routine Starting
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[0] PHP Script Server About to FORK Child Process
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[0] PHP Script Server Child FORK Success
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[0] Confirmed PHP Script Server running using readfd[7], writefd[6]
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[1] PHP Script Server Routine Starting
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[1] PHP Script Server About to FORK Child Process
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[1] PHP Script Server Child FORK Success
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[1] Confirmed PHP Script Server running using readfd[9], writefd[8]
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[2] PHP Script Server Routine Starting
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[2] PHP Script Server About to FORK Child Process
2017-03-14 11:47:22 - SPINE: Poller[1] DEBUG: SS[2] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[2] Confirmed PHP Script Server running using readfd[11], writefd[10]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[3] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[3] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[3] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[3] Confirmed PHP Script Server running using readfd[13], writefd[12]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[4] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[4] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[4] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[4] Confirmed PHP Script Server running using readfd[15], writefd[14]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[5] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[5] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[5] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[5] Confirmed PHP Script Server running using readfd[17], writefd[16]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[6] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[6] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[6] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[6] Confirmed PHP Script Server running using readfd[19], writefd[18]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[7] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[7] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[7] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[7] Confirmed PHP Script Server running using readfd[21], writefd[20]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[8] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[8] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[8] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[8] Confirmed PHP Script Server running using readfd[23], writefd[22]
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[9] PHP Script Server Routine Starting
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[9] PHP Script Server About to FORK Child Process
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[9] PHP Script Server Child FORK Success
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: SS[9] Confirmed PHP Script Server running using readfd[25], writefd[24]
2017-03-14 11:47:23 - SPINE: Poller[1] NOTE: Spine will support multithread device polling.
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: Initial Value of Active Threads is 0
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: Valid Thread to be Created
2017-03-14 11:47:23 - SPINE: Poller[1] DEBUG: The Value of Active Threads is 1

and it just sits here endlessly


Top
 Profile  
 
 Post subject: Re: spine doesn't work with cacti 1.0.4
PostPosted: Thu Mar 16, 2017 2:03 am 
Offline

Joined: Tue Apr 12, 2016 8:45 pm
Posts: 8
I completely reinstalled my cacti and now the poller using cmd.php or spine works without trouble.
Since I had to recreate all from scratch I can't recommend it for people with lots of graphs running...

The update process from 0.9.8* to 1.0.* should be better streamlined.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group