Syslog plugin

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
euriska
Posts: 4
Joined: Thu Aug 17, 2006 9:31 am

Syslog plugin

Post by euriska »

Anybody having trouble getting their plugin to bring up logs. I think mine is getting crushed from the sheer amount of data. Anyone have an example fof a suse linux box syslog-ng conf file. I have to capture certain events for SOX 404.
User avatar
nahun
Cacti User
Posts: 92
Joined: Wed Feb 15, 2006 11:27 pm
Location: Idaho
Contact:

Post by nahun »

This is from Ubuntu, but they should be the same I would think.

Code: Select all

options {
        keep_hostname(yes);
        long_hostnames(off);
        sync(1);
        log_fifo_size(1024);
};

source src { unix-stream("/dev/log"); internal(); };

source net {
        udp();
        tcp();
};

destination d_mysql { pipe("/tmp/mysql.pipe" template("INSERT INTO syslog_incoming
(host, facility, priority, level, tag, date, time, program, msg)
VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC',
'$PROGRAM', '$MSG' );\n") template-escape(yes)); };

log { source(net); destination(d_mysql); };
http://vermeer.org/docs/1 is a great how-to
[size=75]Solaris 10 x86 [color=red][b]||[/b][/color] Cacti - 0.8.7 [color=red][b]||[/b][/color] MySQL - 5.0.45 [color=red][b]||[/b][/color] PHP - 5.2.6 [color=red][b]||[/b][/color] RRDTool - 1.2.23 [color=red][b]||[/b][/color] NET-SNMP - 5.4.1 [color=red][b]||[/b][/color] Syslog-ng 2.0.5
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests