System Health Check¶
This guide shows which CLI commands to run to check the health of a gateway series appliance (mFusion, HSG, CMG and log server), and how to read their output. Use it for routine checks, after an upgrade or reboot, and as the first step when users report a problem.
The check starts with one command, show system health, which tests every area and flags problems. Each warning names the command to run next, so you only go deeper where something is wrong.
Note
The commands marked (new) in this guide, and the extra checks in show system health (root filesystem, failed services, firewall sessions, repeated log errors, database warnings and monitoring data quality), are available from the first gateway firmware released after 20261120-1100. On earlier firmware, use the other commands in each section.
Requirements¶
| Item | Requirement |
|---|---|
| Access | CLI access through the console, SSH from the LAN, or Remote SSH from mFusion (see Common Tools) |
| Privilege | Enable mode. Log in to the CLI and run enable; the prompt changes from > to # |
| Platform | Gateway series appliance. The show mfusion ... commands exist only on appliances licensed for mFusion |
| Impact | All commands in this guide are read-only. They do not change configuration and are safe to run on a production appliance |
Health Check Workflow¶
- Run
show system healthand read every[warn]line. - For each warning, run the command the warning names (see Step 1).
- Check the areas that matter for this appliance's role: routing and VPN for a CMG, the monitoring server for mFusion, RADIUS and hotspot for an HSG.
- Record the results. A baseline taken while the appliance is healthy makes the next comparison much faster.
Step 1: Run show system health¶
show system health runs every check in one pass. Each line starts with [info] (normal) or [warn] (needs attention). The last line gives the total:
[info] mbox health check completed. no issues found.: nothing needs attention.[warn] mbox health check completed with N issue(s).: read each[warn]line above it.
Example output (mFusion appliance, with issues):
mfusion# show system health
[info] uptime: up 3 days, 11 hours, 49 minutes
[info] load average: 0.16 0.16 0.18 (cores: 4)
[info] memory usage: 69%
[info] data disk usage: 2%
[info] root filesystem usage: 64%
[info] no failed services.
[info] cron daemon is running.
[info] mysql is running.
[warn] database warning repeated 14 times in the last hour: Aborted connection N to db: 'radius' user: 'radius' host: 'localhost' (Got timeout reading communication packets). see 'show mfusion mysql'.
[info] apache2 is running.
[info] mfusion agent is running.
[info] mfusion server is running.
[warn] mfusion monitoring: 95 of 723 items unsupported (13%). see 'show mfusion server status'.
[info] mfusion monitoring: open device problems: 12 disaster. see 'show mfusion server status'.
[info] radius is running.
[info] IPSec is running.
[info] WireGuard is running.
[info] firewall sessions: 617 of 65536 (0%)
[info] radius.radacct: partitions span p20261110..p20261130 (~13d), within retention of 90d.
[warn] repeated errors in system log: charon(24). see 'show logging errors'.
[info] WAN address: 10.0.0.56
[info] default gateway 10.0.0.1 is reachable.
[warn] mbox health check completed with 3 issue(s).
This example has three warnings: database connections timing out, too many unsupported monitoring items, and the IPsec service (charon) logging repeated errors. The open device problems are an [info] line: they describe the monitored devices, not this appliance.
What Each Check Means¶
| Check | [warn] when |
Next command |
|---|---|---|
| load average | The 1-minute load is higher than the number of CPU cores | show system processes |
| memory usage | More than 90% of memory is in use (cache that can be freed is not counted) | show system memory, show system processes |
| data disk usage | The data disk is more than 90% full | show system disk |
| root filesystem usage | The system disk (/) is more than 90% full |
show system disk |
| failed services | A system service has stopped with an error | show logging errors |
| cron / mysql / apache2 / radius / mfusion agent / mfusion server | A service that should run is stopped, or its process is missing | The matching show command in Step 6 |
| database warning repeated | The same database warning appears 10 or more times in the last hour (up to 3 are listed) | show mfusion mysql |
| mfusion monitoring: items unsupported | More than 10% of enabled monitoring items cannot be collected | show mfusion server status |
| mfusion monitoring: items delayed | Monitoring items are waiting more than 10 minutes to be collected | show mfusion server status |
| IPSec / WireGuard | Peers are configured but the service or interface is down | show ipsec status, show wg |
| firewall sessions | The session table is more than 80% full | show firewall sessions summary |
| partitions | A database table is not being prepared or cleaned up as its retention requires | Check Admin → General → Data Maintenance in the GUI |
| repeated errors in system log | One program has logged 20 or more errors recently. The count is shown in brackets | show logging errors |
| default gateway | The default gateway does not answer ping, or there is no default route | show ip route, show ip interface |
Step 2: Check System Resources¶
Use these commands when show system health reports high load, memory or disk use, or when the appliance feels slow.
| Command | Shows |
|---|---|
show system processes (new) |
A 1-second CPU sample with the processes using CPU, the top 10 processes by memory, and any failed services |
show system cpu |
CPU use per core since boot |
show system memory |
Memory and swap use |
show system disk |
Use of each filesystem |
show system iostat |
Disk read/write load per device |
show uptime |
Uptime, logged-in users and load average |
Example: show system processes
mfusion# show system processes
CPU (1-second sample):
top - 11:32:54 up 3 days, 11:32, 1 user, load average: 0.14, 0.23, 0.25
Tasks: 352 total, 1 running, 349 sleeping, 0 stopped, 2 zombie
%Cpu(s): 0.4 us, 0.6 sy, 0.0 ni, 98.7 id, 0.0 wa, 0.0 hi, 0.2 si, 0.0 st
MiB Mem : 3925.1 total, 92.1 free, 2706.3 used, 1419.1 buff/cache
MiB Swap: 15259.0 total, 15259.0 free, 0.0 used. 1218.9 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9835 mysql 20 0 8194.5g 1.7g 25008 S 2.0 45.2 40:42.25 mariadbd
410 www-data 20 0 284400 52288 36464 S 1.0 1.3 0:06.59 apache2
Top 10 processes by memory:
PID USER RSS(MB) %MEM ELAPSED COMMAND
9835 mysql 1774.1 45.1 3-11:30:14 mariadbd
18335 freerad 87.1 2.2 3-11:28:13 freeradius
...
Failed services: none
How to read it:
id(idle) in the%Cpu(s)line: below 20% means the CPU is busy. The process list under it shows who is using it.wa(I/O wait): above 10% means processes are waiting for the disk. Checkshow system iostat: a device with%utilnear 100 is the bottleneck.st(steal): above 5% on a virtual machine means the hypervisor is not giving the appliance its CPU. Check the host, not the appliance.avail Memis the memory left for new work, including cache that can be freed. Thefreevalue is normally small and is not a problem by itself.- Swap
used: any steady swap use means the appliance needs more memory. On mFusion, the database (mariadbd) is normally the largest process. Plan at least 8 GB of memory for a large monitoring deployment. - zombie processes: a few are harmless. A count that keeps growing points to a faulty process; report it to RansNet support.
Step 3: Check the Logs¶
show logging system and the other show logging ... commands show live logs until you press Ctrl+C. To see what already happened, use the commands below.
| Command | Shows |
|---|---|
show logging errors [lines] (new) |
Failed services, then the most recent errors from the system log, the kernel and the web server, plus the database warnings that repeat most often. Default: 20 lines per log |
show logging system last <lines> [filter <text>] (new) |
The last 1–2000 lines of the system log, optionally only lines that contain <text> |
show logging |
Whether the logging service, log server and remote log output are running |
Note
On an appliance that also acts as a log server, the system log file contains messages from remote devices. show logging errors and show logging system last show only the appliance's own messages.
Example: show logging errors 3
mfusion# show logging errors 3
== Failed services: none
== System log: last 3 errors/warnings
Nov 23 11:28:02 mfusion charon: 09[IKE] giving up after 5 retransmits
Nov 23 11:29:45 mfusion charon: 12[IKE] establishing IKE_SA failed, peer not responding
Nov 23 11:31:17 mfusion charon: 09[IKE] giving up after 5 retransmits
== Kernel: last 3 errors
none
== Web server: last 3 errors
[Mon Nov 23 11:00:03.015354 2026] [php:notice] [pid 410:tid 410] [client 127.0.0.1:32776] Server is not allowed to run raw data reports
== Database: most frequent warnings (last 1000 log lines)
41 [Warning] Aborted connection N to db: 'radius' user: 'radius' host: 'localhost' (Got timeout reading communication packets)
Here the IPsec service cannot reach one peer. That is usually a branch that is offline; show ipsec status shows which peer is DOWN.
How to read it:
- Look for the same message repeating. One-off errors after a reboot or a configuration change are normal; a message that keeps coming back is a persistent fault.
- In the database section, numbers in the messages are replaced with
Nso that repeats of the same warning are counted together. The count on the left is how often it occurred. [php:notice]lines in the web server log are informational and do not need action by themselves.- To follow one problem over time, filter the system log, for example
show logging system last 200 filter charon.
Step 4: Check Interfaces and Routing¶
| Command | Shows | Healthy result |
|---|---|---|
show ip interface |
IP address of each interface | Every interface in use has its expected address |
show interface stats |
Traffic and drop counters per interface | Drop counters stay flat between two runs. A few drops on a tunnel whose peer is down are expected |
show ip route |
The routing table, per VRF | A default route (0.0.0.0/0) in the default VRF, and the expected routes in each VRF. Routes are marked >* (selected and installed) |
show ip route summary |
Route counts by source (default VRF only) | Counts match your baseline |
show ip bgp summary |
BGP peers per VRF | Each peer has an uptime and a prefix count (State/PfxRcd is a number, not Active or Idle) |
show ip vrrp |
VRRP groups | On the active unit, the virtual IP is present and the status is running |
show ip ntp-server |
NTP peers and sync state | One peer marked * (selected), reach of 377, and an offset of a few milliseconds |
How to read show ip route:
VRF 12:
C>* 10.12.0.0/24 is directly connected, vlan12, 3d10h46m
B>* 10.12.2.0/24 [200/0] via 10.2.172.2, vxlan2, weight 1, 3d05h54m
VRF default:
S>* 0.0.0.0/0 [1/0] via 10.0.0.1, eth0, weight 1, 3d10h45m
- The first letter is the route source:
Cconnected,Sstatic,Kkernel,BBGP,OOSPF. >*means the route is selected and installed. A route markedr(rejected) orq(queued) is not being used.- The time at the end is how long the route has been up. A BGP route with a much shorter uptime than the rest has flapped recently; check
show ip bgp summaryand the VPN status. show ip route summarycounts only the default VRF. Count the routes under eachVRFheading inshow ip routefor the others.
Step 5: Check VPN Tunnels and Sessions¶
| Command | Shows | Healthy result |
|---|---|---|
show ipsec status |
IPsec peers, state, traffic and uptime | Every expected peer shows ESTABLISHED. The Peers line counts established and connecting peers |
show wg |
WireGuard peers, state and last handshake | Every expected peer shows ACTIVE, with a last update under 3 minutes ago |
show firewall sessions summary (new) |
Session table use, sessions by protocol and TCP state, and the top 10 sources and destination ports | Table use well below 80%. No single unexpected source dominates |
How to read the VPN status:
- A peer that is
DOWNon both IPsec and WireGuard, with a last handshake from days ago, is usually a branch that is switched off or has lost its Internet link. Check the branch, not the hub. - A peer that keeps reconnecting (short uptime that resets) points to an unstable branch link or an MTU problem; see Fix MTU Issues.
Example: show firewall sessions summary
mfusion# show firewall sessions summary
Sessions: 632 of 65536 (0% of table)
Listed: 368 (the kernel count above also includes entries being set up or torn down)
By protocol:
tcp 352
udp 11
TCP by state:
TIME_WAIT 297
ESTABLISHED 31
Top 10 source addresses:
127.0.0.1 230
203.0.113.21 28
...
Top 10 destination ports:
tcp/3306 148
tcp/443 96
- Table use above 80%: new connections may be dropped when the table is full. Find the source in the top 10 lists.
- One source address with thousands of sessions: a scan, an attack or a misbehaving client. Check
show security ipsand the firewall rules. - Many
TIME_WAITsessions to127.0.0.1on mFusion are local database connections and are normal. show firewall sessionswithoutsummarylists every session. On a busy appliance that is thousands of lines; filter it withinclude <text>instead, for exampleshow firewall sessions include dport=179.
Step 6: Check the mFusion Services¶
These commands exist on appliances licensed for mFusion.
| Command | Shows | Healthy result |
|---|---|---|
show mfusion server |
Monitoring, mail and database access status | All three running / YES |
show mfusion server status (new) |
The above, plus monitoring server version, monitored hosts, unreachable hosts, items, unsupported items, delayed items (queue) and open problems by severity | Few unsupported items, queue 0 |
show mfusion mysql |
Database summary: version, uptime, connections, query rate, slow queries, memory cache, data disk and the most repeated warnings | Service: active, connections well below the limit, no warning repeating heavily |
show mfusion mysql detail (new) |
The full database service status | active (running) |
show mfusion sync |
High-availability sync role and replication | See High Availability Sync |
show mfusion agent |
The appliance's own monitoring agent | running |
Example: show mfusion server status
mfusion# show mfusion server status
Monitoring service: running
Mail service: running
Database Access: YES
Server version: 6.0.7
Hosts monitored: 16 (disabled: 3)
Hosts unreachable: 0
Items enabled: 723
Items unsupported: 95
Queue (>10 min): n/a (queue item not collected)
Open problems by severity:
Disaster 12
Warning 1
How to read it:
- Hosts unreachable: devices whose monitoring interface does not answer. Compare with the device list in the GUI.
- Items unsupported: values that cannot be collected, usually because a template does not match the device's firmware or model. A high share wastes monitoring capacity; review the templates on the affected hosts.
- Queue (>10 min): values that are overdue. A queue that keeps growing means the monitoring server cannot keep up; check
show system processesandshow mfusion mysql.n/ameans the queue item is not collected on this appliance. - Open problems: alerts raised for monitored devices. Review them in the GUI (see Alerts).
Example: show mfusion mysql
mfusion# show mfusion mysql
Service: active
Version: 10.11.18-MariaDB-0+deb12u1-log
Uptime: 3d 11h 30m
Connections: 26 now, 55 peak, limit 150
Queries/sec (avg): 16
Slow queries: 2
Aborted: 8 connects, 3357 clients (idle/timeout)
Buffer pool: 1373 MB
Data disk: 1.4G used of 98G (2%), /var/lib/mysql
HA replication: see 'show mfusion sync'
Most frequent warnings (last 1000 log lines):
41 [Warning] Aborted connection N to db: 'radius' user: 'radius' host: 'localhost' (Got timeout reading communication packets)
How to read it:
- Connections: a peak close to the limit means new connections may be refused.
- Slow queries: a number that grows quickly between two runs points to an overloaded database or a missing index; report it to RansNet support.
- Aborted clients: connections closed after being idle. A steady count is normal; a sudden jump points to a service that cannot reach the database.
- Most frequent warnings: a warning repeated hundreds of times is a persistent fault. Report the message to RansNet support.
Step 7: Check Security¶
| Command | Shows | Healthy result |
|---|---|---|
show security ips |
IPS mode, threat feed status and hits, and blocked sources | Mode prevent. Each feed's Last check is ok (a feed retired by its source is shown as retired and can be ignored) |
show security ips blocked |
Sources blocked right now | No internal addresses in the list |
show security login-policy |
CLI password policy and account status | Every account active. Failures stay at 0 or a low number |
show remote-session |
Open Remote SSH / Remote Web sessions | Only sessions you expect |
A Failures count that keeps rising on an account means someone is trying to log in with the wrong password. Accounts lock after 5 failed attempts.
Quick Health Check Summary¶
| Items to Test | Command | Expected Outcome |
|---|---|---|
| Overall health | show system health |
no issues found, or each [warn] line explained |
| CPU and memory | show system processes |
CPU idle above 20%, no swap in use, Failed services: none |
| Disk space | show system disk |
Every filesystem below 90% |
| Recent errors | show logging errors |
No message repeating heavily |
| Default route | show ip route |
0.0.0.0/0 present and marked >* |
| BGP | show ip bgp summary |
Every peer has an uptime and a prefix count |
| VPN | show ipsec status, show wg |
Expected peers ESTABLISHED / ACTIVE |
| HA | show ip vrrp, show mfusion sync |
Virtual IP on the active unit; replication Yes, lag 0 on the secondary |
| Time | show ip ntp-server |
A selected peer (*), offset a few milliseconds |
| Sessions | show firewall sessions summary |
Table use below 80% |
| Monitoring server | show mfusion server status |
Few unsupported items, queue 0 |
| Database | show mfusion mysql |
Service: active, connections below the limit |
| Security | show security ips |
Mode prevent, feeds ok |
Troubleshooting¶
| Symptom | Likely Cause | Solution |
|---|---|---|
show system health warns about load, and the GUI is slow |
One process uses most of the CPU, or the disk is overloaded | Run show system processes. If wa is high, run show system iostat. On a virtual machine with high st, check the hypervisor |
| Memory usage above 90%, swap in use | The appliance has too little memory for its workload | Add memory. On mFusion, the database is the main user of memory |
| Root filesystem above 90% | Old upgrade files or logs on the system disk | Report it to RansNet support. Do not delete system files |
database warning repeated for the same message every hour |
A scheduled database job or a service keeps failing | Run show mfusion mysql and send the warning text to RansNet support |
repeated errors in system log names one program |
That program has a persistent fault | Run show logging system last 200 filter <program> to see the full messages |
mfusion monitoring: items unsupported |
Templates do not match the monitored devices | In the GUI, review the unsupported items on the affected hosts and correct or unlink the templates |
BGP peer stuck in Active or Idle |
The tunnel to that peer is down | Check show ipsec status and show wg for the peer, then check the branch's Internet link |
VPN peer DOWN for days |
The branch is switched off or offline | Check the branch's power and Internet link. The hub needs no change |
| Firewall session table above 80% | A scan, an attack or a misbehaving client | Run show firewall sessions summary and check the top source. Check show security ips |
| A command prints nothing and the prompt does not come back | A live log command (show logging system without last) is running |
Press Ctrl+C |
Best Practices¶
- Take a baseline. Save the output of the Quick Health Check Summary commands while the appliance is healthy, and again after every upgrade. Differences stand out quickly against a baseline.
- Check after every upgrade and reboot. Run
show system health,show ip bgp summary,show ipsec statusandshow mfusion sync(HA pairs) as soon as the appliance is back. - Use summaries on busy appliances. Prefer
show firewall sessions summaryandshow logging errorsover full session lists and live logs. - Collect output for support. When you contact RansNet support, include the output of
show system health,show logging errorsand the commands for the affected area.
Security Best Practices¶
- Never expose management services to WAN. Keep SSH and GUI access restricted to the LAN, or use Remote SSH from mFusion.
- Use the enable password only when needed. Health checks need enable mode, but no configuration mode.
- Watch for login failures. A rising failure count in
show security login-policyis an early sign of a password attack. - Keep firmware updated. See the Gateway Series Release Notes for security fixes.
Related Features¶
- Common Tools: ping, traceroute, tcpdump, Remote SSH and other diagnostic tools
- High Availability Sync: HA roles, replication and failover
- Fix MTU Issues: tunnels that reconnect or stall
- Alerts: open problems on monitored devices