Commit 4f513c7e authored by mh's avatar mh
Browse files

better check on the status code as the reason is optional

parent 1e15dfa0
......@@ -40,7 +40,7 @@ define webhosting::common(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$ldap_user = 'absent'
){
......
......@@ -53,7 +53,7 @@ define webhosting::modperl(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$mod_security = true
){
......
......@@ -59,7 +59,7 @@ define webhosting::passenger(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$mod_security = true,
$ldap_user = 'absent',
......@@ -212,7 +212,7 @@ define webhosting::passenger(
}
} else {
$real_run_gid_name = $run_gid_name
}
}
Apache::Vhost::Passenger[$name]{
run_uid => $run_uid,
run_gid => $run_gid,
......
......@@ -69,7 +69,7 @@ define webhosting::php(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$mod_security = true,
$ldap_user = 'absent'
......
......@@ -56,7 +56,7 @@ define webhosting::php::drupal(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
......
......@@ -55,7 +55,7 @@ define webhosting::php::joomla(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
......
......@@ -52,7 +52,7 @@ define webhosting::php::mediawiki(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$mod_security = true,
$image = 'absent',
......
......@@ -56,7 +56,7 @@ define webhosting::php::silverstripe(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
......
......@@ -56,7 +56,7 @@ define webhosting::php::simplemachine(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
......
......@@ -56,7 +56,7 @@ define webhosting::php::spip(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$mod_security = true
){
......
......@@ -56,7 +56,7 @@ define webhosting::php::typo3(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$mod_security = true,
......
......@@ -58,7 +58,7 @@ define webhosting::php::wordpress(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$git_repo = 'absent',
$autoinstall = true,
......
......@@ -40,7 +40,7 @@ define webhosting::static(
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = 'OK',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
$mod_security = false
){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment