Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


seg fault on cactid from cvs

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
moonman
Cacti User


Joined: 06 Sep 2003
Posts: 94

PostPosted: Sat Oct 25, 2003 5:00 am    Post subject: seg fault on cactid from cvs Reply with quote

Hi rax
I download cactid from the cvs run bootstrap and then do the regular install but when i try to run the program i get seg fault after it connect to the mysql server as you can see in the output
Code:

cactid version 0.8.3 starting.
Using cactid config file [cactid.conf].
Connecting to MySQL database 'cacti' on 'localhost'...
Cactid Ready.
Connecting to MySQL database 'cacti' on 'localhost'...
Segmentation fault


Thanks
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Mon Oct 27, 2003 8:17 am    Post subject: Reply with quote

The version of cactid in CVS has been modified to use the new fields in the 'host' table. It will segfault unless you are using the following table structure for 'host':

Code:
CREATE TABLE host (
  id mediumint(8) unsigned NOT NULL auto_increment,
  host_template_id mediumint(8) unsigned NOT NULL default '0',
  description varchar(150) NOT NULL default '',
  hostname varchar(250) default NULL,
  snmp_community varchar(100) default NULL,
  snmp_version tinyint(1) unsigned NOT NULL default '1',
  snmp_username varchar(50) default NULL,
  snmp_password varchar(50) default NULL,
  snmp_port mediumint(5) unsigned NOT NULL default '161',
  snmp_timeout mediumint(8) unsigned NOT NULL default '500',
  disabled char(2) default NULL,
  status tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (id),
  UNIQUE KEY id (id),
  KEY id_2 (id)
) TYPE=MyISAM;


-Ian
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group