Skip to end of metadata
Go to start of metadata

Following is a copy of demo server /etc/n2rrd/n2rrd.conf file.

# Configuration directory

CONF_DIR = /etc/n2rrd

# Default RRA database location
RRA_DIR = /var/log/n2rrd

#
# sub directory of CONF_DIR
TEMPLATES_DIR = templates

#
# SERVICE_MAPS filename, under CONF_DIR
#
SERVICE_NAME_MAPS = templates/maps/service_name_maps

#
# logfilename
LOGFILE     = /var/log/n2rrd/n2rrd.log

#
# Document root, used by rrd2graph
DOCUMENT_ROOT = /srv/www/vhosts/sysnetmon.diglinks.com
#

#
# Sub directory of Document root
# where temporary images are created
CACHE_DIR = n2rrd_images_cache

#
# This value is used for temp files created by zoom rrd2graph:zoom function
# used only the CGI is running under mod_perl
# files created in this directory are removed after words, but in case of system crash
# you will see file names with extention *.image
TMPDIR=/tmp

#
# The binary
RRDTOOL = /usr/bin/rrdtool

#
# This will prevent from displaying the whole PATH when looking at the source
RRD_PATH_HIDDEN=0

#
# The following will display nagios url, which in turn show the current host status
# view.
# Disable it by setting the value to "0", in case you are using nagios 1.x
NAGIOS_HOST_URL=1

#
# The following variable is used to change the location of your CGI
# e.g:
# I use it for testing with or without mod_perl by passing the following
# values
#   cgi-bin becomes /cgi-bin/rrd2graph.cgi
#   perl    becomes /perl/rrd2graph.cgi
CGIBIN = cgi-bin

# ENABLE/DISABLE other image formats for download such as PNG, PDF, EPS and SVG
# also check OPTIONAL_CGIBIN2 variable
# NOTE: This feature doesn't work on all systems
OPTIONAL_IMAGE_FORMATS = 1

# this one is used for avoiding mod_perl, in case of image formats PDF, EPS and SVG
# Why: to avoid UNKNOWN bug when generating above mentined image formats
# example error I got
#       OOPS: Cairo has issues it can't even die: out of memory
OPTIONAL_CGIBIN2 = cgi-bin

# Nagios status logfile location, also used by rrd2graph.cgi
# check for read permissions
NAGIOS_STATUS_FILE           = /var/nagios/ramcache/status.dat

#
# The following should work for most nagios installations
NAGIOS_CGIBIN = nagios/cgi-bin

#
# Default summary thumbnail images are based on Daily values by default
# possible options are
# Weekly
# Monthly
# Yearly
THUMB_DISPLAY = Daily

#
# display in columns
# possible values are 2|3
THUMB_DISPLAY_COLUMNS = 3

#
# Height of thumb image
THUMB_HEIGHT = 100

#
# Widht of thumb image
THUMB_WIDTH = 200

#
# directory under CONF_DIR
# where zoom function javascript reside
#
ZOOM_JS = js/zoom.js

#
# if enabled will save NAGIOS_* environemnt variables
# 0 = disabled
# 1 = enabled
SAVE_NAGIOS_ENVIRONMENT_VARS = 0

#
# the following variable is used for url option demo=STR
# length apend a number in addition to string
# e.g. if passed to graph URL demo=demo
# the output graph will be called "demo1234"
# usefull, when giving out graph's witout disclosing the system name
DEMO_STR_LENGTH              = 3

#PREDICTION
# PREDICTION variable parameter will be replaced for different graphs
# with the end date of graph to the ones defined below
# helpfull when prediction graphs are created
PREDICTION_Daily             = +2d
PREDICTION_Weekly            = +7d
PREDICTION_Monthly           = +15d
PREDICTION_Yearly            = +6m

# Create RRA template dynamically if not present
# 0 = disabled
# 1 = enabled
DYN_RRA_CREATE               = 1

# Create GRAPH template dynamically if not present
# 0 = disabled
# 1 = enabled
DYN_GRAPH_CREATE               = 1

# If new DS found in performance data, then update RRD archive dynamically
# 0 = disabled
# 1 = enabled
DYN_ADD_NEW_DS               = 1

# here you can override the default DS type for returned per4formance data
# GAUGE|COUNTER|DERIVE|ABSOLUTE
# e.g plugin check_ping returns rta and pl as performance data, the maps file entry would be
#   check_ping=rta:GAUGE,pl:GAUGE
#
DYN_RRA_PLUGIN_MAPS          = templates/maps/rra_plugin

# see RRD document for XFiles Factor
DYN_RRA_XFF                  = 0.5

# By default how many RRA is required
DYN_CF                       = AVERAGE,MAX,MIN,LAST
# define STEPS:DAYS(ROWS)
# from man:
#  STEPS Defines how many Primary Data Points (PDPs) are consolidated using the Consolidation Function (CF) to
#        create the stored value.
#  DAYS = Rows = Defines the number of Rows (records) stored in this RRA.
DYN_ARCHIVE_STEPS_DAYS       = 1:2,30:32,120:189,1440:1890

# If enabled: if a value has UOM=KB|MB|GB|TB|PB|EB (see nagios plugin development document for UOM definition)
# then will convert them to Bytes, which scales automagically when graphing
# allowed 0|1
# 0 = disabled
# 1 = enabled
DYN_DS_CONVERT_TO_BYTES      = 1

# If enabled: if a value has UOM=MS|US|NS (see nagios plugin development document for UOM definition)
# then will convert them to Seconds
# 0 = disabled
# 1 = enabled
DYN_DS_CONVERT_TO_SECONDS    = 0

#
# load predefined RGB colors for dynamic usgae
DYN_RGB_COLORS_MAPS          = templates/maps/rgb.txt
# Default color for single value
DYN_GRAPH_USED_VALUE_COLOR   = 33a3ff
# want to include, some RRA options to all dynamic graph templates, example color theme
DYN_GRAPH_INC_RRA_OPT        = 1
# if enabled then use given file
DYN_GRAPH_INC_RRA_OPT_FILE   = templates/graph/DYN_GRAPH_INC_RRA_OPT.txt
#ENABLE/DISABLE summary All link in Graph menu
GRAPH_SUMMARY_ALL_LINK = 1
#ENABLE/DISABLE summary all for Select_DS menu
DS_SUMMARY_ALL_LINK = 1

# Location of rrd2graph.css
RRD2GRAPH_CSS_PATH          = /nagios/stylesheets/rrd2graph.css

#
# Use rrdcached
RRD_CACHED                  = 1
# Mandatory address (see man rrdcached) 
RRD_CACHED_ADDRESS          = unix:/var/rrdtool/rrdcached/rrdcached.sock

#
# In case the configured step/interval missmatch with step in RRD file
# Action = REMOVE will remove the RRD file, at next attempt the proper step/interval will be used
# anyother string as value will ignore and no action will be taken.
#
# NOTE if the steps are different, the only way to stored correct values is to remove the RRD file
# any other string will do nothing 
RRD_FILE_STEP_MISSMATCH_ACTION = REMOVE


# ENABLE/DISABLE rrd2graph debugging (debug info are written to n2rrd.log)
RRD2GRAPH_DEBUG         = 1




  • No labels