Hi,
I am building cacti haloe with syslog-ng currently. I am facing some trouble that cacti-syslog can not retrieve some data from logs of some devices.
I refer to http://www.openmaniak.com/cacti_plugins.php for creating cacti-syslog on my server.
syslog-ng.conf on my server is here.
####################
# sources
####################
source net {
udp( ip(0.0.0.0) port(514) ); internal();
####################
# destination
####################
##For Cacti-Syslog
destination d_mysql {
pipe("/var/log/mysql.pipe"
template("INSERT INTO syslog_incoming
(facility, priority, date, time, host, message, seq, status)
VALUES ( '$FACILITY', '$PRIORITY', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$HOST', '$MSG', '$SEQ',
'$STATUS' );\n") template-escape(yes));
};
####################
# log
####################
log { source(net); destination(d_mysql); };
Also create /var/log/mysql.pipe and database of mysql.
I am eager to have someone who provides some advice of this problem.
Thanks in advance.
Trouble with Haloe syslog
Moderators: Developers, Moderators
Did you create a FIFO file?
Here is how I got this hard to configure plugin going:
http://www.nmsworld.com/UNIX/Syslog-NG.htm
Here is how I got this hard to configure plugin going:
http://www.nmsworld.com/UNIX/Syslog-NG.htm
Thank you,
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Hi,N3NCY wrote:Did you create a FIFO file?
Here is how I got this hard to configure plugin going:
http://www.nmsworld.com/UNIX/Syslog-NG.htm
Many thanks for your comment.
I created /var/log/mysql.pipe and associated into mysql database with some user and it's password.
As you advised me about nmsworld.com
I followed the instruction on that web site.
But I could not find any counting up mysql of syslog_incoming.
Looks like the problem that it can not communicate between syslog-ng and mysql...
I am using fedora 5 as OS , cacti0.8.6i and syslog-ng 1.6.12.
Appreciate if you would provide me other comment.
Thanks in advance, again.
Are there any errors from the script that pipes syslog-ng to mysql?
[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]
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
Who is online
Users browsing this forum: No registered users and 2 guests