DX NetOps

  • 1.  Linux CPU Monitoring

    Posted 08-22-2017 04:03 AM



    We have multiple Linux devices being monitored in Spectrum which are generating a lot of High CPU alarms, however when we check the devices the CPU seems to be fine. Now I imagine that Spectrum is using (hrPRocessorLoad) which actually only gives the average, over the last minute, of the percentage
    of time that this processor was not idle. So lets say that the processor is used 2% for the whole of the minute, the load would show as 100 and trip our 85% threshold to create an alarm.


    I have also looked at the following OID's:

    1 minute Load: .
    5 minute Load: .
    15 minute Load: .
    percentage of user CPU time: .
    raw user cpu time: .
    percentages of system CPU time: .
    raw system cpu time: .
    percentages of idle CPU time: .
    raw idle cpu time: .
    raw nice cpu time: .


    However none of them give a simple percentage of the CPU usage which would work correctly with attribute redirection for monitoring.


    Is there something I'm missing about monitoring Linux systems or is there a way to use the above information to get a simple percentage ?


    The device sysobjectid is

  • 2.  Re: Linux CPU Monitoring

    Broadcom Employee
    Posted 08-22-2017 06:05 AM

    In Spectrum it will depend upon the agent, but Spectrum will use RFC-2790 and/or Net-SNMP, with taking preference of using RFC-2790 for CPU calculations.




    RFC2790 CPU utilization is a direct read from hrProcessorLoad/0xc4074a ·


    For Net-SNMP we use the following calculation:
    TotalTicks=Delta( C1, 1 ) + Delta ( C2, 2 ) + Delta( C3, 3 ) + Delta( C4, 4 )  + Delta( C5, 5 ) + Delta( C6, 6 ) + Delta( C7, 7 ) + Delta( C8, 8 )

    -Where C# is the cached value from initial read and # is the last read. # corresponds to the index numbers above.
    UsedTicks=TotalTicks - Delta( C4, 4 )
    Utilization=( UsedTicks * 100 ) /  TotalTicks


    If your not happy with RFC-2790, you may try installing Net-SNMP and then changing the Source in Spectrum to use Net-SNMP.


    As most of the agents work on RFC-2790 or Net-SNMP, you can either use a Spectrowatch and create your own calculations, use a proprietary agent such as CA Unified Infrastructure Manager (UIM).


    I hope this helps.


    Best regards,