mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
better logon process
git-svn-id: http://www.observium.org/svn/observer/trunk@318 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -23,12 +23,10 @@ source s_net {
|
||||
udp();
|
||||
};
|
||||
|
||||
destination d_mysql {
|
||||
pipe("/var/log/observer-mysql.pipe"
|
||||
template("INSERT INTO syslog
|
||||
(host, facility, priority, level, tag, datetime, program, msg)
|
||||
VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC','$PROGRAM', '$MSG' );\n") template-escape(yes));
|
||||
};
|
||||
destination d_mysql { program("/usr/bin/mysql -u<USER> -p<PASS> <DATABASE>" template("INSERT
|
||||
INTO syslog (host, facility, priority, level, tag, datetime, program, msg)
|
||||
VALUES ( '$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC', '$PROGRAM', '$MSG' );\n") template-escape(yes));
|
||||
};
|
||||
|
||||
log {
|
||||
source(s_net);
|
||||
|
Reference in New Issue
Block a user