Updating config file path for each check : /etc/zorval/env_CHECK_NAME
This commit is contained in:
parent
84b1e391a2
commit
a079c6af46
@ -28,8 +28,8 @@ fi
|
||||
################################################################################
|
||||
|
||||
# If environnement file exist, we load it
|
||||
if [ -f /etc/env_check_nrpe ] ; then
|
||||
source /etc/env_check_nrpe
|
||||
if [ -f /etc/zorval/env_check_available_conntrack ] ; then
|
||||
source /etc/zorval/env_check_available_conntrack
|
||||
fi
|
||||
|
||||
# Initialize variables
|
||||
|
@ -17,7 +17,7 @@
|
||||
WARNING_SECONDS=0.5
|
||||
CRITICAL_SECONDS=5
|
||||
|
||||
VAR_FILE=/etc/zorval/conf-check_chrony
|
||||
VAR_FILE=/etc/zorval/env_check_chrony
|
||||
[ -f $VAR_FILE ] && source $VAR_FILE
|
||||
|
||||
DEBUG=${DEBUG:false}
|
||||
|
@ -27,7 +27,7 @@
|
||||
import sys
|
||||
|
||||
result = {'rc': 0, 'text': [], 'perfdata': [], 'values': {}}
|
||||
default_config_file = '/etc/env_check_nrpe'
|
||||
default_config_file = '/etc/zorval/env_check_cpu'
|
||||
|
||||
try:
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
||||
################################################################################
|
||||
|
||||
# If environnement file exist, we load it
|
||||
if [ -f /etc/env_check_nrpe ] ; then
|
||||
source /etc/env_check_nrpe
|
||||
if [ -f /etc/zorval/env_check_disk ] ; then
|
||||
source /etc/zorval/env_check_disk
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
|
@ -15,8 +15,8 @@
|
||||
################################################################################
|
||||
|
||||
# If environnement file exist, we load it
|
||||
if [ -f /etc/env_check_nrpe ] ; then
|
||||
source /etc/env_check_nrpe
|
||||
if [ -f /etc/zorval/env_check_load ] ; then
|
||||
source /etc/zorval/env_check_load
|
||||
fi
|
||||
|
||||
################################################################################
|
||||
|
@ -26,7 +26,7 @@
|
||||
import sys
|
||||
|
||||
result = {'rc': 0, 'text': [], 'perfdata': [], 'params': {}}
|
||||
default_config_file = '/etc/zorval/conf-check_memory'
|
||||
default_config_file = '/etc/zorval/env_check_memory'
|
||||
|
||||
try:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user