Updating config file path for each check : /etc/zorval/env_CHECK_NAME

This commit is contained in:
Alban Vidal 2021-04-10 08:00:46 +02:00
parent 84b1e391a2
commit a079c6af46
No known key found for this signature in database
GPG Key ID: 96BD4FF64E709FDE
6 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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}

View File

@ -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:

View File

@ -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
################################################################################

View File

@ -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
################################################################################

View File

@ -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: