Health Monitoring or HMON is commonly used for monitoring network and system health status, in addition to notifying subscribers of certain conditions which result in reporting collected statistics to FortiExtender cloud or FortiGate, respectively. One instance could involve data overage, another could be probing targets via ping or HTTP, and another could be checking link usability based on RTT or packet loss.
config hmon config interface-monitoring edit < interface specific monitor name > set interval <interval size in seconds, default:30> set interface <interfaces to monitor: lte1, lte2> set filter <interested fields: rx_bytes,tx_bytes,rx_packets,tx_packets,rx_ dropped,tx_dropped,rx_bps,tx_bps,rx_pps,tx_pps> next end
To configure health check (which can be via ping, http,etc with specific intervals, timeouts and filters on any specific interface or interfaces):
config hchk edit < health check type name > set protocol <ping|http|dns, default: ping> set interval <interval size in seconds, default :30> set probe-cnt <probes to be sent within an intervalm default:1> set probe-tm <probe timeout, default:2> set probe-target <target to be probed> set interface <uplink interfaces on which probe has to be sent> set src-iface <interface whose source IP is to be used> set filter <rtt |loss> next end end
get hmon interface-monitoring <interface specific monitor name>
get hmon hchk <health check type name>
execute hmon interface-monitoring <interface>
execute hmon hchk protocol ping -I <interface> <probe ip or url>