1# Sample Cricket configuration file. 2# This file is looked for in the same directory where the executable 3# scripts are located, or in /usr/local/etc/cricket-conf.pl. 4# In its absence, the rules for Cricket 1.0.2 and previous versions 5# apply, i.e. Cricket looks at your HOME directory to find its 6# components. 7# 8# The commented out variables are optional and should probably 9# not be tweaked unless you know what you're doing. 10# 11# It is possible to modify the Perl environment, e.g. by adding 12# "use lib /foo" to this file. 13# $Id: cricket-conf.pl.sample,v 1.12 2004/02/10 18:06:44 xkilian Exp $ 14package Common::global; 15 16$gCricketHome = "/usr/local"; 17$gInstallRoot = "$gCricketHome/cricket"; 18#$gConfigRoot = "$gCricketHome/cricket-config"; 19 20# Whether to optimize config tree access for the collector by 21# copying the database into memory on startup. 22# Switch off if your collector becomes too big in run time. 23# Most sites will probably want slurp, this is the default. 24#$gDbAccess = "slurp"; # Slurp the database into memory 25#$gDbAccess = "lookup"; # Use normal DB lookups 26 27# Where cricket caches generated images. 28#$gCacheDir = "/tmp/cricket-cache"; 29# It is strongly recommended that you *not* set a global logLevel. 30# Use the CRICKET_LOG_LEVEL environment variable or the 31# -logLevel <level> option instead. 32#$gLogLevel = "info"; 33 34# It is strongly recommended that you *not* set a global logFormat. 35# Use the CRICKET_LOG_FORMAT environment variable or the 36# -logFormat <format> option instead. 37# Three formats are supported by Log.pm. Minimal, standard and extended. 38# Consult the documentation. Default format is standard. 39#$gLogFormat = "standard"; 40 41# Pick the style of URL you want Cricket to use when generating 42# self-referencing URLs (either URL's to targets, or URL's to 43# graphed images). 44# It is recommended not to touch this unless you need to. 45$gUrlStyle="classic"; # What Cricket before 1.0.4 did. 46#$gUrlStyle="relative"; # Required if Cricket sits behind a reverse proxy 47#$gUrlStyle="pathinfo"; # Encode the target in the URL path for authentication 48 49# Set this to "1" to enable the new (and experimental!) feature to 50# use long RRD datasource names. See the CHANGES file before enabling 51# this. 52$gLongDSName=0; 53 54# Set to "1" to make collector log fully qualified datasource names. 55# e.g. When enabled, you get "/Switches/Cat4000/Core/FastEthernet0_1" 56# instead of just "FastEthernet0_1". 57$gLogFullPath=0; 58 59# Set this to "1" to enable the tag search feature. When enabled 60# this adds a small search box to the bottom of the grapher 61# window, which can be used to do a recursive search on 62# values contained in the chassis target. It is currently 63# limited to searching for a value in the snmp-host and display-name tags. 64$gEnableSearch=1; 65 66# For users of monitoring thresholds. This variable defines how to treat 67# conditions where a threshold is tested against an unavailable value or 68# a database lookup error. 69# Set to 1, and it will treat unvailable values (or NaNs) as alarms. 70# Set to 0 or undefined it will not treat NaNs as alarms. 71$gEnableNoValueAlarms = 0; 72