mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-12-15 19:10:54 +01:00
Optimized Fping parameter
This commit is contained in:
parent
5d626820f8
commit
0d03e921e4
@ -343,17 +343,8 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "AlertScriptsPath" "/usr/lib/zabbix/alertscripts"
|
||||
update_config_var $ZBX_CONFIG "ExternalScripts" "/usr/lib/zabbix/externalscripts"
|
||||
|
||||
# Possible few fping locations
|
||||
if [ -f "/usr/bin/fping" ]; then
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/bin/fping"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
fi
|
||||
if [ -f "/usr/bin/fping6" ]; then
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/bin/fping6"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/sbin/fping6"
|
||||
fi
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
update_config_var $ZBX_CONFIG "Fping6Location"
|
||||
|
||||
update_config_var $ZBX_CONFIG "SSHKeyLocation" "$ZABBIX_USER_HOME_DIR/ssh_keys"
|
||||
update_config_var $ZBX_CONFIG "LogSlowQueries" "${ZBX_LOGSLOWQUERIES}"
|
||||
|
@ -192,17 +192,8 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "AlertScriptsPath" "/usr/lib/zabbix/alertscripts"
|
||||
update_config_var $ZBX_CONFIG "ExternalScripts" "/usr/lib/zabbix/externalscripts"
|
||||
|
||||
# Possible few fping locations
|
||||
if [ -f "/usr/bin/fping" ]; then
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/bin/fping"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
fi
|
||||
if [ -f "/usr/bin/fping6" ]; then
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/bin/fping6"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/sbin/fping6"
|
||||
fi
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
update_config_var $ZBX_CONFIG "Fping6Location"
|
||||
|
||||
update_config_var $ZBX_CONFIG "SSHKeyLocation" "$ZABBIX_USER_HOME_DIR/ssh_keys"
|
||||
update_config_var $ZBX_CONFIG "LogSlowQueries" "${ZBX_LOGSLOWQUERIES}"
|
||||
|
@ -331,17 +331,8 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "AlertScriptsPath" "/usr/lib/zabbix/alertscripts"
|
||||
update_config_var $ZBX_CONFIG "ExternalScripts" "/usr/lib/zabbix/externalscripts"
|
||||
|
||||
# Possible few fping locations
|
||||
if [ -f "/usr/bin/fping" ]; then
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/bin/fping"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
fi
|
||||
if [ -f "/usr/bin/fping6" ]; then
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/bin/fping6"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/sbin/fping6"
|
||||
fi
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
update_config_var $ZBX_CONFIG "Fping6Location"
|
||||
|
||||
update_config_var $ZBX_CONFIG "SSHKeyLocation" "$ZABBIX_USER_HOME_DIR/ssh_keys"
|
||||
update_config_var $ZBX_CONFIG "LogSlowQueries" "${ZBX_LOGSLOWQUERIES}"
|
||||
|
@ -358,17 +358,8 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "AlertScriptsPath" "/usr/lib/zabbix/alertscripts"
|
||||
update_config_var $ZBX_CONFIG "ExternalScripts" "/usr/lib/zabbix/externalscripts"
|
||||
|
||||
# Possible few fping locations
|
||||
if [ -f "/usr/bin/fping" ]; then
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/bin/fping"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
fi
|
||||
if [ -f "/usr/bin/fping6" ]; then
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/bin/fping6"
|
||||
else
|
||||
update_config_var $ZBX_CONFIG "Fping6Location" "/usr/sbin/fping6"
|
||||
fi
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/sbin/fping"
|
||||
update_config_var $ZBX_CONFIG "Fping6Location"
|
||||
|
||||
update_config_var $ZBX_CONFIG "SSHKeyLocation" "$ZABBIX_USER_HOME_DIR/ssh_keys"
|
||||
update_config_var $ZBX_CONFIG "LogSlowQueries" "${ZBX_LOGSLOWQUERIES}"
|
||||
|
Loading…
Reference in New Issue
Block a user