Applies to Email Security Gateway models 400 and higher using SNMP for monitoring, firmware versions 3.4.10 and above.
You can calculate a periodic CPU load value using the existing values reported by the SNMP agent on the Email Security Gateway.
The standard SNMP MIB we are using reports the CPU load values averaged since the time the machine was booted. This did not change between our 3.3 release and our 3.4 release. You may observe the result of values changing faster on a machine that has been up for a short amount of time.
To obtain a periodic CPU load value, measurements for active CPU and idle CPU must be taken at two different times.
The calculations are as follows:
active_cpu = ssCpuRawSystem.0 + ssCpuRawNice.0 + ssCpuRawUser.0 idle_cpu = ssCpuRawIdle.0
Commands for the raw values are:
ssCpuRawSystem.0: snmpwalk -Os -v1 -c public 127.0.0.1 18.104.22.168.4.1.2021.11.52
ssCpuRawNice.0: snmpwalk -Os -v1 -c public 127.0.0.1 22.214.171.124.4.1.2021.11.51
ssCpuRawUser.0: snmpwalk -Os -v1 -c public 127.0.0.1 126.96.36.199.4.1.2021.11.50
ssCpuRawIdle.0: snmpwalk -Os -v1 -c public 127.0.0.1 188.8.131.52.4.1.2021.11.53
Let active_cpu and active_cpu be two values taken after an interval of time has passed, and let idle_cpu and idle_cpu be idle)_cpu values taken at the same time. Then, the total CPU usage as a percentage is:
((active_cpu -active_cpu) * 100) / ((active_cpu - active_cpu) + (idle_cpu - idle_cpu))
Barracuda Networks has verified that this formula does provide the correct results.
Additional context for operation of the net-SNMP implementation of CPU statistics can be found on sourceforge.net here.
Link to This Page: