CMD & Spine issue
Moderators: Developers, Moderators
CMD & Spine issue
Dear all,
I installed spine-0.8.7c with cacti-0.8.7d and its working smoothly except when i want to change the poller to spine instead of cmd.php.
on the logs i cant c any error a u can c below :
[color=red]07/01/2009 12:59:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/spine, ARGS: 7 7]
07/01/2009 12:59:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/spine, ARGS: 0 0]
07/01/2009 12:59:02 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '1'
07/01/2009 12:59:01 PM - SYSTEM STATS: Time:59.6881 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:0 [/color]
but the graphs are not updating,should i change anything in crontab file when i choose spine poller, my current crontab is :
[color=red]*/1 * * * * cactiuser /usr/bin/php /var/www/cacti/poller.php > /dev/null 2>&1[/color]
knowing that if i choose spine b4 adding any device then no rrd files will be created, invice versa, if cmd chosen the graphs will be created and data will be shown init.
could you please help me with this issue?
Regards,
I installed spine-0.8.7c with cacti-0.8.7d and its working smoothly except when i want to change the poller to spine instead of cmd.php.
on the logs i cant c any error a u can c below :
[color=red]07/01/2009 12:59:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/spine, ARGS: 7 7]
07/01/2009 12:59:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/spine, ARGS: 0 0]
07/01/2009 12:59:02 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '60', Max Runtime '58', Poller Runs: '1'
07/01/2009 12:59:01 PM - SYSTEM STATS: Time:59.6881 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:0 [/color]
but the graphs are not updating,should i change anything in crontab file when i choose spine poller, my current crontab is :
[color=red]*/1 * * * * cactiuser /usr/bin/php /var/www/cacti/poller.php > /dev/null 2>&1[/color]
knowing that if i choose spine b4 adding any device then no rrd files will be created, invice versa, if cmd chosen the graphs will be created and data will be shown init.
could you please help me with this issue?
Regards,
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What happens when you run spine manually:
./spine -V 5 -R
TheWitness
./spine -V 5 -R
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?
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?
SPINE: Using spine config file [/etc/spine.conf]
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_webroot''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_cactilog''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The path_php_server variable is /var/www/cacti/script_server.php
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /var/www/cacti/log/cacti.log
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_destination''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_php_binary''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'availability_method''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 3
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_recovery_count''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_failure_count''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_method''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_retries''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_timeout''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_perror''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pwarn''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pstats''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_threads''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The threads variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'poller_interval''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The polling interval is 60 seconds
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'concurrent_processes''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'script_timeout''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The script timeout is 25
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'php_servers''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT action FROM poller_item WHERE action=2 LIMIT 1'
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: StartHost='-1', EndHost='-1', TotalPHPScripts='0'
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_get_size''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
07/01/2009 01:52:27 PM - SPINE: Poller[0] Version 0.8.7b starting
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
07/01/2009 01:52:27 PM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.3.1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.3.2.2
07/01/2009 01:52:27 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_webroot''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_cactilog''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The path_php_server variable is /var/www/cacti/script_server.php
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /var/www/cacti/log/cacti.log
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_destination''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'path_php_binary''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The path_php variable is /usr/bin/php
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'availability_method''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The availability_method variable is 3
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_recovery_count''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_failure_count''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_method''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_method variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_retries''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_retries variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'ping_timeout''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The ping_timeout variable is 400
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_perror''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_perror variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pwarn''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_pwarn variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'log_pstats''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The log_pstats variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_threads''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The threads variable is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'poller_interval''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The polling interval is 60 seconds
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'concurrent_processes''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'script_timeout''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The script timeout is 25
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'php_servers''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT action FROM poller_item WHERE action=2 LIMIT 1'
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: StartHost='-1', EndHost='-1', TotalPHPScripts='0'
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SQL:'SELECT value FROM settings WHERE name = 'max_get_size''
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
07/01/2009 01:52:27 PM - SPINE: Poller[0] Version 0.8.7b starting
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
07/01/2009 01:52:27 PM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.3.1
07/01/2009 01:52:27 PM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.3.2.2
07/01/2009 01:52:27 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Edit line 101 in spine.c and change the compare to :
Then recompile.
TheWitness
This is a minor package issue with net-snmp. The package maintainer has not kept the versions of the library and API in sync.
TheWitness
Code: Select all
if ( true ) {
TheWitness
This is a minor package issue with net-snmp. The package maintainer has not kept the versions of the library and API in sync.
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?
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?
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
More coffee please. Line 101 in snmp.c. Sorry about that.
TheWitness
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?
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?
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Try this file.
TheWitness
TheWitness
- Attachments
-
- snmp.c
- (20.57 KiB) Downloaded 92 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?
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?
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
And you recompiled with this snmp.c?
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?
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?
Who is online
Users browsing this forum: No registered users and 5 guests