OP#436 add conf.d dir
This commit is contained in:
@@ -32,7 +32,9 @@ Nagios is a powerful open source software solution for monitoring your IT enviro
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- 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
|
||||||
- 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 )
|
- 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)
|
||||||
|
|
||||||
|
|
||||||
### configuring user access
|
### configuring user access
|
||||||
ToDo
|
ToDo
|
||||||
|
|||||||
@@ -48,6 +48,18 @@ class confdroid_nagios::main::dirs (
|
|||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# /etc/nagios/conf.d
|
||||||
|
file { $ng_conf_d_dir:
|
||||||
|
ensure => directory,
|
||||||
|
path => $ng_conf_d_dir,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0750',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => nagios_etc_t,
|
||||||
|
seluser => system_u,
|
||||||
|
}
|
||||||
# /usr/lib64/nagios dir required for plugins
|
# /usr/lib64/nagios dir required for plugins
|
||||||
# file { $ng_lib_dir:
|
# file { $ng_lib_dir:
|
||||||
# ensure => directory,
|
# ensure => directory,
|
||||||
@@ -74,7 +86,7 @@ class confdroid_nagios::main::dirs (
|
|||||||
# seluser => system_u,
|
# seluser => system_u,
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# if $fqdn == $ng_nagios_server {
|
|
||||||
# /etc/nagios/conf.d
|
# /etc/nagios/conf.d
|
||||||
# file { $ng_conf_d_dir:
|
# file { $ng_conf_d_dir:
|
||||||
# ensure => directory,
|
# ensure => directory,
|
||||||
@@ -190,7 +202,6 @@ class confdroid_nagios::main::dirs (
|
|||||||
# selrole => object_r,
|
# selrole => object_r,
|
||||||
# seltype => nagios_spool_t,
|
# seltype => nagios_spool_t,
|
||||||
# seluser => system_u,
|
# seluser => system_u,
|
||||||
# }
|
|
||||||
# }
|
# }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user