C-M-G
Series
Manual
© TDT GmbH
Chapter 4: System Confuguration
Seite 25 von 136
Note
In order to create a userdefined script the event has to be saved using the
[Create]
button.
4.3.1.1 Health Checker
Command
Description
Health Check Target
Target host
Health Check Port
Target port
Health Check Interval
Interval between the pings in seconds
Health Check Interval if one
request failed
Interval between pings, if one ping has failed
Health Check Timeout
Timeout for Health Check Ping (Default: 60 seconds)
Maximum Failed Requests
Maximum number of failed pings before the script is executetd
(Default: 1)
Action on success
Action to take on success
Action on failure
Action to take on failure
4.3.1.2 ICMP Checker
Command
Description
ICMP Check Target
Target host
ICMP Check Interval
Interval between pings in seconds
ICMP Check Interval if one
request failed
Interval between pings, if one ping failed
ICMP Check Timeout
Timeout for ICMP Check Ping (Default: 5 seconds)
ICMP Check packet-size
ICMP Check packet size in bytes (Default: 4 bytes)
Maximum Failed Requests
Maximum number of failed pings before the script is executetd
(Default: 3)
ICMP Check Interface
Select interface to check in the dropdown menu
Action on success
Action to take on success
Action on failure
Action to take on failure
4.3.1.3 Example script
If the target is reachable, the DNAT rule of the firewall is deleted, all requests go to IP address
192.168.100.51 with port 23966.
#OK script
#!/bin/sh
export
PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/o
pt/TDT/bin
logger "deleting Firewall-Rule for DNAT..."