-
Notifications
You must be signed in to change notification settings - Fork 0
/
cricket-conf.pl.sample
95 lines (83 loc) · 4.06 KB
/
cricket-conf.pl.sample
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Sample Cricket configuration file.
# This file is looked for in the same directory where the executable
# scripts are located, or in /usr/local/etc/cricket-conf.pl.
# In its absence, the rules for Cricket 1.0.2 and previous versions
# apply, i.e. Cricket looks at your HOME directory to find its
# components.
#
# The commented out variables are optional and should probably
# not be tweaked unless you know what you're doing.
#
# It is possible to modify the Perl environment, e.g. by adding
# "use lib /foo" to this file.
# $Id: cricket-conf.pl.sample,v 1.15 2004/06/17 20:01:41 jakeb Exp $
package Common::global;
$gCricketHome = "/home/cricket";
$gInstallRoot = "$gCricketHome/cricket";
#$gConfigRoot = "$gCricketHome/cricket-config";
# Whether to optimize config tree access for the collector by
# copying the database into memory on startup.
# Switch off if your collector becomes too big in run time.
# Most sites will probably want slurp, this is the default.
#$gDbAccess = "slurp"; # Slurp the database into memory
#$gDbAccess = "lookup"; # Use normal DB lookups
# Where cricket caches generated images.
#$gCacheDir = "/tmp/cricket-cache";
# It is strongly recommended that you *not* set a global logLevel.
# Use the CRICKET_LOG_LEVEL environment variable or the
# -logLevel <level> option instead.
#$gLogLevel = "info";
# It is strongly recommended that you *not* set a global logFormat.
# Use the CRICKET_LOG_FORMAT environment variable or the
# -logFormat <format> option instead.
# Three formats are supported by Log.pm. Minimal, standard and extended.
# Consult the documentation. Default format is standard.
#$gLogFormat = "standard";
# Pick the style of URL you want Cricket to use when generating
# self-referencing URLs (either URL's to targets, or URL's to
# graphed images).
# It is recommended not to touch this unless you need to.
$gUrlStyle="classic"; # What Cricket before 1.0.4 did.
#$gUrlStyle="relative"; # Required if Cricket sits behind a reverse proxy
#$gUrlStyle="pathinfo"; # Encode the target in the URL path for authentication
# Set this to "1" to enable the new (and experimental!) feature to
# use long RRD datasource names. See the CHANGES file before enabling
# this.
$gLongDSName=0;
# Set to "1" to make collector log fully qualified datasource names.
# e.g. When enabled, you get "/Switches/Cat4000/Core/FastEthernet0_1"
# instead of just "FastEthernet0_1".
$gLogFullPath=0;
# Set this to "1" to enable the tag search feature. When enabled
# this adds a small search box to the bottom of the grapher
# window, which can be used to do a recursive search on
# values contained in the chassis target. It is currently
# limited to searching for a value in the snmp-host and display-name
# tags.
$gEnableSearch=0;
# For users of monitoring thresholds. This variable defines how to treat
# conditions where a threshold is tested against an unavailable value or
# a database lookup error.
# Set to 1, and it will treat unvailable values (or NaNs) as alarms.
# Set to 0 or undefined it will not treat NaNs as alarms.
$gEnableNoValueAlarms = 0;
#
# Controls whether statistics are collected for the time it takes collector to
# process each subtree.
#$gSubtreeTimes = 0;
#
# Specifies the executable to use for sending email from collector runs.
# You would normally not need to set this as it only applies to any error
# messages generated, and in a typical setup where the collector is run from
# crond, the cron daemon will take care of emailing any output to the user.
#$gMailer = '/bin/mailx';
#
# On the Win32 platform, files cannot be replaced when they pinned (in use)
# by a running process. This mean that multiple collection runs can make it
# difficult to recompile config.db. The optimal solution is to stop the
# collection runs and then recompile, but this flag is another approach.
# Set it to 1, and every collection will create a copy of config.db with
# the unique name config.db.$PID~ where $PID is the process id. Warning:
# enabling this option will create multiple copies of config.db that are
# not cleaned up automatically.
$gCopyConfig = 0;