Thanks for the reply, I am wondering if I am not understanding the spine configuration correctly.
My setup is as follows (hope this is clear).
- Screen Shot 2017-02-27 at 11.54.12 AM.png (60.09 KiB) Viewed 3921 times
On the master instance spine config is the following (expecting RDB variables to not be in-use)
Code: Select all
DB_Host db-master
DB_Database cacti_master
DB_User cactiuser
DB_Pass cactipassword
DB_Port 3306
RDB_Host localhost
RDB_Database cacti
RDB_User cactiuser
RDB_Pass cactipassword
RDB_Port 3306
Spine dry-run with two attached devices
Code: Select all
[root@4d4e5cef6512 /]# /spine/bin/spine -R -V 3 -C /spine/etc/spine.conf
SPINE: Using spine config file [/spine/etc/spine.conf]
SPINE: Version 1.0.3 starting
2017-02-27 11:56:37 - SPINE: Poller[1] NOTE: Spine will support multithread device polling.
2017-02-27 11:56:37 - SPINE: Poller[1] Device[1] TH[1] NOTE: There are '1' Polling Items for this Device
2017-02-27 11:56:37 - SPINE: Poller[1] Device[1] TH[1] DS[1] SCRIPT: perl /cacti/scripts/unix_processes.pl, output: 22
2017-02-27 11:56:37 - SPINE: Poller[1] Device[1] TH[1] Total Time: 0.036 Seconds
2017-02-27 11:56:37 - SPINE: Poller[1] Updating Full System Information Table
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] Recache DataQuery[1] OID: .1.3.6.1.2.1.1.3.0, output: 1354395176
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] Recache DataQuery[8] OID: .1.3.6.1.2.1.1.3.0, output: 1354395176
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] NOTE: There are '22' Polling Items for this Device
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] DS[63] SS[0] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get used '1', output: 125540352
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] DS[63] SS[1] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get total '1', output: 193046528
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] DS[68] SS[0] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get used '6', output: 37007360
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] DS[68] SS[1] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get total '6', output: 37007360
2017-02-27 11:56:37 - SPINE: Poller[1] Device[3] TH[1] DS[73] SS[0] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get used '11', output: 47820800
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[73] SS[1] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get total '11', output: 47820800
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[78] SS[0] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get used '16', output: 4096
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[78] SS[1] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get total '16', output: 4096
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[83] SS[0] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get used '21', output: 1024
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[83] SS[1] SERVER: /cacti/scripts/ss_host_disk.php ss_host_disk 10.20.2.214 3 2:161:500:1:10:b55r4nt5s0:::::: get total '21', output: 1024
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[88] SNMP: v2: 10.20.2.214, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, value: 0
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[88] SNMP: v2: 10.20.2.214, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, value: 0
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[93] SNMP: v2: 10.20.2.214, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.33, value: 3466039117
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[93] SNMP: v2: 10.20.2.214, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.33, value: 2946938689
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[98] SNMP: v2: 10.20.2.214, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.39, value: 316603
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[98] SNMP: v2: 10.20.2.214, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.39, value: 9481
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[102] SNMP: v2: 10.20.2.214, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.51, value: 0
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[102] SNMP: v2: 10.20.2.214, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.51, value: 0
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[107] SNMP: v2: 10.20.2.214, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.504, value: 1671576070
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[107] SNMP: v2: 10.20.2.214, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.504, value: 1543831270
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[112] SNMP: v2: 10.20.2.214, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.509, value: 988591624
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] DS[112] SNMP: v2: 10.20.2.214, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.509, value: 2193924844
2017-02-27 11:56:38 - SPINE: Poller[1] Device[3] TH[1] Total Time: 1.5 Seconds
2017-02-27 11:56:38 - SPINE: Poller[1] Time: 1.7333 s, Threads: 4, Devices: 2
Remote poller Spine settings:
Code: Select all
DB_Host db-poller
DB_Database cacti_poller
DB_User cactiuser
DB_Pass cactipassword
DB_Port 3306
RDB_Host db-master
RDB_Database cacti_master
RDB_User cactiuser
RDB_Pass cactipassword
RDB_Port 3306
Dryrun of spine with poller ID of 2
Code: Select all
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
MYSQL: Connection Failed: Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller''
2017-02-27 11:58:17 - SPINE: Poller[2] FATAL: Connection Failed, Error:'1044', Message:'Access denied for user 'cactiuser'@'%' to database 'cacti_poller'' (Spine init)
Mysql connection test:
Code: Select all
[root@038956b2bdf4 /]# mysql -u cactiuser -pcactipassword cacti_poller -h db-poller
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 1526
Server version: 5.7.17 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [cacti_poller]> show tables;
+-------------------------------------+
| Tables_in_cacti_poller |
+-------------------------------------+
| aggregate_graph_templates |
| aggregate_graph_templates_graph |
| aggregate_graph_templates_item |
| aggregate_graphs |
| aggregate_graphs_graph_item |
| aggregate_graphs_items |
| automation_devices |
| automation_graph_rule_items |
| automation_graph_rules |
| automation_ips |
| automation_match_rule_items |
| automation_networks |
| automation_processes |
| automation_snmp |
| automation_snmp_items |
| automation_templates |
| automation_tree_rule_items |
| automation_tree_rules |
| cdef |
| cdef_items |
| color_template_items |
| color_templates |
| colors |
| data_input |
| data_input_data |
| data_input_fields |
| data_local |
| data_source_profiles |
| data_source_profiles_cf |
| data_source_profiles_rra |
| data_source_purge_action |
| data_source_purge_temp |
| data_source_stats_daily |
| data_source_stats_hourly |
| data_source_stats_hourly_cache |
| data_source_stats_hourly_last |
| data_source_stats_monthly |
| data_source_stats_weekly |
| data_source_stats_yearly |
| data_template |
| data_template_data |
| data_template_rrd |
| external_links |
| graph_local |
| graph_template_input |
| graph_template_input_defs |
| graph_templates |
| graph_templates_gprint |
| graph_templates_graph |
| graph_templates_item |
| graph_tree |
| graph_tree_items |
| host |
| host_graph |
| host_snmp_cache |
| host_snmp_query |
| host_template |
| host_template_graph |
| host_template_snmp_query |
| plugin_config |
| plugin_db_changes |
| plugin_hooks |
| plugin_realms |
| poller |
| poller_command |
| poller_data_template_field_mappings |
| poller_item |
| poller_output |
| poller_output_boost |
| poller_output_boost_processes |
| poller_output_realtime |
| poller_reindex |
| poller_resource_cache |
| poller_time |
| reports |
| reports_items |
| sessions |
| settings |
| settings_tree |
| settings_user |
| settings_user_group |
| sites |
| snmp_query |
| snmp_query_graph |
| snmp_query_graph_rrd |
| snmp_query_graph_rrd_sv |
| snmp_query_graph_sv |
| snmpagent_cache |
| snmpagent_cache_notifications |
| snmpagent_cache_textual_conventions |
| snmpagent_managers |
| snmpagent_managers_notifications |
| snmpagent_mibs |
| snmpagent_notifications_log |
| user_auth |
| user_auth_cache |
| user_auth_group |
| user_auth_group_members |
| user_auth_group_perms |
| user_auth_group_realm |
| user_auth_perms |
| user_auth_realm |
| user_domains |
| user_domains_ldap |
| user_log |
| vdef |
| vdef_items |
| version |
+-------------------------------------+
108 rows in set (0.00 sec)
Remote MySQL test
Code: Select all
[root@038956b2bdf4 /]# mysql -u cactiuser -pcactipassword cacti_master -h db-master
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 3199
Server version: 5.7.17 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [cacti_master]>
Does or is spine trying to write what should be its local "poller" database to the remote host?