Install Syslog Plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
zettel
Posts: 6
Joined: Sun Aug 19, 2012 11:50 pm

Install Syslog Plugin

Post by zettel »

Hi Guru !
Where can I find a step by step guide to install the plugin SYSLOG?
Or can somebody explain how to install it?
User avatar
classen
Cacti User
Posts: 116
Joined: Thu Nov 12, 2009 3:07 pm

Re: Install Syslog Plugin

Post by classen »

Did you read these instructions?
http://docs.cacti.net/plugin:syslog.config

Have you attempted to install it yet?

How far did you get?

Are you stuck on a particular step?
jrm1970
Posts: 1
Joined: Thu Oct 04, 2012 8:31 am

Re: Install Syslog Plugin

Post by jrm1970 »

OK, I am new to Linux, But I have nothing showing up on the syslog but local host either.
I assume that I need to install the syslog-ng plugin, but have no ideea what I'm looking at in Linux.
I have looked at the install instructions listed here, but have no idea what I need to do after reading them.

Can someone give me a step-step instructions on getting syslog running for the systems that I have mapped and running?

Thanks
-Jon
luisma75111
Posts: 13
Joined: Fri Oct 05, 2012 9:29 am

Re: Install Syslog Plugin

Post by luisma75111 »

I have installed the version 1.22 syslog

requirements

a. cacti 0.8.7g

b. plugin architecture: (if you know how to install the plugin architecture this source will help)

http://blog.it4me.se/?p=131

c. plugins syslog 1.22

d. settings-v0.7-1.tgz



If you meet this condition this information you will work

1. download the syslog plugins 1.22

http://docs.cacti.net/plugin:syslog

2. download the settings plugins

http://docs.cacti.net/plugin:settings

3. Unzip the file and move the folder to the path

mv syslog /usr/share/cacti/site/plugins/

mv settings /usr/share/cacti/site/plugins/

3. syslog enable plugins by the GUI
ejemplo1.png
ejemplo1.png (97.45 KiB) Viewed 28509 times
4. install libdbd-mysql syslog-ng

5. edit nano /etc/syslog/syslog-ng.conf ( Also make sure you fill in the proper username and password for mysql )

add

@version: 3.1
#Bare minimum syslog-ng configuration

options { long_hostnames(off); flush_lines(0); use_dns(no); use_fqdn(no);
owner("root"); group("adm"); perm(0640); stats_freq(0);
bad_hostname("^gconfd$");
};

# we are using udp, and this is a collector for net traffic only
#
source s_all {
udp();
# internal();
# unix-stream("/dev/log");
# file("/proc/kmsg" log_prefix("kernel: "));
};

destination d_mysql {
sql(type(mysql)
host("localhost") username("xxxxxxxxxxxxx") password("xxxxxxxxxxxx")
database("syslog")
table("syslog_incoming")
columns("facility", "priority", "date", "time", "host", "message")
values("$FACILITY", "$PRIORITY", "$YEAR-$MONTH-$DAY", "$HOUR:$MIN:$SEC", "$HOST_FROM", "$MSG")
indexes("facility", "priority", "date", "time", "host", "msg"));
};

log {
source(s_all);
destination(d_mysql);
};

5. edit nano /usr/share/cacti/site/plugins/syslog/config.php

add

$use_cacti_db = true;

to

$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'xxxxxxxxx';
$syslogdb_password = 'xxxxxxxxx';
$syslogdb_port = 3306;

}

6. creates the database

cd /usr/share/cacti/site/plugins/syslog/

shell# mysql -u root -p
mysql> create database syslog;
mysql> use syslog;
mysql> source syslog.sql;
mysql> quit;

7. restart the syslog

/etc/init.d/syslog-ng restart

8. recalls enable sending log of your device router switch
ejemplo2.png
ejemplo2.png (199.15 KiB) Viewed 28509 times
Hope it helps

regards
ghazanfar
Posts: 6
Joined: Thu Oct 03, 2013 12:03 am

Re: Install Syslog Plugin

Post by ghazanfar »

Hi,
I am new to cacti & its plugins. I have just configured Cacti under windows 2003 server. I had been using Kiwi Syslog on the same machine. I installed the syslog and setting plugin on Cacti, & uninstalled Kiwi... but unfortunately my cacti syslog is not showing any entry... can any one please help me in this....
basic installation was performed by Cacti Windows Installer
http://myconfigure.blogspot.com/2013/02 ... ti-on.html


Thanks in advance for any input / help / guidance...
itkroplis
Posts: 20
Joined: Sun Jun 04, 2017 6:25 am

Re: Install Syslog Plugin

Post by itkroplis »

1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests