syslog plugin installation problem in window

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
ataullahsaleem
Posts: 18
Joined: Fri Aug 14, 2020 10:06 am

syslog plugin installation problem in window

Post by ataullahsaleem »

Hi cacti Discussion forum !
hope that you are all doing great!
i have using cacti 1.2.4 version in window server 2012.everthing is working fine ,my syslog plugin did not install .a error occur
:''please rename your config.php.dist file in the syslog ,and change setup your database before installing .

please help me how t0 fix it ?

just change in config.php file

""$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'admin';
$syslogdb_password = 'admin';
$syslogdb_port = 3306;
$syslogdb_retries = 5;
$syslogdb_ssl = false;
$syslogdb_ssl_key = '';
$syslogdb_ssl_cert = '';
$syslogdb_ssl_ca = '';
} else {
$syslogdb_type = $database_type;
$syslogdb_default = $database_default;
$syslogdb_hostname = $database_hostname;
$syslogdb_username = $database_username;
$syslogdb_password = $database_password;
$syslogdb_port = $database_port;
$syslogdb_retries = 5;
$syslogdb_ssl = $database_ssl;
$syslogdb_ssl_key = $database_ssl_key;
$syslogdb_ssl_cert = $database_ssl_cert;
$syslogdb_ssl_ca = $database_ssl_ca;
}
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: syslog plugin installation problem in window

Post by bmfmancini »

Hey there

I am assuming you did a git clone from the syslog repo

go into the cacti plugins folder you will see syslog
there will be a config.php.dist file rename that file to simply config.php and you should be good
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
ataullahsaleem
Posts: 18
Joined: Fri Aug 14, 2020 10:06 am

Re: syslog plugin installation problem in window

Post by ataullahsaleem »

global $config, $database_type, $database_default, $database_hostname;
global $database_username, $database_password, $database_port;
global $database_ssl, $database_ssl_key, $database_ssl_cert, $database_ssl_ca;

/* revert if you dont use the Cacti database */
$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'cactiuser';
$syslogdb_password = 'cactiuser';
$syslogdb_port = 3306;
$syslogdb_retries = 5;
$syslogdb_ssl = false;
$syslogdb_ssl_key = '';
$syslogdb_ssl_cert = '';
$syslogdb_ssl_ca = '';
} else {
$syslogdb_type = $database_type;
$syslogdb_default = $database_default;
$syslogdb_hostname = $database_hostname;
$syslogdb_username = $database_username;
$syslogdb_password = $database_password;
$syslogdb_port = $database_port;
$syslogdb_retries = 5;
$syslogdb_ssl = $database_ssl;
$syslogdb_ssl_key = $database_ssl_key;
$syslogdb_ssl_cert = $database_ssl_cert;
$syslogdb_ssl_ca = $database_ssl_ca;
}

thanks bro for the quick reply its a great help for me
i have rename config.php.dlist to config.php and create a separate db for the plugin syslog 2.9 in cacti 1.2.14
error still same that i have mentioned above last time
Attachments
syslogdb users.png
syslogdb users.png (58.65 KiB) Viewed 6700 times
syslogconfig.png
syslogconfig.png (44.45 KiB) Viewed 6700 times
ataullahsaleem
Posts: 18
Joined: Fri Aug 14, 2020 10:06 am

Re: syslog plugin installation problem in window

Post by ataullahsaleem »

one more thing there is no file syslog.sql in version 2.9 .i dont khow where i am stuck.i have install cacti in window server 2012 everything's are working fine
and if you have rsyslog or syslog-ng servers for window platform as a free version or key version please provide me .
thanks for the kind supporting
ataullah.saleem@yahoo.com
skyeID:ataullah.saleem
ataullahsaleem
Posts: 18
Joined: Fri Aug 14, 2020 10:06 am

Re: syslog plugin installation problem in window

Post by ataullahsaleem »

finally installed syslog Plugin 2.9 in my window server Just renamed config.php.dlist to config.php and as well as i changed file format .dlst to .php .its a little mistake
thanks bro

please help me how to add devices in syslog server rsyslog window agent becasue i did not see my devices in cacti syslog plugin
thanks for the kind help
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests