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 environnement file exist, we load it
|
||||||
if [ -f /etc/env_check_nrpe ] ; then
|
if [ -f /etc/zorval/env_check_available_conntrack ] ; then
|
||||||
source /etc/env_check_nrpe
|
source /etc/zorval/env_check_available_conntrack
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize variables
|
# Initialize variables
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
WARNING_SECONDS=0.5
|
WARNING_SECONDS=0.5
|
||||||
CRITICAL_SECONDS=5
|
CRITICAL_SECONDS=5
|
||||||
|
|
||||||
VAR_FILE=/etc/zorval/conf-check_chrony
|
VAR_FILE=/etc/zorval/env_check_chrony
|
||||||
[ -f $VAR_FILE ] && source $VAR_FILE
|
[ -f $VAR_FILE ] && source $VAR_FILE
|
||||||
|
|
||||||
DEBUG=${DEBUG:false}
|
DEBUG=${DEBUG:false}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
result = {'rc': 0, 'text': [], 'perfdata': [], 'values': {}}
|
result = {'rc': 0, 'text': [], 'perfdata': [], 'values': {}}
|
||||||
default_config_file = '/etc/env_check_nrpe'
|
default_config_file = '/etc/zorval/env_check_cpu'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# If environnement file exist, we load it
|
# If environnement file exist, we load it
|
||||||
if [ -f /etc/env_check_nrpe ] ; then
|
if [ -f /etc/zorval/env_check_disk ] ; then
|
||||||
source /etc/env_check_nrpe
|
source /etc/zorval/env_check_disk
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# If environnement file exist, we load it
|
# If environnement file exist, we load it
|
||||||
if [ -f /etc/env_check_nrpe ] ; then
|
if [ -f /etc/zorval/env_check_load ] ; then
|
||||||
source /etc/env_check_nrpe
|
source /etc/zorval/env_check_load
|
||||||
fi
|
fi
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
result = {'rc': 0, 'text': [], 'perfdata': [], 'params': {}}
|
result = {'rc': 0, 'text': [], 'perfdata': [], 'params': {}}
|
||||||
default_config_file = '/etc/zorval/conf-check_memory'
|
default_config_file = '/etc/zorval/env_check_memory'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user