DX Application Performance Management

 View Only
Expand all | Collapse all

RHEL MPSTAT EPA Plugin

Haruhiko Davis

Haruhiko DavisAug 05, 2016 06:33 PM

  • 1.  RHEL MPSTAT EPA Plugin

    Posted Aug 05, 2016 05:06 PM

    Does anyone know of EPAgent script to run mpstat on RHEL? More specifically, I would love to get the output of

    mpstat -P ALL 7

    Hiko_Davis, I saw you did an mpstat for Solaris and I tried to adapt it for red hat, but the red hat one will likely have to be stateful, because if you run it without the interval, it doesn't seem to update correctly after successive manual executions.

    Sample output:

    05:01:46 PM  CPU   %user   %nice    %sys %iowait    %irq   %soft  %steal   %idle    intr/s

    05:01:53 PM  all    3.03    0.00    1.07    0.12    0.00    0.03    0.00   95.76   1379.14

    05:01:53 PM    0    3.00    0.00    1.00    0.00    0.00    0.00    0.00   96.00   1000.14

    05:01:53 PM    1    0.29    0.00    1.28    0.00    0.00    0.00    0.00   98.43      0.00

    05:01:53 PM    2    0.14    0.00    0.14    1.14    0.00    0.14    0.00   98.43     34.86

    05:01:53 PM    3    2.28    0.00    2.00    0.57    0.00    0.00    0.00   95.15     32.29

    05:01:53 PM    4    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00      9.00

    05:01:53 PM    5    0.29    0.00    1.14    0.14    0.00    0.14    0.00   98.29     77.71

    05:01:53 PM    6    0.00    0.00    0.00    0.00    0.00    0.00    0.00  100.00      0.00

    05:01:53 PM    7    0.29    0.00    0.43    0.00    0.00    0.00    0.00   99.29      0.00

    05:01:53 PM    8    0.29    0.00    0.00    0.00    0.00    0.00    0.00   99.71      0.00

    05:01:53 PM    9    7.29    0.00    1.57    0.00    0.00    0.00    0.00   91.14     36.14

    05:01:53 PM   10    0.72    0.00    3.00    0.00    0.00    0.00    0.00   96.28      1.00

    05:01:53 PM   11   14.14    0.00    3.14    0.00    0.00    0.14    0.00   82.57     34.86

    05:01:53 PM   12    9.57    0.00    1.00    0.00    0.00    0.00    0.00   89.43      1.00

    05:01:53 PM   13    2.14    0.00    1.71    0.00    0.00    0.00    0.00   96.14      6.00

    05:01:53 PM   14    0.14    0.00    0.00    0.00    0.00    0.00    0.00   99.86      2.14

    05:01:53 PM   15    7.70    0.00    1.14    0.00    0.00    0.14    0.00   91.01    144.14

    Thanks,

    Ryan



  • 2.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 05:10 PM

    I updated the Solaris one due to some issues with the code. Have you seen the latest?



  • 3.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 05:15 PM


  • 4.  Re: RHEL MPSTAT EPA Plugin

    Posted Aug 05, 2016 05:20 PM

    The solaris one doesn't work the same way as the red hat one unfortunately. I'm looking for a red hat version if you have one. That one in the link is the one I tried to modify, but couldn't get it working.



  • 5.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 05:22 PM

    I'll get a capture from my Solaris VM and work on it a bit to see what the issue is.



  • 6.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 05:23 PM

    Sorry, meant RHEL.



  • 7.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 08:40 PM

    What would you like to do about these decimal values? Do you want to return them as strings or as whole integers (multiplied by 100)?



  • 8.  Re: RHEL MPSTAT EPA Plugin

    Posted Aug 06, 2016 10:21 AM

    Let's just round them. I doubt being off by a half of a percent will matter too much.



  • 9.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 06, 2016 12:53 PM

    Will do. I have a floor/ceiling routine I can add.



  • 10.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 06, 2016 01:57 PM

    BTW You can also download my rhelSar.pl to get CPU stats while I create the 'mpstat' plugin.



  • 11.  Re: RHEL MPSTAT EPA Plugin
    Best Answer

    Broadcom Employee
    Posted Aug 06, 2016 04:25 PM

    Commit and Push completed.

    You can get the plugin here: https://github.com/htdavis/ca-apm-fieldpack-epa-rhel



  • 12.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 06:16 PM

    Dear Hiko:

         I see the Solaris not the Red Hat version on your github site. Can you please provide a link?

     

    I made this also into a discussion since about a field plugin

     

    Thanks

    Hal German



  • 13.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 05, 2016 06:33 PM

    I'm writing it as we speak.



  • 14.  Re: RHEL MPSTAT EPA Plugin

    Broadcom Employee
    Posted Aug 07, 2016 08:31 AM

    Thanks Hiko for your timely effort!!!. Given that you have provided two other solutions and I see no followup questions, I am marking this as answered