I have problem with the syslog-ng configuration, I follow the steps but when I restart the syslog-ng daemon this reports some errors in the config file.
I created the fifo
"mkfifo /usr/share/jffnms/mysql.pipe"
My syslog-ng config file:
----------------------------------------------------------------------------
options { use_fqdn(yes);
keep_hostnames(yes);
use_dns(no);
long_hostnames(off);
sync (0);
log_fifo_size (1000);
stats(43200);
};
source s_jffnms {
unix-dgram("/dev/log");
internal();
udp ();
}
## Define the mysql pipe (change mysql acces according to mysql jffnms user)
destination jffnms_processing {
progran ("mysql -u jffnms -pjffnms jffnms < /usr/share/jffnms/mysql.pipe");
};
destination d_jffnms {
pipe ("/usr/share/jffnms/mysql.pipe"
template("INSERT INTO syslog (date,date_logged,host,message) VALUES ('$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC',NOW\(\),'$FULLHOST','$MSG');\n")
template-escape(yes));
};
## Finally add de log condition
log {
source(s_jffnms);
destination(d_jffnms);
};
-----------------------------------------------------------------
Whe I execute the command "/etc/init.d/syslog-ng restart" i get the following error...
/etc/init.d/syslog-ng: /etc/default/syslog-ng: line 17: syntax error near unexpected token `('
/etc/init.d/syslog-ng: /etc/default/syslog-ng: line 17: `options { use_fqdn(yes);'
CONSOLE_LOG_LEVEL is of unaccepted value.
KERNEL_RINGBUF_SIZE is of unaccepted value.
Stopping system logging: syslog-ng.
Starting system logging: syslog-ng.
Now, if I delete the options part, so that the config file stay like:
-------------------------------------------------------------------------------------------------------
source s_jffnms {
unix-dgram("/dev/log");
internal();
udp();
}
## Define the mysql pipe (change mysql acces according to mysql jffnms user)
destination jffnms_processing {
progran ("mysql -u jffnms -pjffnms jffnms < /usr/share/jffnms/mysql.pipe");
};
destination d_jffnms {
pipe ("/usr/share/jffnms/mysql.pipe"
template("INSERT INTO syslog (date,date_logged,host,me ssage) VALUES ('$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC',NOW\(\),'$FULLHOST','$MSG');\n")
template-escape(yes));
};
## Finally add de log condition
log {
source(s_jffnms);
destination(d_jffnms);
};
-------------------------------------------------------------------------------------------------------------
when I execute the command "/etc/init.d/syslog-ng restart" I get the error:
/etc/init.d/syslog-ng: line 26: s_jffnms: No such file or directory
Could somebody help me with this??
Thansk very much...
Almathely
P.S.:
The problem with the graphs that I had were resolve when I reinstall all.
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/