Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Apr 23, 2017 8:45 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Error from cmd to spine
PostPosted: Tue Dec 13, 2016 5:34 am 
Offline
Cacti User

Joined: Wed Oct 29, 2014 5:08 am
Posts: 74
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'


Top
 Profile  
 
 Post subject: Re: Error from cmd to spine
PostPosted: Tue Dec 13, 2016 11:38 am 
Offline
Cacti User

Joined: Mon Sep 10, 2012 5:54 pm
Posts: 60
There should be a spine.conf file that points to your db creds.


Top
 Profile  
 
 Post subject: Re: Error from cmd to spine
PostPosted: Fri Dec 16, 2016 5:40 am 
Offline
Cacti User

Joined: Wed Oct 29, 2014 5:08 am
Posts: 74
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


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users 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