nagios4/debian/patches/50_cgi.cfg-debianize.patch

37 lines
1.3 KiB
Diff
Raw Normal View History

2014-10-05 11:53:19 +02:00
Author: Alexander Wirt <formorer@debian.org>
Description: Debianize cgi.cfg
--- a/sample-config/cgi.cfg.in
+++ b/sample-config/cgi.cfg.in
2017-05-20 00:17:50 +02:00
@@ -42,7 +42,7 @@
2014-10-05 11:53:19 +02:00
# Values: 0 = disables context-sensitive help
# 1 = enables context-sensitive help
-show_context_help=0
+show_context_help=1
2017-05-20 00:17:50 +02:00
@@ -54,7 +54,22 @@
2014-10-05 11:53:19 +02:00
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.
2017-05-20 00:00:42 +02:00
+nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/cache/nagios4/status.dat 5 '/usr/sbin/nagios4'
2014-10-05 11:53:19 +02:00
# AUTHENTICATION USAGE
2017-05-20 00:17:50 +02:00
# This option controls whether or not the CGIs will use any