-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
_config.pl.example
27 lines (22 loc) · 914 Bytes
/
_config.pl.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Rename this file to _config.pl to customize behavior.
# if you don't define a config file the default is used: $config = [ {} ];
# which means that all access log entries will be submitted to the
# default zabbix host as specified in the config file.
$CONFIG = [
{
# example to filter out all paths starting with /zabbix
filter => sub { !($_[0]->{path} =~ m|^/zabbix|); },
},
{
# example to submit all access log entries for worktrail.net to another zabbix host.
host=> 'worktrail.net',
filter => sub { $_[0]->{hostname} eq 'worktrail.net'; },
},
];
$DEBUG = 1;
$DRYRUN = 0;
$ZABBIX_SENDER = '/usr/bin/zabbix_sender';
$ZABBIX_CONF = '/etc/zabbix/zabbix_agentd.conf';
# MAXAGE is the maximum age of log entries to process, all older lines are ignored
# Since this script is meant to be run every 10 minutes, make sure we don't process more logfile lines.
$MAXAGE = (2+10)*60*60;