Imported Upstream version 0.6.24+dfsg1
This commit is contained in:
84
sample-config/Makefile.in
Normal file
84
sample-config/Makefile.in
Normal file
@@ -0,0 +1,84 @@
|
||||
prefix=@prefix@
|
||||
SYSCONFDIR=@sysconfdir@
|
||||
BINDIR=@bindir@
|
||||
LIBEXECDIR=@libexecdir@
|
||||
LIBDIR=@libdir@
|
||||
CGIDIR=@sbindir@
|
||||
HTMLDIR=@datadir@
|
||||
INSTALL=@INSTALL@
|
||||
INSTALL_OPTS=@INSTALL_OPTS@
|
||||
PERFDATADIR=@PERFDATA_DIR@
|
||||
DATAROOTDIR=@datarootdir@
|
||||
PKG_NAME=@PKG_NAME@
|
||||
PKG_VERSION=@PKG_VERSION@
|
||||
HTTPD_CONF=@HTTPD_CONF@
|
||||
CP=@CP@
|
||||
|
||||
all html:
|
||||
|
||||
clean:
|
||||
-rm -f pnp/config.php
|
||||
-rm -f pnp/process_perfdata.cfg-sample
|
||||
-rm -f pnp/npcd.cfg-sample
|
||||
-rm -f misccommands.cfg-sample
|
||||
-rm -f nagios.cfg-sample
|
||||
-rm -f httpd.conf
|
||||
-rm -f pnp/pnp4nagios_release
|
||||
-rm -f lighttpd.pnp4nagios.conf
|
||||
-rm -f nginx.pnp4nagios.conf
|
||||
|
||||
distclean: clean
|
||||
-rm -f Makefile
|
||||
|
||||
devclean: distclean
|
||||
|
||||
install:
|
||||
-rm -f $(DESTDIR)$(HTMLDIR)/conf/config.php
|
||||
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/config.d
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/check_commands
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/pages
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/pnp4nagios_release $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/background.pdf $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR)/config.php.$(PKG_VERSION); \
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR); \
|
||||
|
||||
install-config:
|
||||
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/check_commands
|
||||
$(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/pages
|
||||
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR)/config.php.$(PKG_VERSION); \
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR); \
|
||||
|
||||
if [ ! -e $(DESTDIR)$(SYSCONFDIR)/config_local.php ] ;then \
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR)/config_local.php; \
|
||||
fi
|
||||
|
||||
if [ -e $(DESTDIR)$(SYSCONFDIR)/process_perfdata.cfg ] ;then \
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/process_perfdata.cfg-sample $(DESTDIR)$(SYSCONFDIR)/process_perfdata.cfg.$(PKG_VERSION); \
|
||||
else\
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/process_perfdata.cfg-sample $(DESTDIR)$(SYSCONFDIR)/process_perfdata.cfg; \
|
||||
fi
|
||||
|
||||
if [ -e $(DESTDIR)$(SYSCONFDIR)/npcd.cfg ] ;then \
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/npcd.cfg-sample $(DESTDIR)$(SYSCONFDIR)/npcd.cfg.$(PKG_VERSION); \
|
||||
else\
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/npcd.cfg-sample $(DESTDIR)$(SYSCONFDIR)/npcd.cfg; \
|
||||
fi
|
||||
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/rra.cfg-sample $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) misccommands.cfg-sample $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) nagios.cfg-sample $(DESTDIR)$(SYSCONFDIR)
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/check_commands/check_nwstat.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/check_commands/check_nrpe.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/check_commands/check_all_local_disks.cfg-sample $(DESTDIR)$(SYSCONFDIR)/check_commands
|
||||
$(INSTALL) -m 644 $(INSTALL_OPTS) pnp/pages/web_traffic.cfg-sample $(DESTDIR)$(SYSCONFDIR)/pages
|
||||
|
||||
install-webconf:
|
||||
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(HTTPD_CONF)
|
||||
$(INSTALL) -m 644 httpd.conf $(DESTDIR)$(HTTPD_CONF)/$(PKG_NAME).conf
|
||||
|
||||
30
sample-config/httpd.conf.in
Normal file
30
sample-config/httpd.conf.in
Normal file
@@ -0,0 +1,30 @@
|
||||
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
|
||||
|
||||
Alias @BASE_URL@ "@datarootdir@"
|
||||
|
||||
<Directory "@datarootdir@">
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
#
|
||||
# Use the same value as defined in nagios.conf
|
||||
#
|
||||
AuthName "Nagios Access"
|
||||
AuthType Basic
|
||||
AuthUserFile /usr/local/nagios/etc/htpasswd.users
|
||||
Require valid-user
|
||||
<IfModule mod_rewrite.c>
|
||||
# Turn on URL rewriting
|
||||
RewriteEngine On
|
||||
Options symLinksIfOwnerMatch
|
||||
# Installation directory
|
||||
RewriteBase @BASE_URL@/
|
||||
# Protect application and system files from being viewed
|
||||
RewriteRule "^(?:application|modules|system)/" - [F]
|
||||
# Allow any files or directories that exist to be displayed directly
|
||||
RewriteCond "%{REQUEST_FILENAME}" !-f
|
||||
RewriteCond "%{REQUEST_FILENAME}" !-d
|
||||
# Rewrite all other URLs to index.php/URL
|
||||
RewriteRule "^.*$" "index.php/$0" [PT]
|
||||
</IfModule>
|
||||
</Directory>
|
||||
20
sample-config/lighttpd.pnp4nagios.conf.in
Normal file
20
sample-config/lighttpd.pnp4nagios.conf.in
Normal file
@@ -0,0 +1,20 @@
|
||||
#
|
||||
# Sample Lighttpd Config snippet.
|
||||
# Tested on Debian.
|
||||
#
|
||||
server.modules += ( "mod_auth" )
|
||||
|
||||
alias.url += (
|
||||
"@BASE_URL@" => "@datarootdir@"
|
||||
)
|
||||
|
||||
$HTTP["url"] =~ "(^@BASE_URL@)" {
|
||||
auth.backend = "htpasswd"
|
||||
auth.backend.htpasswd.userfile = "/usr/local/nagios/etc/htpasswd.users"
|
||||
auth.require = ( "" => (
|
||||
"method" => "basic",
|
||||
"realm" => "Nagios Access",
|
||||
"require" => "valid-user"
|
||||
)
|
||||
)
|
||||
}
|
||||
44
sample-config/misccommands.cfg-sample.in
Normal file
44
sample-config/misccommands.cfg-sample.in
Normal file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# definitions for PNP processing commands
|
||||
#
|
||||
# please uncomment the appropriate definitions and make sure
|
||||
# that there aren't duplicate entries in your config
|
||||
#
|
||||
# Synchronous mode
|
||||
#
|
||||
|
||||
#define command {
|
||||
# command_name process-service-perfdata
|
||||
# command_line @PERL@ @libexecdir@/process_perfdata.pl
|
||||
#}
|
||||
#
|
||||
#define command {
|
||||
# command_name process-host-perfdata
|
||||
# command_line @PERL@ @libexecdir@/process_perfdata.pl -d HOSTPERFDATA
|
||||
#}
|
||||
|
||||
#
|
||||
# Bulk mode
|
||||
#
|
||||
#define command {
|
||||
# command_name process-service-perfdata-file
|
||||
# command_line @libexecdir@/process_perfdata.pl --bulk @localstatedir@/service-perfdata
|
||||
#}
|
||||
|
||||
#define command {
|
||||
# command_name process-host-perfdata-file
|
||||
# command_line @libexecdir@/process_perfdata.pl --bulk @localstatedir@/host-perfdata
|
||||
#}
|
||||
|
||||
#
|
||||
# Bulk with NPCD mode
|
||||
#
|
||||
#define command {
|
||||
# command_name process-service-perfdata-file
|
||||
# command_line /bin/mv @localstatedir@/service-perfdata @PERFDATA_SPOOL_DIR@/service-perfdata.$TIMET$
|
||||
#}
|
||||
|
||||
#define command {
|
||||
# command_name process-host-perfdata-file
|
||||
# command_line /bin/mv @localstatedir@/host-perfdata @PERFDATA_SPOOL_DIR@/host-perfdata.$TIMET$
|
||||
#}
|
||||
42
sample-config/nagios.cfg-sample.in
Normal file
42
sample-config/nagios.cfg-sample.in
Normal file
@@ -0,0 +1,42 @@
|
||||
#
|
||||
# definitions for PNP in nagios.cfg (icinga.cfg)
|
||||
# please make sure that you don't have duplicate entries
|
||||
#
|
||||
# Synchronous mode
|
||||
#
|
||||
process_performance_data=1
|
||||
|
||||
enable_environment_macros=1 # available since Nagios 3.x
|
||||
|
||||
service_perfdata_command=process-service-perfdata
|
||||
|
||||
host_perfdata_command=process-host-perfdata # NOT advisable prior to Nagios 3.0
|
||||
|
||||
#
|
||||
# Bulk / NPCD mode
|
||||
#
|
||||
|
||||
process_performance_data=1
|
||||
|
||||
# *** the template definition differs from the one in the original nagios.cfg
|
||||
#
|
||||
service_perfdata_file=@localstatedir@/service-perfdata
|
||||
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
|
||||
service_perfdata_file_mode=a
|
||||
service_perfdata_file_processing_interval=15
|
||||
service_perfdata_file_processing_command=process-service-perfdata-file
|
||||
|
||||
# *** the template definition differs from the one in the original nagios.cfg
|
||||
#
|
||||
host_perfdata_file=@localstatedir@/host-perfdata
|
||||
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
|
||||
host_perfdata_file_mode=a
|
||||
host_perfdata_file_processing_interval=15
|
||||
host_perfdata_file_processing_command=process-host-perfdata-file
|
||||
|
||||
#
|
||||
# Module mode
|
||||
#
|
||||
event_broker_options=-1 # minimum 4+8=12
|
||||
process_performance_data=1
|
||||
broker_module=@libdir@/npcdmod.o config_file=@sysconfdir@/npcd.cfg
|
||||
34
sample-config/nginx.pnp4nagios.conf.in
Normal file
34
sample-config/nginx.pnp4nagios.conf.in
Normal file
@@ -0,0 +1,34 @@
|
||||
# SAMPLE CONFIG SNIPPETS FOR NGINX WEB SERVER
|
||||
# Contributed by Thomas Charbonnel <thomas@evax.fr>
|
||||
#
|
||||
location @BASE_URL@ {
|
||||
# e.g. /usr/local/pnp4nagios/share;
|
||||
alias @datarootdir@;
|
||||
auth_basic "Nagios Access";
|
||||
auth_basic_user_file /usr/local/nagios/etc/htpasswd.users;
|
||||
index index.php;
|
||||
# if we have e.g. /pnp4nagios/media/css/common.css
|
||||
# nginx will check
|
||||
# /usr/local/png4nagios/share/media/css/common/css
|
||||
# and return it if it's found
|
||||
# if it can't find a matching file even adding a trailing /
|
||||
# the request is handled to the @pnp4nagios location
|
||||
try_files $uri $uri/ @pnp4nagios;
|
||||
}
|
||||
location @pnp4nagios {
|
||||
# this implies the definition of some backend
|
||||
# e.g
|
||||
# upstream php {
|
||||
# server 127.0.0.1:9000;
|
||||
# }
|
||||
fastcgi_pass php;
|
||||
fastcgi_index index.php;
|
||||
# implies an external file, but this is common nginx practice
|
||||
include fastcgi_params;
|
||||
# this splits out the trailing path
|
||||
# eg index.php?host -> $fastcgi_path_info == 'host'
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME @datarootdir@/index.php;
|
||||
}
|
||||
|
||||
BIN
sample-config/pnp/background-letter.pdf
Normal file
BIN
sample-config/pnp/background-letter.pdf
Normal file
Binary file not shown.
BIN
sample-config/pnp/background.pdf
Normal file
BIN
sample-config/pnp/background.pdf
Normal file
Binary file not shown.
@@ -0,0 +1,45 @@
|
||||
#
|
||||
# Adapt the Template if check_command should not be the PNP Template
|
||||
#
|
||||
# check_command check_nrpe!check_all_local_disks
|
||||
# ________0__________| |
|
||||
# ________1________________________|
|
||||
#
|
||||
# CUSTOM_TEMPLATE = 0,1
|
||||
#
|
||||
# Change the RRD Datatype based on the check_command Name.
|
||||
# Defaults to GAUGE.
|
||||
#
|
||||
# Adjust the whole RRD Database
|
||||
# DATATYPE = COUNTER
|
||||
#
|
||||
# Adjust every single DS by using a List of Datatypes.
|
||||
# DATATYPE = GAUGE,GAUGE,COUNTER,COUNTER
|
||||
|
||||
# Use the MIN value for newly created RRD Databases.
|
||||
# This value defaults to 0
|
||||
# USE_MIN_ON_CREATE = 1
|
||||
#
|
||||
# Use the MAX value for newly created RRD Databases.
|
||||
# This value defaults to 0
|
||||
# USE_MAX_ON_CREATE = 1
|
||||
|
||||
# Use a single RRD Database per Service
|
||||
# This Option is only used while creating new RRD Databases
|
||||
#
|
||||
# RRD_STORAGE_TYPE = SINGLE
|
||||
#
|
||||
# Use multiple RRD Databases per Service
|
||||
# One RRD Database per Datasource.
|
||||
# RRD_STORAGE_TYPE = MULTIPLE
|
||||
#
|
||||
RRD_STORAGE_TYPE = MULTIPLE
|
||||
|
||||
# RRD Heartbeat in seconds
|
||||
# This Option is only used while creating new RRD Databases
|
||||
# Existing RRDs can be changed by "rrdtool tune"
|
||||
# More on http://oss.oetiker.ch/rrdtool/doc/rrdtune.en.html
|
||||
#
|
||||
# This value defaults to 8640
|
||||
# RRD_HEARTBEAT = 305
|
||||
|
||||
46
sample-config/pnp/check_commands/check_nrpe.cfg-sample
Normal file
46
sample-config/pnp/check_commands/check_nrpe.cfg-sample
Normal file
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Adapt the Template if check_command should not be the PNP Template
|
||||
#
|
||||
# check_command check_nrpe!check_all_local_disks
|
||||
# ________0__________| |
|
||||
# ________1________________________|
|
||||
#
|
||||
# User ARG1
|
||||
CUSTOM_TEMPLATE = 1
|
||||
#
|
||||
# Change the RRD Datatype based on the check_command Name.
|
||||
# Defaults to GAUGE.
|
||||
#
|
||||
# Adjust the whole RRD Database
|
||||
# DATATYPE = COUNTER
|
||||
#
|
||||
# Adjust every single DS by using a List of Datatypes.
|
||||
# DATATYPE = GAUGE,GAUGE,COUNTER,COUNTER
|
||||
|
||||
# Use the MIN value for newly created RRD Databases.
|
||||
# This value defaults to 0
|
||||
# USE_MIN_ON_CREATE = 1
|
||||
#
|
||||
# Use the MAX value for newly created RRD Databases.
|
||||
# This value defaults to 0
|
||||
# USE_MAX_ON_CREATE = 1
|
||||
|
||||
# Use a single RRD Database per Service
|
||||
# This Option is only used while creating new RRD Databases
|
||||
#
|
||||
# RRD_STORAGE_TYPE = SINGLE
|
||||
#
|
||||
# Use multiple RRD Databases per Service
|
||||
# One RRD Database per Datasource.
|
||||
# RRD_STORAGE_TYPE = MULTIPLE
|
||||
#
|
||||
# RRD_STORAGE_TYPE = SINGLE
|
||||
|
||||
# RRD Heartbeat in seconds
|
||||
# This Option is only used while creating new RRD Databases
|
||||
# Existing RRDs can be changed by "rrdtool tune"
|
||||
# More on http://oss.oetiker.ch/rrdtool/doc/rrdtune.en.html
|
||||
#
|
||||
# This value defaults to 8640
|
||||
# RRD_HEARTBEAT = 305
|
||||
|
||||
46
sample-config/pnp/check_commands/check_nwstat.cfg-sample
Normal file
46
sample-config/pnp/check_commands/check_nwstat.cfg-sample
Normal file
@@ -0,0 +1,46 @@
|
||||
#
|
||||
# Adapt the Template if check_command should not be the PNP Template
|
||||
#
|
||||
# check_command check_nwstat!LOAD5!80%!90%
|
||||
# ________0__________| | | |
|
||||
# ________1____________________| | |
|
||||
# ________2_________________________| |
|
||||
# ________3____________________________|
|
||||
#
|
||||
CUSTOM_TEMPLATE = 0,1
|
||||
#
|
||||
# Change the RRD Datatype based on the check_command Name.
|
||||
# Defaults to GAUGE.
|
||||
#
|
||||
# Adjust the whole RRD Database
|
||||
# DATATYPE = COUNTER
|
||||
#
|
||||
# Adjust every single DS by using a List of Datatypes.
|
||||
# DATATYPE = GAUGE,GAUGE,COUNTER,COUNTER
|
||||
|
||||
# Use the MIN value for newly created RRD Databases.
|
||||
# This value defaults to 0
|
||||
# USE_MIN_ON_CREATE = 1
|
||||
#
|
||||
# Use the MAX value for newly created RRD Databases.
|
||||
# This value defaults to 0
|
||||
# USE_MAX_ON_CREATE = 1
|
||||
|
||||
# Use a single RRD Database per Service
|
||||
# This Option is only used while creating new RRD Databases
|
||||
# RRD_STORAGE_TYPE = SINGLE
|
||||
#
|
||||
# Use multiple RRD Databases per Service
|
||||
# One RRD Database per Datasource.
|
||||
# RRD_STORAGE_TYPE = MULTIPLE
|
||||
#
|
||||
# RRD_STORAGE_TYPE = SINGLE
|
||||
|
||||
# RRD Heartbeat in seconds
|
||||
# This Option is only used while creating new RRD Databases
|
||||
# Existing RRDs can be changed by "rrdtool tune"
|
||||
# More on http://oss.oetiker.ch/rrdtool/doc/rrdtune.en.html
|
||||
#
|
||||
# This value defaults to 8640
|
||||
# RRD_HEARTBEAT = 305
|
||||
|
||||
275
sample-config/pnp/config.php.in
Normal file
275
sample-config/pnp/config.php.in
Normal file
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
##
|
||||
## Program: @PKG_NAME@-@PKG_VERSION@ , Performance Data Addon for Nagios(r)
|
||||
## License: GPL
|
||||
## Copyright (c) 2005-2010 Joerg Linge (http://www.pnp4nagios.org)
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or
|
||||
## modify it under the terms of the GNU General Public License
|
||||
## as published by the Free Software Foundation; either version 2
|
||||
## of the License, or (at your option) any later version.
|
||||
##
|
||||
## This program is distributed in the hope that it will be useful,
|
||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
## GNU General Public License for more details.
|
||||
##
|
||||
## You should have received a copy of the GNU General Public License
|
||||
## along with this program; if not, write to the Free Software
|
||||
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
##
|
||||
# Credit: Tobi Oetiker, http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
|
||||
#
|
||||
|
||||
# URL rewriting is used by default to create friendly URLs.
|
||||
# Set this value to '0' if URL rewriting is not available on your system.
|
||||
#
|
||||
$conf['use_url_rewriting'] = 1;
|
||||
#
|
||||
# Location of rrdtool binary
|
||||
#
|
||||
$conf['rrdtool'] = "@RRDTOOL@";
|
||||
#
|
||||
# RRDTool image size of graphs
|
||||
#
|
||||
$conf['graph_width'] = "500";
|
||||
$conf['graph_height'] = "100";
|
||||
#
|
||||
# RRDTool image size of graphs in zoom window
|
||||
#
|
||||
$conf['zgraph_width'] = "500";
|
||||
$conf['zgraph_height'] = "100";
|
||||
#
|
||||
# Right zoom box offset.
|
||||
# rrdtool 1.3.x = 22px
|
||||
# rrdtool 1.4.x = 30px
|
||||
#
|
||||
$conf['right_zoom_offset'] = 30;
|
||||
|
||||
#
|
||||
# RRDTool image size of PDFs
|
||||
#
|
||||
$conf['pdf_width'] = "675";
|
||||
$conf['pdf_height'] = "100";
|
||||
$conf['pdf_page_size'] = "A4"; # A4 or Letter
|
||||
$conf['pdf_margin_top'] = "30";
|
||||
$conf['pdf_margin_left'] = "17.5";
|
||||
$conf['pdf_margin_right'] = "10";
|
||||
#
|
||||
# Additional options for RRDTool
|
||||
#
|
||||
# Example: White background and no border
|
||||
# "--watermark 'Copyright by example.com' --slope-mode --color BACK#FFF --color SHADEA#FFF --color SHADEB#FFF"
|
||||
#
|
||||
$conf['graph_opt'] = "";
|
||||
#
|
||||
# Additional options for RRDTool used while creating PDFs
|
||||
#
|
||||
$conf['pdf_graph_opt'] = "";
|
||||
#
|
||||
# Directory where the RRD Files will be stored
|
||||
#
|
||||
$conf['rrdbase'] = "@PERFDATA_DIR@/";
|
||||
#
|
||||
# Location of "page" configs
|
||||
#
|
||||
$conf['page_dir'] = "@sysconfdir@/pages/";
|
||||
#
|
||||
# Site refresh time in seconds
|
||||
#
|
||||
$conf['refresh'] = "90";
|
||||
#
|
||||
# Max age for RRD files in seconds
|
||||
#
|
||||
$conf['max_age'] = 60*60*6;
|
||||
#
|
||||
# Directory for temporary files used for PDF creation
|
||||
#
|
||||
$conf['temp'] = "/var/tmp";
|
||||
#
|
||||
# Link back to Nagios or Thruk ( www.thruk.org )
|
||||
#
|
||||
$conf['nagios_base'] = "/nagios/cgi-bin";
|
||||
|
||||
#
|
||||
# Link back to check_mk´s multisite ( http://mathias-kettner.de/checkmk_multisite.html )
|
||||
#
|
||||
$conf['multisite_base_url'] = "/check_mk";
|
||||
#
|
||||
# Multisite Site ID this PNP installation is linked to
|
||||
# This is the same value as defined in etc/multisite.mk
|
||||
#
|
||||
$conf['multisite_site'] = "";
|
||||
|
||||
#
|
||||
# check authorization against mk_livestatus API
|
||||
# Available since 0.6.10
|
||||
#
|
||||
$conf['auth_enabled'] = FALSE;
|
||||
|
||||
#
|
||||
# Livestatus socket path
|
||||
#
|
||||
#$conf['livestatus_socket'] = "tcp:localhost:6557";
|
||||
$conf['livestatus_socket'] = "unix:/usr/local/nagios/var/rw/live";
|
||||
|
||||
#
|
||||
# Which user is allowed to see all services or all hosts?
|
||||
# Keywords: <USERNAME>
|
||||
# Example: conf['allowed_for_all_services'] = "nagiosadmin,operator";
|
||||
# This option is used while $conf['auth_enabled'] = TRUE
|
||||
$conf['allowed_for_all_services'] = "";
|
||||
$conf['allowed_for_all_hosts'] = "";
|
||||
|
||||
# Which user is allowed to see additional service links ?
|
||||
# Keywords: EVERYONE NONE <USERNAME>
|
||||
# Example: conf['allowed_for_service_links'] = "nagiosadmin,operator";
|
||||
#
|
||||
$conf['allowed_for_service_links'] = "EVERYONE";
|
||||
|
||||
#
|
||||
# Who can use the host search function ?
|
||||
# Keywords: EVERYONE NONE <USERNAME>
|
||||
#
|
||||
$conf['allowed_for_host_search'] = "EVERYONE";
|
||||
|
||||
#
|
||||
# Who can use the host overview ?
|
||||
# This function is called if no Service Description is given.
|
||||
#
|
||||
$conf['allowed_for_host_overview'] = "EVERYONE";
|
||||
|
||||
#
|
||||
# Who can use the Pages function?
|
||||
# Keywords: EVERYONE NONE <USERNAME>
|
||||
# Example: conf['allowed_for_pages'] = "nagiosadmin,operator";
|
||||
#
|
||||
$conf['allowed_for_pages'] = "EVERYONE";
|
||||
|
||||
#
|
||||
# Which timerange should be used for the host overview site ?
|
||||
# use a key from array $views[]
|
||||
#
|
||||
$conf['overview-range'] = 1 ;
|
||||
|
||||
#
|
||||
# Scale the preview images used in /popup
|
||||
#
|
||||
$conf['popup-width'] = "300px";
|
||||
|
||||
#
|
||||
# jQuery UI Theme
|
||||
# http://jqueryui.com/themeroller/
|
||||
# Possible values are: lightness, smoothness, redmond, multisite
|
||||
$conf['ui-theme'] = 'smoothness';
|
||||
|
||||
# Language definitions to use.
|
||||
# valid options are en_US, de_DE, es_ES, ru_RU, fr_FR
|
||||
#
|
||||
$conf['lang'] = "en_US";
|
||||
|
||||
#
|
||||
# Date format
|
||||
#
|
||||
$conf['date_fmt'] = "d.m.y G:i";
|
||||
|
||||
#
|
||||
# This option breaks down the template name based on _ and then starts to
|
||||
# build it up and check the different template directories for a suitable template.
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# Template to be used: check_esx3_host_net_usage you create a check_esx3.php
|
||||
#
|
||||
# It will find and match on check_esx3 first in templates dir then in templates.dist
|
||||
#
|
||||
$conf['enable_recursive_template_search'] = 1;
|
||||
|
||||
#
|
||||
# Direct link to the raw XML file.
|
||||
#
|
||||
$conf['show_xml_icon'] = 1;
|
||||
|
||||
#
|
||||
# Use FPDF Lib for PDF creation ?
|
||||
#
|
||||
$conf['use_fpdf'] = 1;
|
||||
|
||||
#
|
||||
# Use this file as PDF background.
|
||||
#
|
||||
$conf['background_pdf'] = '@sysconfdir@/background.pdf' ;
|
||||
|
||||
#
|
||||
# Enable Calendar
|
||||
#
|
||||
$conf['use_calendar'] = 1;
|
||||
|
||||
#
|
||||
# Define default views with title and start timerange in seconds
|
||||
#
|
||||
# remarks: required escape on " with backslash
|
||||
#
|
||||
#$views[] = array('title' => 'One Hour', 'start' => (60*60) );
|
||||
$views[] = array('title' => '4 Hours', 'start' => (60*60*4) );
|
||||
$views[] = array('title' => '25 Hours', 'start' => (60*60*25) );
|
||||
$views[] = array('title' => 'One Week', 'start' => (60*60*25*7) );
|
||||
$views[] = array('title' => 'One Month', 'start' => (60*60*24*32) );
|
||||
$views[] = array('title' => 'One Year', 'start' => (60*60*24*380) );
|
||||
|
||||
#
|
||||
# rrdcached support
|
||||
# Use only with rrdtool svn revision 1511+
|
||||
#
|
||||
# $conf['RRD_DAEMON_OPTS'] = 'unix:/tmp/rrdcached.sock';
|
||||
$conf['RRD_DAEMON_OPTS'] = '';
|
||||
|
||||
# A list of directories to search for templates
|
||||
# @datarootdir@/templates.dist is always the last directory to be searched for templates
|
||||
#
|
||||
# Add your own template directories here
|
||||
# First match wins!
|
||||
#$conf['template_dirs'][] = '/usr/local/check_mk/pnp-templates';
|
||||
$conf['template_dirs'][] = '@datarootdir@/templates';
|
||||
$conf['template_dirs'][] = '@datarootdir@/templates.dist';
|
||||
|
||||
#
|
||||
# Directory to search for special templates
|
||||
#
|
||||
$conf['special_template_dir'] = '@datarootdir@/templates.special';
|
||||
|
||||
#
|
||||
# Regex to detect mobile devices
|
||||
# This regex is evaluated against the USER_AGENT String
|
||||
#
|
||||
$conf['mobile_devices'] = 'iPhone|iPod|iPad|android';
|
||||
|
||||
#
|
||||
# additional colour schemes
|
||||
# values taken from www.colorbrewer2.org
|
||||
# for details on usage refer to the documentation of the helper functions
|
||||
#
|
||||
$scheme['Reds'] = array ('#FEE0D2','#FCBBA1','#FC9272','#FB6A4A','#EF3B2C','#CB181D','#A50F15','#67000D');
|
||||
$scheme['Greens'] = array ('#E5F5E0','#C7E9C0','#A1D99B','#74C476','#41AB5D','#23AB45','#006D2C','#00441B');
|
||||
$scheme['Blues'] = array ('#DEEBF7','#C6DBEF','#9ECAE1','#6BAED6','#4292C6','#2171B5','#08519C','#08306B');
|
||||
$scheme['Oranges'] = array ('#FEE6CE','#FDD0A2','#FDAE6B','#FD8D3C','#F16913','#D94801','#A63603','#7F2704');
|
||||
$scheme['Purples'] = array ('#EFEDF5','#DADAEB','#BDBDDC','#9E9AC8','#807DBA','#6A51A3','#54278F','#3F007A');
|
||||
$scheme['RdPu'] = array ('#FDE0DD','#FCC5C0','#FA9FB5','#F768A1','#DD3497','#AE017E','#7A0177','#49006A');
|
||||
$scheme['Dark2'] = array ('#1B9E77','#D95F02','#7570B3','#E7298A','#66A61E','#E6ab02','#a6761d','#666666');
|
||||
$scheme['BrBG'] = array ('#543005','#8C510A','#BF812D','#DFC27D','#F6E8C3','#C7EAE5','#80CDC1','#35978F','#01665E','#003C30');
|
||||
$scheme['PiYG'] = array ('#8E0152','#C51B7D','#DE77AE','#F1B6DA','#FDE0EF','#E6F5D0','#B8E186','#7FBC41','#4D9221','#276419');
|
||||
$scheme['PRGn'] = array ('#40004B','#762A83','#9970AB','#C2A5CF','#E7D4E8','#D9F0D3','#A6DBA0','#5AAE61','#1B7837','#00441B');
|
||||
$scheme['PuOr'] = array ('#7F3B08','#B35806','#E08214','#FDB863','#FEE0B6','#D8DAEB','#B2ABD2','#8073AC','#542788','#2D004B');
|
||||
$scheme['RdBu'] = array ('#67001F','#B2182B','#D6604D','#F4A582','#FDDBC7','#D1E5F0','#92C5DE','#4393C3','#2166AC','#053061');
|
||||
$scheme['RdGy'] = array ('#67001F','#B2182B','#D6604D','#F4A582','#FDDBC7','#E0E0E0','#BABABA','#878787','#4D4D4D','#1A1A1A');
|
||||
$scheme['RdYlBu'] = array ('#A50026','#D73027','#F46D43','#FDAE61','#FEE090','#E0F3F8','#ABD9E9','#74ADD1','#4575B4','#313695');
|
||||
$scheme['RdYlGn'] = array ('#A50026','#D73027','#F46D43','#FDAE61','#FEE08B','#D9EF8B','#A6D96A','#66BD63','#1A9850','#006837');
|
||||
$scheme['Spectral'] = array ('#9E0142','#D53E4F','#F46D43','#FDAE61','#FEE08B','#E6F598','#ABDDA4','#66C2A5','#3288BD','#5E4FA2');
|
||||
$scheme['Paired'] = array ('#A6CEE3','#1F78B4','#B2DF8A','#33A02C','#FB9A99','#E31A1C','#FDBF6F','#FF7F00','#CAB2D6','#6A3D9A');
|
||||
$scheme['mixed1'] = array ('#8C510A','#2166ac','#BF812D','#4393c3','#DFC27D','#92c5de','#F6E8C3','#d1e5f0',
|
||||
'#fddbc7','#C7EAE5','#f4a582','#80CDC1','#d6604d','#35978F','#b2182b','#01665E');
|
||||
$scheme['mixed2'] = array ('#b2182b','#2166ac','#d6604d','#4393c3','#f4a582','#92c5de','#fddbc7','#d1e5f0',
|
||||
'#F6E8C3','#C7EAE5','#DFC27D','#80CDC1','#BF812D','#35978F','#8C510A','#01665E');
|
||||
$scheme['mixed3'] = array ('#67001F','#80CDC1','#B2182B','#35978F','#D6604D','#01665E','#F4A582','#003C30',
|
||||
'#FDDBC7','#92C5DE','#D1E5F0','#2166AC','#4393C3','#8C510A','#053061','#BF812D');
|
||||
?>
|
||||
195
sample-config/pnp/npcd.cfg-sample.in
Normal file
195
sample-config/pnp/npcd.cfg-sample.in
Normal file
@@ -0,0 +1,195 @@
|
||||
# NPCD.cfg - sample configuration file for PNPs NPCD
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation;
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Privilege Options
|
||||
|
||||
user = @nagios_user@
|
||||
group = @nagios_grp@
|
||||
|
||||
#########################
|
||||
# #
|
||||
# Logging Options #
|
||||
# #
|
||||
#########################
|
||||
|
||||
# log_type - define if you want your logs to
|
||||
# 'syslog' or to a 'file'
|
||||
#
|
||||
# log_type = <value>
|
||||
#
|
||||
|
||||
#log_type = file
|
||||
log_type = syslog
|
||||
|
||||
|
||||
# log_file - define a path to your logfile
|
||||
# needed if 'log_type'='file'
|
||||
#
|
||||
# log_file = </path/to/logpath/filename>
|
||||
#
|
||||
|
||||
log_file = @localstatedir@/npcd.log
|
||||
|
||||
|
||||
# max_logfile_size - defines the maximum filesize (bytes)
|
||||
# before the logfile will rotated.
|
||||
#
|
||||
# max_logfile_size = <value> (default 10Mbyte)
|
||||
#
|
||||
|
||||
max_logfile_size = 10485760
|
||||
|
||||
|
||||
# log_level - how much should we log?
|
||||
#
|
||||
# log_level = <integer value>
|
||||
#
|
||||
# 0 = No logging - except errors
|
||||
# 1 = Small logging - some few more output
|
||||
# 2 = More Logging (actual ALL logs)
|
||||
# -1 = DEBUG Mode - ALL Logging and slower processing
|
||||
#
|
||||
|
||||
log_level = 0
|
||||
|
||||
#########################
|
||||
# #
|
||||
# NEEDED OPTIONS #
|
||||
# #
|
||||
#########################
|
||||
|
||||
# perfdata_spool_dir - where we can find the
|
||||
# performance data files
|
||||
#
|
||||
# perfdata_spool_dir = </path/to/directory/>
|
||||
#
|
||||
|
||||
perfdata_spool_dir = @PERFDATA_SPOOL_DIR@
|
||||
|
||||
|
||||
# Execute following command for each found file
|
||||
# in 'perfdata_spool_dir'
|
||||
#
|
||||
# perfdata_file_run_cmd = </path/to/command>
|
||||
#
|
||||
# Must be executable by user/group from above
|
||||
#
|
||||
# perfdata_file_run_cmd = </path/to/filename>
|
||||
#
|
||||
|
||||
perfdata_file_run_cmd = @libexecdir@/@pp_pl_name@
|
||||
|
||||
|
||||
# perfdata_file_run_cmd_args (optional)
|
||||
#
|
||||
# If you wish, you can apply more arguments to the
|
||||
# perfdata_file_run_cmd
|
||||
#
|
||||
# Hint:
|
||||
# NPCD will create a command line like this:
|
||||
# '<perfdata_file_run_cmd> <perfdata_file_run_cmd_args> <filename_from_spool_dir>'
|
||||
#
|
||||
|
||||
perfdata_file_run_cmd_args = --bulk
|
||||
|
||||
|
||||
# identify_npcd (optional)
|
||||
#
|
||||
# If set to one (by default) npcd will append
|
||||
# '-n' to the perfdata_file_run_cmd
|
||||
#
|
||||
# identify_npcd = 0|1 (default: 1)
|
||||
|
||||
identify_npcd = 1
|
||||
|
||||
|
||||
# npcd_max_threads - define how many parallel threads we
|
||||
# should start
|
||||
|
||||
npcd_max_threads = 5
|
||||
|
||||
# sleep_time - how many seconds npcd should wait between dirscans
|
||||
#
|
||||
# sleep_time = 15 (default)
|
||||
|
||||
sleep_time = 15
|
||||
|
||||
|
||||
# EXPERIMENTAL
|
||||
#
|
||||
# load_threshold - npcd won't start new threads
|
||||
# if your system load is above this threshold
|
||||
#
|
||||
# load_threshold = <float value> (default: 0.0)
|
||||
#
|
||||
# Hint: Do not use "," as decimal delimiter
|
||||
#
|
||||
# 07/15/2008: Every value above 0.0 will
|
||||
# enable this feature
|
||||
|
||||
load_threshold = 0.0
|
||||
|
||||
|
||||
# location of your pid file
|
||||
|
||||
pid_file=/var/run/npcd.pid
|
||||
|
||||
|
||||
#########################
|
||||
# #
|
||||
# NPCDMOD OPTIONS #
|
||||
# #
|
||||
#########################
|
||||
|
||||
|
||||
# perfdata_file - where should the npcdmod.o
|
||||
# write the performance data
|
||||
#
|
||||
# must not be within the same directory as
|
||||
# perfdata_spool_dir
|
||||
#
|
||||
# perfdata_file = </path/to/file>
|
||||
#
|
||||
|
||||
perfdata_file = @localstatedir@/perfdata.dump
|
||||
|
||||
|
||||
# perfdata_spool_filename - declare the destination
|
||||
# filename for the spooled files
|
||||
#
|
||||
# This option allows you a customized filename.
|
||||
# Usefull if you own different nagios servers
|
||||
# which write their data to a shared storage.
|
||||
#
|
||||
# perfdata_spool_filename = <filename>
|
||||
#
|
||||
# Hint:
|
||||
# The final files will be moved to
|
||||
# 'perfdata_spool_dir/perfdata_spool_filename-TIMESTAMP'
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# perfdata_spool_filename = perfdata-NY
|
||||
# perfdata_spool_filename = perfdata-LA
|
||||
|
||||
perfdata_spool_filename = perfdata
|
||||
|
||||
#
|
||||
# perfdata_file_processing_interval
|
||||
#
|
||||
perfdata_file_processing_interval = 15
|
||||
|
||||
# We have to end with a newline
|
||||
|
||||
23
sample-config/pnp/pages/web_traffic.cfg-sample
Normal file
23
sample-config/pnp/pages/web_traffic.cfg-sample
Normal file
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# Sample Page Config
|
||||
#
|
||||
# Global Section
|
||||
# use_regex [0|1]
|
||||
# page_name < your page title >
|
||||
# background_pdf <pdf file>
|
||||
|
||||
define page {
|
||||
use_regex 1
|
||||
page_name Webserver Traffic
|
||||
}
|
||||
|
||||
#
|
||||
# Define the first Graph
|
||||
#
|
||||
define graph {
|
||||
host_name ^websrv # Every host starting with 'websrv'
|
||||
service_desc ^traffic # Every service starting with 'traffic'
|
||||
source 0 # OPTIONAL Show only the first image
|
||||
}
|
||||
|
||||
|
||||
8
sample-config/pnp/pnp4nagios_release.in
Normal file
8
sample-config/pnp/pnp4nagios_release.in
Normal file
@@ -0,0 +1,8 @@
|
||||
PKG_REL_DATE="@PKG_REL_DATE@"
|
||||
PKG_VERSION="@PKG_VERSION@"
|
||||
PKG_NAME="@PKG_NAME@"
|
||||
|
||||
#
|
||||
# Configure Arguments
|
||||
#
|
||||
CONFIGURE_ARGS=@ac_configure_args@
|
||||
135
sample-config/pnp/process_perfdata.cfg-sample.in
Normal file
135
sample-config/pnp/process_perfdata.cfg-sample.in
Normal file
@@ -0,0 +1,135 @@
|
||||
# @PKG_NAME@–@PKG_VERSION@
|
||||
# Config File for process_perfdata.pl
|
||||
#
|
||||
# More info on RRDtool can be found at www.rrdtool.org
|
||||
|
||||
#
|
||||
# process_perfdata.pl timeout in seconds
|
||||
#
|
||||
TIMEOUT = 15
|
||||
|
||||
#
|
||||
# Use RRDs Perl module
|
||||
#
|
||||
USE_RRDs = 1
|
||||
|
||||
#
|
||||
# Path to XML/RRD files
|
||||
#
|
||||
RRDPATH = @PERFDATA_DIR@
|
||||
|
||||
#
|
||||
# Location of RRDtool binary
|
||||
#
|
||||
RRDTOOL = @RRDTOOL@
|
||||
|
||||
#
|
||||
# Location of PNP config files
|
||||
#
|
||||
CFG_DIR = @sysconfdir@
|
||||
|
||||
#
|
||||
# Use a single RRD database per service
|
||||
# one or more datasources per RRD database
|
||||
# RRD_STORAGE_TYPE = SINGLE
|
||||
#
|
||||
# Use multiple RRD databases per service
|
||||
# one RRD database per datasource.
|
||||
# RRD_STORAGE_TYPE = MULTIPLE
|
||||
#
|
||||
RRD_STORAGE_TYPE = SINGLE
|
||||
|
||||
#
|
||||
# Max. interval between samples/updates
|
||||
#
|
||||
RRD_HEARTBEAT = 8460
|
||||
|
||||
#
|
||||
# File with RRA options used to create new RRD files
|
||||
#
|
||||
RRA_CFG = @sysconfdir@/rra.cfg
|
||||
|
||||
#
|
||||
# Interval at which PDPs are generated
|
||||
#
|
||||
RRA_STEP = 60
|
||||
|
||||
#
|
||||
# Name of the log file
|
||||
#
|
||||
LOG_FILE = @PERFDATA_LOG@
|
||||
|
||||
#
|
||||
# Loglevel 0=silent 1=normal 2=debug
|
||||
#
|
||||
LOG_LEVEL = @DEBUG@
|
||||
|
||||
#
|
||||
# XML encoding
|
||||
# The supported encodings are ISO-8859-1, UTF-8 and US-ASCII.
|
||||
# http://www.php.net/xml-parser-create
|
||||
#
|
||||
XML_ENC = UTF-8
|
||||
|
||||
#
|
||||
# XML update delay in seconds
|
||||
# 0 = Update XML Files everytime new data arrives
|
||||
#
|
||||
# Use this option to reduce disk I/O
|
||||
#
|
||||
XML_UPDATE_DELAY = 0
|
||||
|
||||
#
|
||||
# Use only with RRDtool svn revision 1511+
|
||||
#
|
||||
# RRD_DAEMON_OPTS = unix:/tmp/rrdcached.sock
|
||||
RRD_DAEMON_OPTS =
|
||||
|
||||
#
|
||||
# Spool directory used for internal statistics
|
||||
#
|
||||
STATS_DIR = @localstatedir@/stats
|
||||
|
||||
|
||||
#########################################################
|
||||
# Gearman Worker Config
|
||||
# Only used when running as Gearman worker
|
||||
|
||||
#
|
||||
# How many child processes
|
||||
#
|
||||
PREFORK = 1
|
||||
|
||||
#
|
||||
# Gearman server to connect to
|
||||
# Comma separated list of Gearman job servers
|
||||
#
|
||||
GEARMAN_HOST = localhost:4730
|
||||
|
||||
#
|
||||
# Restart child process after a given count of requests
|
||||
#
|
||||
REQUESTS_PER_CHILD = 10000
|
||||
|
||||
#
|
||||
# Enables or disables encryption.
|
||||
# It is strongly advised to not disable encryption, or
|
||||
# anybody will be able to inject packages to your worker.
|
||||
# When using encryption, you will have to specify a shared
|
||||
# secret eithr via the KEY or the KEY_FILE option.
|
||||
# Default is 1.
|
||||
#
|
||||
ENCRYPTION = 1
|
||||
|
||||
#
|
||||
# A shared password which will be used for
|
||||
# encryption of data pakets. Should be at least 8
|
||||
# bytes long. Maximum length is 32 characters.
|
||||
#
|
||||
KEY = should_be_changed
|
||||
|
||||
#
|
||||
# The shared password will be read from this file.
|
||||
# Only the first 32 characters will be used.
|
||||
#
|
||||
# KEY_FILE = @sysconfdir@/secret.key
|
||||
36
sample-config/pnp/rra.cfg-sample
Normal file
36
sample-config/pnp/rra.cfg-sample
Normal file
@@ -0,0 +1,36 @@
|
||||
#
|
||||
# Define the default RRA Step in seconds
|
||||
# More Infos on
|
||||
# http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html
|
||||
#
|
||||
RRA_STEP=60
|
||||
#
|
||||
# PNP default RRA config
|
||||
#
|
||||
# you will get 400kb of data per datasource
|
||||
#
|
||||
# 2880 entries with 1 minute step = 48 hours
|
||||
#
|
||||
RRA:AVERAGE:0.5:1:2880
|
||||
#
|
||||
# 2880 entries with 5 minute step = 10 days
|
||||
#
|
||||
RRA:AVERAGE:0.5:5:2880
|
||||
#
|
||||
# 4320 entries with 30 minute step = 90 days
|
||||
#
|
||||
RRA:AVERAGE:0.5:30:4320
|
||||
#
|
||||
# 5840 entries with 360 minute step = 4 years
|
||||
#
|
||||
RRA:AVERAGE:0.5:360:5840
|
||||
|
||||
RRA:MAX:0.5:1:2880
|
||||
RRA:MAX:0.5:5:2880
|
||||
RRA:MAX:0.5:30:4320
|
||||
RRA:MAX:0.5:360:5840
|
||||
|
||||
RRA:MIN:0.5:1:2880
|
||||
RRA:MIN:0.5:5:2880
|
||||
RRA:MIN:0.5:30:4320
|
||||
RRA:MIN:0.5:360:5840
|
||||
Reference in New Issue
Block a user