Syslog Issue

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
kevinmu0206
Posts: 19
Joined: Wed Apr 22, 2009 7:29 am
Location: MI

Syslog Issue

Post by kevinmu0206 »

Hi, all:

Is that possible that I can configure syslog plugin to access the database on the network instead of localhost of Cacti server?
User avatar
kevinmu0206
Posts: 19
Joined: Wed Apr 22, 2009 7:29 am
Location: MI

Post by kevinmu0206 »

I'm using "rsyslog" as my syslog service on Fedora box.
Cacti Version - 0.8.7e
Plugin Architecture - 2.5
Poller Type - Cactid v
Server Info - Linux 2.6.9-89.0.9.plus.c4smp
Web Server - Apache/2.0.63 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL - 5.0.82sp1
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
  • Global Plugin Settings (settings - v0.5)
    Device Monitoring (monitor - v0.8.2)
    Network Discovery (discovery - v0.8.5)
    Network Tools (tools - v0.3)
    Large Site Performane Booster (boost - v2.4)
    Device Tracking (mactrack - v1.1)
    Login Page Mod (loginmod - v1.0)
    Update Checker (update - v0.4)
    FlowView (flowview - v0.5.2)
    Host Info (hostinfo - v0.2)
    Documents (docs - v0.1)
    Router Configs (routerconfigs - v0.1)
    PHP Network Weathermap (weathermap - v0.96a)
    PHP Network Managing (PHP Network Managing - v0.6.1)
    wmi
    Realtime Graph Viewer (realtime - v0.36)
    Cacti Log View (CLog - v1.21)
    Cycle Graphs (Cycle Graphs - v0.7)
    SSL Redirector (ssl - v0.1)
    Configuration manager (configmanager - v0.81)
    uptime
    Mobile Cacti (mobile - v0.1)
    SuperLinks (superlinks - v0.8)
    IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4d)
    CAMM (CActi Message Manager) (CAMM - v1.6.4)
    GPS Mapping based on Lat and Long values for each host (gpsmap - v1.41)
    Thresholds (thold - v0.4.1)
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

In the first few lines of config.php in the syslog directory:

Code: Select all

$syslogdb_type     = 'mysql';
$syslogdb_default  = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'username';
$syslogdb_password = 'password';
Change the parameters appropriately.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
kevinmu0206
Posts: 19
Joined: Wed Apr 22, 2009 7:29 am
Location: MI

Post by kevinmu0206 »

Thank you for the solution, but the table structure of "rsyslog" is different than the syslog-ng, which file I should modify in order to get syslog plugin to work with rsyslog daemon?
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests