I frequently need to know how many CPUs the agent sees, as this information is useful for consistently scaling certain objects' values to account for varying numbers of processors in servers. This can be done with an extend directive, but that's platform-specific and difficult to roll out in the absence of good configuration management.
This patch adds a new scalar, UCD-SNMP-MIB::ssCpuNumCpus (.1.3.6.1.4.1.2021.11.67), which exposes this information as already maintained internally by the agent.
+1 yes please!
I agree that this is needed, and also +1.
Given that this is going into the standard MIB would an update to RFC 3418 be required? I think it's worth the RFC to get a simple scalar value for number of CPU's.
Thanks for your support, Andrew. I put the new object in the UCD-SNMP-MIB which is not governed by any IETF working groups nor defined by any RFC.
+1,this is long overdue
+1
+1
I've tested this patch so far on x86_64 Linux 3.14.13-100 (Fedora 19) and amd64 FreeBSD 10.0-RELEASE. It works as expected on both platforms.
+1 This has been needed for a long time!
Patches, builds and runs on NetBSD 6.1.4 building from pkgsrc.
netbsd6-1-4-amd64$ snmpwalk -v2c -c public 127.0.0.1 .1.3.6.1.4.1.2021.11.67
UCD-SNMP-MIB::ssCpuNumCpus.0 = INTEGER: 1
Thanks for the patch! It has been applied for the upcoming 5.7.3 and master bransches.
I am in need of a similar requirement currently.
Can anyone guide me on how to install this patch ??
Last edit: H Shyam Sundar 2023-06-16
This has been in all releases since 5.7.3 in 2014. Where do you need it (in other words, you really need to upgrade)?