OP#436 add main file control link to wiki
This commit is contained in:
@@ -35,9 +35,9 @@ At this stage, the module is being redeveloped and being built to the latest sta
|
|||||||
|
|
||||||
- if FQDN equals the specified `ng_nagios_server`, nagios server with all required specs is installed, else only nagios client packages and the target specs
|
- if FQDN equals the specified `ng_nagios_server`, nagios server with all required specs is installed, else only nagios client packages and the target specs
|
||||||
- an additional directory /etc/nagios/conf.d is created to place the custom checks etc. without being overwritten by updates.
|
- an additional directory /etc/nagios/conf.d is created to place the custom checks etc. without being overwritten by updates.
|
||||||
- if `ng_include_nrpe`is set to `true`, the confdroid_nrpe module is automatically applied on clients ([confdroid_nrpe](https://sourcecode.confdroid.com/confdroid/confdroid_nrpe) must be in the catalogue then)
|
|
||||||
|
|
||||||
- configures all required directories for server and clients and sets proper permissions and selinux contexts
|
- configures all required directories for server and clients and sets proper permissions and selinux contexts
|
||||||
|
- configures the main nagios configuration file and sets values as (pre)configured per values in params, which can be overwritten.
|
||||||
|
- if `ng_include_nrpe`is set to `true`, the confdroid_nrpe module is automatically applied on clients ([confdroid_nrpe](https://sourcecode.confdroid.com/confdroid/confdroid_nrpe) must be in the catalogue then)
|
||||||
|
|
||||||
### configuring user access
|
### configuring user access
|
||||||
ToDo
|
ToDo
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class confdroid_nagios::main::dirs (
|
|||||||
path => $ng_run_dir,
|
path => $ng_run_dir,
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0750',
|
mode => '0755',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => nagios_var_run_t,
|
seltype => nagios_var_run_t,
|
||||||
@@ -171,7 +171,7 @@ class confdroid_nagios::main::dirs (
|
|||||||
path => $ng_cmd_dir,
|
path => $ng_cmd_dir,
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0775',
|
mode => '2775',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => nagios_spool_t,
|
seltype => nagios_spool_t,
|
||||||
@@ -184,7 +184,7 @@ class confdroid_nagios::main::dirs (
|
|||||||
path => $ng_checkresults_dir,
|
path => $ng_checkresults_dir,
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
mode => '0770',
|
mode => '0750',
|
||||||
selrange => s0,
|
selrange => s0,
|
||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => nagios_spool_t,
|
seltype => nagios_spool_t,
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
# htpasswd utility.
|
# htpasswd utility.
|
||||||
# @param [String] ng_context_help Whether to enable the context help in the
|
# @param [String] ng_context_help Whether to enable the context help in the
|
||||||
# Nagios web interface. Default is '1'.
|
# Nagios web interface. Default is '1'.
|
||||||
|
# @param [String] ng_log_file The path to the Nagios log file. Default is
|
||||||
|
# '/var/log/nagios/nagios.log'.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_nagios::params (
|
class confdroid_nagios::params (
|
||||||
|
|
||||||
@@ -37,7 +39,10 @@ class confdroid_nagios::params (
|
|||||||
String $ng_main_user = 'nagios',
|
String $ng_main_user = 'nagios',
|
||||||
String $ng_main_password = 'nagios',
|
String $ng_main_password = 'nagios',
|
||||||
|
|
||||||
# cgi
|
# nagios.cfg
|
||||||
|
String $ng_log_file = '/var/log/nagios/nagios.log',
|
||||||
|
|
||||||
|
# cgi.cfg
|
||||||
String $ng_context_help = '1',
|
String $ng_context_help = '1',
|
||||||
|
|
||||||
# httpd
|
# httpd
|
||||||
|
|||||||
@@ -88,3 +88,4 @@ navbar_search_for_aliases=<%= @ng_navbar_aliases %>
|
|||||||
|
|
||||||
ack_no_sticky=<%= @ng_ack_no_sticky %>
|
ack_no_sticky=<%= @ng_ack_no_sticky %>
|
||||||
ack_no_send=<%= @ng_ack_no_send %>
|
ack_no_send=<%= @ng_ack_no_send %>
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +1,11 @@
|
|||||||
##############################################################################
|
###############################################################################
|
||||||
#
|
########## parameterized nagios.cfg created by Puppet ##########
|
||||||
# NAGIOS.CFG - Sample Main Config File for Nagios 4.4.14
|
########## manual changes will be overwritten !!! ##########
|
||||||
#
|
### original nagios.cfg file is available at https://3for.me/hn6ca ##########
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
##############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# LOG FILE
|
# LOG FILE
|
||||||
# This is the main log file where service and host events are logged
|
log_file=<%= @ng_log_file %>
|
||||||
# for historical purposes. This should be the first option specified
|
|
||||||
# in the config file!!!
|
|
||||||
|
|
||||||
log_file=/var/log/nagios/nagios.log
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# OBJECT CONFIGURATION FILE(S)
|
# OBJECT CONFIGURATION FILE(S)
|
||||||
# These are the object configuration files in which you define hosts,
|
# These are the object configuration files in which you define hosts,
|
||||||
@@ -1375,4 +1363,4 @@ allow_empty_hostgroup_assignment=0
|
|||||||
# rampup_limit Minimum rampup_change
|
# rampup_limit Minimum rampup_change
|
||||||
# rampup_change # of jobs to add to jobs_limit when ramping up
|
# rampup_change # of jobs to add to jobs_limit when ramping up
|
||||||
|
|
||||||
#loadctl_options=jobs_max=100;backoff_limit=10;rampup_change=5
|
#loadctl_options=jobs_max=100;backoff_limit=10;rampup_change=5
|
||||||
|
|||||||
Reference in New Issue
Block a user