by cybex_77 on Tue Dec 18, 2007 7:33 pm
I have managed to get it working with the database using the following template.
$template cacti,"insert into logs_incoming(host, facility, priority, status, date, time, message) values ('%HOSTNAME%', %syslogfac
ility%, %syslogpriority%, %syslogpriority%, DATE('%timereported:::date-mysql%'), TIME('%timereported:::date-mysql%'), '%msg:::drop-l
ast-lf%')",sql
The only issue I am having now is that the month is being used as the hostname as you can see from the below.
insert into logs_incoming(host, facility, priority, status, date, time, message) values ('Dec', 20, 4, 4, DATE('20071218192230'), TIME('20071218192230'), ' 2007 18:17:25: %ASA-4-106023: Deny udp src outside:x.x.x.x/xxx dst inside:x.x.x.x/xxx by access-group "inbound"')
I need it to pickup the IP address instead of the date field any suggestions?
Thanks for all your help so far.