Fortinet white logo
Fortinet white logo

CLI Reference

system cpumem-monitor

system cpumem-monitor

Use this command to configure CPU and memory monitoring parameters, including capture intervals, utilization thresholds, and log retention limits. By adjusting these settings, you can fine-tune the frequency of resource checks, detect high usage conditions, and enable per-CPU monitoring for more granular analysis. Debugging and log retention controls allow for efficient troubleshooting and long-term data collection.

Syntax

config system cpumem-monitor

set cpu-capture-interval <int>

set cpu-check-interval <int>

set cpu-high-threshold <int>

set cpumem-monitor {enable|disable}

set debug {enable|disable}

set max-files <int>

set mem-capture-interval <int>

set mem-change-threshold <int>

set mem-check-interval <int>

set mem-high-threshold <int>

set per-cpu-detect {enable|disable}

end

Variable Description Default
cpu-capture-interval <int> Specify the minimum time (in seconds) between consecutive CPU usage captures. Valid range: 1–86400. 60
cpu-check-interval <int> Specify the interval (in seconds) for checking CPU utilization. Valid range: 1–86400. 1
cpu-high-threshold <int> Set the CPU utilization threshold (%) for high usage detection. Valid range: 10–100. 90
cpumem-monitor {enable|disable} Enable or disable monitoring of CPU and memory usage. disable
debug {enable|disable} Enable or disable debug mode for the CPU and memory monitor. disable
max-files <int> Define the maximum number of retained monitoring log files. Valid range: 1–1000. 10
mem-capture-interval <int> Specify the minimum time (in seconds) between consecutive memory usage captures. Valid range: 1–86400. 1800

mem-change-threshold <int>

Set the memory utilization change threshold (%) for anomaly detection. Valid range: 1–100.

10

mem-check-interval <int>

Specify the interval (in seconds) for checking memory utilization. Valid range: 1–86400.

300

mem-high-threshold <int>

Set the memory utilization threshold (%) for high usage detection. Valid range: 10–100.

90

per-cpu-detect {enable|disable} Enable or disable per-CPU usage detection. disable

Example

config system cpumem-monitor 
  set cpu-capture-interval 30
  set cpu-check-interval 1
  set cpu-high-threshold 90
  set cpumem-monitor enable
  set debug enable
  set max-files 10
  set mem-capture-interval 1800
  set mem-change-threshold 10
  set mem-check-interval 300
  set mem-high-threshold 90
  set per-cpu-detect enable
end     

system cpumem-monitor

system cpumem-monitor

Use this command to configure CPU and memory monitoring parameters, including capture intervals, utilization thresholds, and log retention limits. By adjusting these settings, you can fine-tune the frequency of resource checks, detect high usage conditions, and enable per-CPU monitoring for more granular analysis. Debugging and log retention controls allow for efficient troubleshooting and long-term data collection.

Syntax

config system cpumem-monitor

set cpu-capture-interval <int>

set cpu-check-interval <int>

set cpu-high-threshold <int>

set cpumem-monitor {enable|disable}

set debug {enable|disable}

set max-files <int>

set mem-capture-interval <int>

set mem-change-threshold <int>

set mem-check-interval <int>

set mem-high-threshold <int>

set per-cpu-detect {enable|disable}

end

Variable Description Default
cpu-capture-interval <int> Specify the minimum time (in seconds) between consecutive CPU usage captures. Valid range: 1–86400. 60
cpu-check-interval <int> Specify the interval (in seconds) for checking CPU utilization. Valid range: 1–86400. 1
cpu-high-threshold <int> Set the CPU utilization threshold (%) for high usage detection. Valid range: 10–100. 90
cpumem-monitor {enable|disable} Enable or disable monitoring of CPU and memory usage. disable
debug {enable|disable} Enable or disable debug mode for the CPU and memory monitor. disable
max-files <int> Define the maximum number of retained monitoring log files. Valid range: 1–1000. 10
mem-capture-interval <int> Specify the minimum time (in seconds) between consecutive memory usage captures. Valid range: 1–86400. 1800

mem-change-threshold <int>

Set the memory utilization change threshold (%) for anomaly detection. Valid range: 1–100.

10

mem-check-interval <int>

Specify the interval (in seconds) for checking memory utilization. Valid range: 1–86400.

300

mem-high-threshold <int>

Set the memory utilization threshold (%) for high usage detection. Valid range: 10–100.

90

per-cpu-detect {enable|disable} Enable or disable per-CPU usage detection. disable

Example

config system cpumem-monitor 
  set cpu-capture-interval 30
  set cpu-check-interval 1
  set cpu-high-threshold 90
  set cpumem-monitor enable
  set debug enable
  set max-files 10
  set mem-capture-interval 1800
  set mem-change-threshold 10
  set mem-check-interval 300
  set mem-high-threshold 90
  set per-cpu-detect enable
end