nagios4/debian/patches/50_cgi.cfg-debianize.patch
2017-05-20 00:17:50 +02:00

37 lines
1.3 KiB
Diff

Author: Alexander Wirt <formorer@debian.org>
Description: Debianize cgi.cfg
--- a/sample-config/cgi.cfg.in
+++ b/sample-config/cgi.cfg.in
@@ -42,7 +42,7 @@
# Values: 0 = disables context-sensitive help
# 1 = enables context-sensitive help
-show_context_help=0
+show_context_help=1
@@ -54,7 +54,22 @@
use_pending_states=1
+# NAGIOS PROCESS CHECK COMMAND
+# This is the full path and filename of the program used to check
+# the status of the Nagios process. It is used only by the CGIs
+# and is completely optional. However, if you don't use it, you'll
+# see warning messages in the CGIs about the Nagios process
+# not running and you won't be able to execute any commands from
+# the web interface. The program should follow the same rules
+# as plugins; the return codes are the same as for the plugins,
+# it should have timeout protection, it should output something
+# to STDIO, etc.
+#
+# Note: The command line for the check_nagios plugin below may
+# have to be tweaked a bit, as different versions of the plugin
+# use different command line arguments/syntaxes.
+nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/cache/nagios4/status.dat 5 '/usr/sbin/nagios4'
# AUTHENTICATION USAGE
# This option controls whether or not the CGIs will use any