/config.orig/nconf.php

https://github.com/jvogt-swp/development · PHP · 127 lines · 21 code · 21 blank · 85 comment · 0 complexity · bbc8cee98b0a4e48a79734aa2d3b96cb MD5 · raw file

  1. <?php
  2. ##
  3. ## NConf configuration
  4. ##
  5. #
  6. # Application settings
  7. #
  8. # The directory where NConf is located
  9. define('NCONFDIR', $nconfdir);
  10. # Manual installation:
  11. # Please replace the $nconfdir placeholder with the path to NConf as follows:
  12. #define('NCONFDIR', "/var/www/nconf");
  13. # The path to the directory with the OS logo icons
  14. define('OS_LOGO_PATH', "img/logos");
  15. # This is the path to the Nagios binary. The binary is needed in order to run tests on the generated config.
  16. # This path should either point to the original binary (if Nagios is installed on the same host), to a copy of the binary
  17. # (copy it to the bin/ folder), or to a symbolic link. Make sure the binary is executable to the webserver user.
  18. define('NAGIOS_BIN', "/var/www/nconf/bin/nagios");
  19. # Check for updates
  20. # When enabled, NConf will access http://update.nconf.org and will display information about the latest available version.
  21. # This is done over your browser, so the server where NConf is running on does not need Internet access.
  22. # NO information about your environment and NO NConf related info will be sent or made available to others!
  23. # If you don't want NConf to check for updates, you can disable it here.
  24. define('CHECK_UPDATE', 1);
  25. #
  26. # Defines which design-template (skin) to use
  27. #
  28. define('TEMPLATE_DIR', "nconf_fresh");
  29. #
  30. # Debug
  31. #
  32. define("DEBUG_MODE", 0); # [0|1]
  33. define("DEBUG_GENERATE", 3); # [1=ERROR|2=WARN|3=INFO|4=DEBUG|5=TRACE]
  34. define("DB_NO_WRITES", 0); # [0|1] Experimental, use with CAUTION!
  35. #
  36. # Defines how many seconds to wait on auto redirects.
  37. # Used mostly after adding, modifying or deleting an item.
  38. #
  39. define('REDIRECTING_DELAY', "1");
  40. #
  41. # General switch to enable / disable config deployment.
  42. # If deployment is disabled, the generated config will simply remain in the 'output' directory.
  43. #
  44. define('ALLOW_DEPLOYMENT', 1);
  45. #
  46. # Static configuration files
  47. #
  48. # List of folders containing additional files that you would like to make editable within NConf (basic text editing).
  49. # We call these files 'static files', because they are not generated by NConf.
  50. # All folders listed here will be included in the output file, together with the generated config.
  51. # We recommend you to copy your static files into the 'nconf/static_cfg' folder.
  52. #
  53. $STATIC_CONFIG = array("static_cfg");
  54. # If security permits it, you could make your active Nagios configuration editable in NConf directly.
  55. # We discourage users from doing this though, because there is a risk that they could accidentally damage their Nagios configuration.
  56. #$STATIC_CONFIG = array("static_cfg", "/etc/nagios");
  57. #
  58. # Syntax checking for static config folders
  59. # Static config will be treated as "global" config. Syntax checking will be run for each Collector / Monitor server.
  60. # In a distributed monitoring setup, you might have to disable syntax checking, if you are getting errors that items don't exist on certain servers.
  61. #
  62. define('CHECK_STATIC_SYNTAX', 1);
  63. #
  64. # These groups will always be added to any host or service, regardless of what is linked in the GUI.
  65. #
  66. $SUPERADMIN_GROUPS = array ("+admins");
  67. #
  68. # List of mandatory contact groups for all hosts and services. User won't be able to save changes if
  69. # he hasn't assigned at least one of these groups. If empty, no contact group is mandatory.
  70. #
  71. $ONCALL_GROUPS = array ();
  72. #
  73. # Defines the amount of entries shown on the overview page.
  74. #
  75. define('OVERVIEW_QUANTITY_STANDARD', "25");
  76. #
  77. # Defines the separator for the values of .select. type attributes.
  78. #
  79. define('SELECT_VALUE_SEPARATOR', "::");
  80. #
  81. # PASSWORD ATTRIBUTES
  82. #
  83. # Set default password encryption type
  84. # possible values: [clear|crypt|md5|sha]
  85. #
  86. # Will be used when writing passwords to the database, and is also used for authentication.
  87. # Used when AUTH_TYPE is "file" or "sql".
  88. #
  89. # CAUTION:
  90. # If you change this value, you have to manually update all the password attributes already set,
  91. # because the old value will remain encrypted with the previous encryption in the database.
  92. # You won't be able to log in, if the encryption does not match.
  93. #
  94. define('PASSWD_ENC', "clear");
  95. #
  96. # Configures the visibility of password attributes.
  97. # If PASSWD_DISPLAY = 1, you will see passwords plaintext on the detail view.
  98. # If PASSWD_DISPLAY = 0, the passwords will not be visible (in the detail view).
  99. #
  100. define('PASSWD_DISPLAY', 0);
  101. #
  102. # If PASSWD_DISPLAY = 0 then this value will be used to hide the password.
  103. # Any passwords will be represented as the following string (in the detail view).
  104. #
  105. define('PASSWD_HIDDEN_STRING', "********");
  106. ?>