Menu

#1288 Add a scalar count of CPUs seen by agent

backport-needed
accepted
None
5
2023-06-19
2014-07-31
No

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 Attachments

Discussion

  • Ian Norton

    Ian Norton - 2014-07-31

    +1 yes please!

     
  • Andrew D Kirch

    Andrew D Kirch - 2014-07-31

    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.

     
    • Jeff Gehlbach

      Jeff Gehlbach - 2014-07-31

      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.

       
  • Jim

    Jim - 2014-07-31

    +1,this is long overdue

     
  • David Schlenk

    David Schlenk - 2014-08-01

    +1

     
  • Mike Bowie

    Mike Bowie - 2014-08-01

    +1

     
  • Jeff Gehlbach

    Jeff Gehlbach - 2014-08-01

    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.

     
  • Ken Eshelby

    Ken Eshelby - 2014-08-01

    +1 This has been needed for a long time!

     
  • Mike Bowie

    Mike Bowie - 2014-08-12

    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

     
  • Niels Baggesen

    Niels Baggesen - 2014-08-27

    Thanks for the patch! It has been applied for the upcoming 5.7.3 and master bransches.

     
  • Niels Baggesen

    Niels Baggesen - 2014-08-27
    • status: open --> accepted
    • assigned_to: Niels Baggesen
     
  • H Shyam Sundar

    H Shyam Sundar - 2023-06-16

    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
  • Niels Baggesen

    Niels Baggesen - 2023-06-19

    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)?

     

Log in to post a comment.