Configure health monitoring
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.
To configure interface monitoring:
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
To display interface statistics with a pre-configured filter of choice:
get hmon interface-monitoring <interface specific monitor name>
To display health check statistics:
get hmon hchk <health check type name>
To run health check monitor to display all the interface statistics:
execute hmon interface-monitoring <interface>
To run health check instance on a specific interface:
execute hmon hchk protocol ping -I <interface> <probe ip or url>