Added client service parameters.
This commit is contained in:
parent
e39572b2d6
commit
a1d7f73cb5
1 changed files with 15 additions and 0 deletions
|
@ -106,4 +106,19 @@ class icinga2::params {
|
|||
default: { fail("${operatingsystem} is not supported!") }
|
||||
}
|
||||
|
||||
##################
|
||||
# Icinga 2 client service parameters
|
||||
case $operatingsystem {
|
||||
#Daemon names for Red Had/CentOS systems:
|
||||
'RedHat', 'CentOS': {
|
||||
$nrpe_daemon_name = 'nrpe'
|
||||
}
|
||||
#Daemon names for Debian/Ubuntu systems:
|
||||
/^(Debian|Ubuntu)$/: {
|
||||
$nrpe_daemon_name = 'nagios-nrpe-server'
|
||||
}
|
||||
#Fail if we're on any other OS:
|
||||
default: { fail("${operatingsystem} is not supported!") }
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue