HI all
I have trouble when change cmd to spine poller
Already update user and password under Inetpub\wwwroot\cacti\include (config.php and global.php)
config.php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "Password";
$database_port = "3306";
$database_ssl = false;
global.php
/* Default database settings*/
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "Password";
$database_port = "3306";
$database_ssl = false;
/* Default session name - Session name must contain alpha characters */
$cacti_session_name = "Cacti";
Still got below Error Message
12/13/2016 06:11:10 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
12/13/2016 06:11:10 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
12/13/2016 06:11:10 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
12/13/2016 06:11:10 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
'12/13/2016 06:11:09 PM - SPINE: Poller[0] ERROR: SS[999] Script Server did not start properly return message was: 'FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
Error from cmd to spine
Moderators: Developers, Moderators
Re: Error from cmd to spine
There should be a spine.conf file that points to your db creds.
Re: Error from cmd to spine
I am using window server
spine.conf config as below
should I use 127.0.0.1 or server IP (10.x.x.x)
# +-------------------------------------------------------------------------+
# | Copyright (C) 2002-2013 The Cacti Group |
# | |
# | This program is free software; you can redistribute it and/or |
# | modify it under the terms of the GNU Lesser General Public License |
# | as published by the Free Software Foundation; either version 2.1 |
# | of the License, or (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# +-------------------------------------------------------------------------+
# | spine: a backend data gatherer for Cacti |
# +-------------------------------------------------------------------------+
# | This poller would not have been possible without: |
# | - Larry Adams (current development and enhancements) |
# | - Rivo Nurges (rrd support, mysql poller cache, misc functions) |
# | - RTG (core poller code, pthreads, snmp, autoconf examples) |
# | - Brady Alleman/Doug Warner (threading ideas, implimentation details) |
# +-------------------------------------------------------------------------+
# | Settings |
# +-------------------------------------------------------------------------+
# | DB_Host 'localhost' or socket file for UNIX/Linux |
# | IP Address for Windows |
# | DB_Database Database name, typically 'cacti' |
# | DB_Port The database port to use |
# | DB_User The user to access the database, typically 'cactiuser' |
# | DB_Pass The password for the Cacti user |
# | SNMP_Clientaddr Bind SNMP to a specific address for sites that use |
# | higher security levels |
# | DB_PreG Set to 1 if you wish to work with older versions of |
# | cacti 0.8.7. |
# +-------------------------------------------------------------------------+
DB_Host 127.0.0.1
DB_Database cacti
DB_User cactiuser
DB_Pass 'password'
DB_Port 3306
DB_PreG 0
spine.conf config as below
should I use 127.0.0.1 or server IP (10.x.x.x)
# +-------------------------------------------------------------------------+
# | Copyright (C) 2002-2013 The Cacti Group |
# | |
# | This program is free software; you can redistribute it and/or |
# | modify it under the terms of the GNU Lesser General Public License |
# | as published by the Free Software Foundation; either version 2.1 |
# | of the License, or (at your option) any later version. |
# | |
# | This program is distributed in the hope that it will be useful, |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# | GNU General Public License for more details. |
# +-------------------------------------------------------------------------+
# | spine: a backend data gatherer for Cacti |
# +-------------------------------------------------------------------------+
# | This poller would not have been possible without: |
# | - Larry Adams (current development and enhancements) |
# | - Rivo Nurges (rrd support, mysql poller cache, misc functions) |
# | - RTG (core poller code, pthreads, snmp, autoconf examples) |
# | - Brady Alleman/Doug Warner (threading ideas, implimentation details) |
# +-------------------------------------------------------------------------+
# | Settings |
# +-------------------------------------------------------------------------+
# | DB_Host 'localhost' or socket file for UNIX/Linux |
# | IP Address for Windows |
# | DB_Database Database name, typically 'cacti' |
# | DB_Port The database port to use |
# | DB_User The user to access the database, typically 'cactiuser' |
# | DB_Pass The password for the Cacti user |
# | SNMP_Clientaddr Bind SNMP to a specific address for sites that use |
# | higher security levels |
# | DB_PreG Set to 1 if you wish to work with older versions of |
# | cacti 0.8.7. |
# +-------------------------------------------------------------------------+
DB_Host 127.0.0.1
DB_Database cacti
DB_User cactiuser
DB_Pass 'password'
DB_Port 3306
DB_PreG 0
Who is online
Users browsing this forum: No registered users and 2 guests