]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorroot <root@uhu1.uhu-banane.de>
Tue, 20 Sep 2016 06:29:34 +0000 (08:29 +0200)
committerroot <root@uhu1.uhu-banane.de>
Tue, 20 Sep 2016 06:29:34 +0000 (08:29 +0200)
14 files changed:
.etckeeper
apache2/modules.d/99_nagios4.conf [new file with mode: 0644]
init.d/nagios
nagios/cgi.cfg
nagios/nagios.cfg
nagios/objects/commands.cfg
nagios/objects/contacts.cfg
nagios/objects/localhost.cfg
nagios/objects/printer.cfg
nagios/objects/switch.cfg
nagios/objects/templates.cfg
nagios/objects/timeperiods.cfg
nagios/objects/windows.cfg
nagios/resource.cfg

index 384967bd014e1481ac6e510f421b8ba805473197..81c4e0b21e418fcffa3903f1fe432e9506b4651f 100755 (executable)
@@ -91,6 +91,7 @@ maybe chmod 0644 'apache2/modules.d/47_mod_dav_svn.conf'
 maybe chmod 0644 'apache2/modules.d/70_mod_php.conf'
 maybe chmod 0644 'apache2/modules.d/70_mod_php5.conf'
 maybe chmod 0644 'apache2/modules.d/99_nagios3.conf'
+maybe chmod 0644 'apache2/modules.d/99_nagios4.conf'
 maybe chmod 0755 'apache2/ssl'
 maybe chmod 0600 'apache2/ssl/egroupware-cert.pem'
 maybe chmod 0755 'apache2/vhosts.d'
diff --git a/apache2/modules.d/99_nagios4.conf b/apache2/modules.d/99_nagios4.conf
new file mode 100644 (file)
index 0000000..b04c298
--- /dev/null
@@ -0,0 +1,16 @@
+<IfDefine NAGIOS>
+
+  ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi-bin/
+  <Directory "/usr/lib/nagios/cgi-bin/">
+    AllowOverride AuthConfig
+    Options ExecCGI
+    Require all granted
+  </Directory>
+
+  Alias /nagios /usr/share/nagios/htdocs
+  <Directory "/usr/share/nagios/htdocs">
+    AllowOverride AuthConfig
+    Require all granted
+  </Directory>
+
+</IfDefine>
index 04714cc0f9faa793996e7590e515a45449531ed4..f434752d810a649d9e99a66338d27356dad8114c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
@@ -14,29 +14,28 @@ command_args="-d ${nagios_config}"
 pidfile="/var/nagios/nagios.lock"
 start_stop_daemon_args="-e HOME=/var/nagios/home"
 
-depend() {
+depend(){
        need net
        use dns logger firewall
        after mysql postgresql
 }
 
-reload()
-{
+reload(){
        checkconfig || return 1
        ebegin "Reloading configuration"
        start-stop-daemon --signal HUP --pidfile ${pidfile}
        eend $?
 }
 
-checkconfig() {
+checkconfig(){
        ebegin "Verifying config files"
 
        # Silent Check
-       /usr/sbin/nagios -v ${nagios_config} &>/dev/null && return 0
+       /usr/sbin/nagios -v ${nagios_config} > /dev/null 2>&1 && return 0
 
        # Now we know there's problem - run again and display errors
        /usr/sbin/nagios -v ${nagios_config}
-       eend $? "Configuration Error. Please fix your configfile"
+       eend $? "Configuration Error. Please fix your config file."
 }
 
 start_pre() {
index 5e1793486f4f659dcd07278973a669b832a5a43a..4e4cf55de1932b7df0c60298711671ebd531b56d 100644 (file)
@@ -1,8 +1,7 @@
 #################################################################
 #
-# CGI.CFG - Sample CGI Configuration File for Nagios 3.5.1
+# CGI.CFG - Sample CGI Configuration File for Nagios 4.0.8
 #
-# Last Modified: 06-17-2009
 #
 #################################################################
 
@@ -362,3 +361,12 @@ lock_author_names=1
 
 
 
+
+# NAVIGATION BAR SEARCH OPTIONS
+# The following options allow to configure the navbar search. Default
+# is to search for hostnames. With enabled navbar_search_for_addresses,
+# the navbar search queries IP addresses as well. It's also possible
+# to enable search for aliases by setting navbar_search_for_aliases=1.
+
+navbar_search_for_addresses=1
+navbar_search_for_aliases=1
index 6016c2508022eb5ff9a3b523495f2b05ef95e925..2e5cad624c05d16450d8a770eecc4e341674aea2 100644 (file)
@@ -1,12 +1,11 @@
 ##############################################################################
 #
-# NAGIOS.CFG - Sample Main Config File for Nagios 3.5.1
+# NAGIOS.CFG - Sample Main Config File for Nagios 4.0.8
 #
 # Read the documentation for more information on this configuration
 # file.  I've provided some comments here, but things may not be so
 # clear without further explanation.
 #
-# Last Modified: 12-14-2008
 #
 ##############################################################################
 
@@ -144,24 +143,6 @@ check_external_commands=1
 
 
 
-# EXTERNAL COMMAND CHECK INTERVAL
-# This is the interval at which Nagios should check for external commands.
-# This value works of the interval_length you specify later.  If you leave
-# that at its default value of 60 (seconds), a value of 1 here will cause
-# Nagios to check for external commands every minute.  If you specify a
-# number followed by an "s" (i.e. 15s), this will be interpreted to mean
-# actual seconds rather than a multiple of the interval_length variable.
-# Note: In addition to reading the external command file at regularly 
-# scheduled intervals, Nagios will also check for external commands after
-# event handlers are executed.
-# NOTE: Setting this value to -1 causes Nagios to check the external
-# command file as often as possible.
-
-#command_check_interval=15s
-command_check_interval=-1
-
-
-
 # EXTERNAL COMMAND FILE
 # This is the file that Nagios checks for external command requests.
 # It is also where the command CGI will write commands that are submitted
@@ -174,13 +155,10 @@ command_file=/var/nagios/rw/nagios.cmd
 
 
 
-# EXTERNAL COMMAND BUFFER SLOTS
-# This settings is used to tweak the number of items or "slots" that
-# the Nagios daemon should allocate to the buffer that holds incoming 
-# external commands before they are processed.  As external commands 
-# are processed by the daemon, they are removed from the buffer.  
+# QUERY HANDLER INTERFACE
+# This is the socket that is created for the Query Handler interface
 
-external_command_buffer_slots=4096
+#query_socket=/var/nagios/rw/nagios.qh
 
 
 
@@ -321,6 +299,15 @@ log_initial_states=0
 
 
 
+# CURRENT STATES LOGGING OPTION
+# If you don't want Nagios to log all current host and service states
+# after log has been rotated to the main log file, you can disable this
+# option by setting this value to 0. Default value is 1.
+
+log_current_states=1
+
+
+
 # EXTERNAL COMMANDS LOGGING OPTION
 # If you don't want Nagios to log external commands, set this value
 # to 0.  If external commands should be logged, set this value to 1.
@@ -590,14 +577,6 @@ auto_rescheduling_window=180
 
 
 
-# SLEEP TIME
-# This is the number of seconds to sleep between checking for system
-# events and service checks that need to be run.
-
-sleep_time=0.25
-
-
-
 # TIMEOUT VALUES
 # These options control how much time Nagios will allow various
 # types of commands to execute before killing them off.  Options
@@ -850,8 +829,8 @@ process_performance_data=0
 # Performance data is only written to these files if the
 # enable_performance_data option (above) is set to 1.
 
-#host_perfdata_file=/tmp/host-perfdata
-#service_perfdata_file=/tmp/service-perfdata
+#host_perfdata_file=/var/nagios/host-perfdata
+#service_perfdata_file=/var/nagios/service-perfdata
 
 
 
@@ -902,7 +881,7 @@ process_performance_data=0
 
 
 # HOST AND SERVICE PERFORMANCE DATA PROCESS EMPTY RESULTS
-# THese options determine wether the core will process empty perfdata
+# These options determine wether the core will process empty perfdata
 # results or not. This is needed for distributed monitoring, and intentionally
 # turned on by default.
 # If you don't require empty perfdata - saving some cpu cycles
@@ -1136,37 +1115,6 @@ date_format=us
 
 
 
-
-# P1.PL FILE LOCATION
-# This value determines where the p1.pl perl script (used by the
-# embedded Perl interpreter) is located.  If you didn't compile
-# Nagios with embedded Perl support, this option has no effect.
-
-p1_file=/usr/sbin/p1.pl
-
-
-
-# EMBEDDED PERL INTERPRETER OPTION
-# This option determines whether or not the embedded Perl interpreter
-# will be enabled during runtime.  This option has no effect if Nagios
-# has not been compiled with support for embedded Perl.
-# Values: 0 = disable interpreter, 1 = enable interpreter
-
-enable_embedded_perl=1
-
-
-
-# EMBEDDED PERL USAGE OPTION
-# This option determines whether or not Nagios will process Perl plugins
-# and scripts with the embedded Perl interpreter if the plugins/scripts
-# do not explicitly indicate whether or not it is okay to do so. Read
-# the HTML documentation on the embedded Perl interpreter for more 
-# information on how this option works.
-
-use_embedded_perl_implicitly=1
-
-
-
 # ILLEGAL OBJECT NAME CHARACTERS
 # This option allows you to specify illegal characters that cannot
 # be used in host names, service descriptions, or names of other
@@ -1260,13 +1208,16 @@ use_large_installation_tweaks=0
 # This option determines whether or not Nagios will make all standard
 # macros available as environment variables when host/service checks
 # and system commands (event handlers, notifications, etc.) are
-# executed.  Enabling this option can cause performance issues in 
-# large installations, as it will consume a bit more memory and (more
-# importantly) consume more CPU.
-# Values: 1 - Enable environment variable macros (default)
-#         0 - Disable environment variable macros
+# executed.
+# Enabling this is a very bad idea for anything but very small setups,
+# as it means plugins, notification scripts and eventhandlers may run
+# out of environment space. It will also cause a significant increase
+# in CPU- and memory usage and drastically reduce the number of checks
+# you can run.
+# Values: 1 - Enable environment variable macros
+#         0 - Disable environment variable macros (default)
 
-enable_environment_macros=1
+enable_environment_macros=0
 
 
 
@@ -1348,3 +1299,38 @@ debug_file=/var/nagios/nagios.debug
 max_debug_file_size=1000000
 
 
+
+# Should we allow hostgroups to have no hosts, we default this to off since
+# that was the old behavior
+
+allow_empty_hostgroup_assignment=0
+
+
+
+# Normally worker count is dynamically allocated based on 1.5 * number of cpu's
+# with a minimum of 4 workers.  This value will override the defaults
+
+#check_workers=3
+
+
+
+# EXPERIMENTAL load controlling options
+# To get current defaults based on your system issue a command to
+# the query handler. Please note that this is an experimental feature
+# and not meant for production use. Used incorrectly it can induce
+# enormous latency.
+# #core loadctl
+#   jobs_max - The maximum amount of jobs to run at one time
+#   jobs_min - The minimum amount of jobs to run at one time
+#   jobs_limit - The maximum amount of jobs the current load lets us run
+#   backoff_limit - The minimum backoff_change
+#   backoff_change - # of jobs to remove from jobs_limit when backing off
+#   rampup_limit - Minimum rampup_change
+#   rampup_change - # of jobs to add to jobs_limit when ramping up
+# NOTE: The backoff_limit and rampup_limit are NOT used by anything currently,
+#       so if your system is under load nothing will actively modify the jobs
+#       even if you have these options enabled, they are for external
+#       connector information only.  However, if you change the jobs_max or
+#       jobs_min manually here or through the query handler interface that
+#       WILL affect your system
+#loadctl_options=jobs_max=100;backoff_limit=10;rampup_change=5
index 9a5f8bdeac3a6db1129e59730e60485ba7750ce7..a2bbfe443e1eb6700f7ea4412afcbd2cde53791d 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
-# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.5.1
+# COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 4.0.8
 #
-# Last Modified: 05-31-2007
 #
 # NOTES: This config file provides you with some example command definitions
 #        that you can reference in host, service, and contact definitions.
index b90fc6849bd8181f11347bb278cdc6ec917d7eab..98407a3f6764f192eab34970c60405367dbce83d 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # CONTACTS.CFG - SAMPLE CONTACT/CONTACTGROUP DEFINITIONS
 #
-# Last Modified: 05-31-2007
 #
 # NOTES: This config file provides you with some example contact and contact
 #        group definitions that you can reference in host and service
index 6882cedc02898f3dde3984cc80681f28e4a43f24..1f4a6a5b38f6e71f3620028513ba6c502371e429 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # LOCALHOST.CFG - SAMPLE OBJECT CONFIG FILE FOR MONITORING THIS MACHINE
 #
-# Last Modified: 05-31-2007
 #
 # NOTE: This config file is intended to serve as an *extremely* simple 
 #       example of how you can create configuration entries to monitor
index 1de8855f99711d029ddcf093101c7c3441c31ffc..711a7c54db1a7e963a191e7fee9af1fb56ae26af 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # PRINTER.CFG - SAMPLE CONFIG FILE FOR MONITORING A NETWORK PRINTER
 #
-# Last Modified: 10-03-2007
 #
 # NOTES: This config file assumes that you are using the sample configuration
 #       files that get installed with the Nagios quickstart guide.
index 60c4db66adc3a10d08addf5c5e78020bbc398949..621315b63c0132cfdf289099257141b415dbaa81 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # SWITCH.CFG - SAMPLE CONFIG FILE FOR MONITORING A SWITCH
 #
-# Last Modified: 10-03-2007
 #
 # NOTES: This config file assumes that you are using the sample configuration
 #       files that get installed with the Nagios quickstart guide.
index 16a980dfac7269e3824b98a16753b335b520977c..a0d0d36797c1c51b1d821bbdab40eda1d584b754 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # TEMPLATES.CFG - SAMPLE OBJECT TEMPLATES
 #
-# Last Modified: 10-03-2007
 #
 # NOTES: This config file provides you with some example object definition
 #        templates that are refered by other host, service, contact, etc.
@@ -54,7 +53,6 @@ define host{
         notifications_enabled           1              ; Host notifications are enabled
         event_handler_enabled           1              ; Host event handler is enabled
         flap_detection_enabled          1              ; Flap detection is enabled
-        failure_prediction_enabled      1              ; Failure prediction is enabled
         process_perf_data               1              ; Process performance data
         retain_status_information       1              ; Retain status information across program restarts
         retain_nonstatus_information    1              ; Retain non-status information across program restarts
@@ -160,7 +158,6 @@ define service{
         notifications_enabled           1                      ; Service notifications are enabled
         event_handler_enabled           1                      ; Service event handler is enabled
         flap_detection_enabled          1                      ; Flap detection is enabled
-        failure_prediction_enabled      1                      ; Failure prediction is enabled
         process_perf_data               1                      ; Process performance data
         retain_status_information       1                      ; Retain status information across program restarts
         retain_nonstatus_information    1                      ; Retain non-status information across program restarts
index 7f1802ef3f715281e5f83004d2004f75b617b154..a8682ef36bbd5d40b7785e0e311728bcb6698621 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # TIMEPERIODS.CFG - SAMPLE TIMEPERIOD DEFINITIONS
 #
-# Last Modified: 05-31-2007
 #
 # NOTES: This config file provides you with some example timeperiod definitions
 #        that you can reference in host, service, contact, and dependency
index 264a63ac3fd0c6bd500cefec8fe82eb744a7887b..0ddcdc15bf84e3ed8efd9ee82caba25ea31df912 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################################################
 # WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE
 #
-# Last Modified: 06-13-2007
 #
 # NOTES: This config file assumes that you are using the sample configuration
 #       files that get installed with the Nagios quickstart guide.
index 2e41e99223e5f8007b02322ea3ed3bb1007f0789..8924d26b1dcded840f0eb9b6a321f48805b95da0 100644 (file)
@@ -1,8 +1,7 @@
 ###########################################################################
 #
-# RESOURCE.CFG - Sample Resource File for Nagios 3.5.1
+# RESOURCE.CFG - Sample Resource File for Nagios 4.0.8
 #
-# Last Modified: 09-10-2003
 #
 # You can define $USERx$ macros in this file, which can in turn be used
 # in command definitions in your host config file(s).  $USERx$ macros are