How to find total CPU utilization of a server using SNMP ? I am trying to find the CPU utilization % of one server having 64 CPU's ?
Thanks.
How to find total CPU utilization of a server using SNMP ? I am trying to find the CPU utilization % of one server having 64 CPU's ?
Thanks.
I'm going to guess you're using Linux, but because you don't specify, I can't guarantee that these will be OK (although they apply to most major Unix distribution as well)
The OID's you're looking for are (taken from here):
Load
- 1 minute Load:
.1.3.6.1.4.1.2021.10.1.3.1
- 5 minute Load:
.1.3.6.1.4.1.2021.10.1.3.2
- 15 minute Load:
.1.3.6.1.4.1.2021.10.1.3.3
CPU
- percentage of user CPU time:
.1.3.6.1.4.1.2021.11.9.0
- raw user cpu time:
.1.3.6.1.4.1.2021.11.50.0
- percentages of system CPU time:
.1.3.6.1.4.1.2021.11.10.0
- raw system cpu time:
.1.3.6.1.4.1.2021.11.52.0
- percentages of idle CPU time:
.1.3.6.1.4.1.2021.11.11.0
- raw idle cpu time:
.1.3.6.1.4.1.2021.11.53.0
- raw nice cpu time:
.1.3.6.1.4.1.2021.11.51.0
Memory Statistics
- Total Swap Size:
.1.3.6.1.4.1.2021.4.3.0
- Available Swap Space:
.1.3.6.1.4.1.2021.4.4.0
- Total RAM in machine:
.1.3.6.1.4.1.2021.4.5.0
- Total RAM used:
.1.3.6.1.4.1.2021.4.6.0
- Total RAM Free:
.1.3.6.1.4.1.2021.4.11.0
- Total RAM Shared:
.1.3.6.1.4.1.2021.4.13.0
- Total RAM Buffered:
.1.3.6.1.4.1.2021.4.14.0
- Total Cached Memory:
.1.3.6.1.4.1.2021.4.15.0
I can't remember off the top of my head, but I think the percentage of CPU time is 100*processors, so in your case, 100% is actually 6,400%
You can find all sorts of interesting things to monitor via SNMP here.