Ad Widget

Collapse

UserParam return multiple values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • threepac
    Junior Member
    • Jul 2007
    • 3

    #1

    UserParam return multiple values

    I want to set up a UserParam to capture jstat numbers.

    At CLI I run:
    jstat -gcutil 22428 1000 1
    which returns:
    S0 S1 E O P YGC YGCT FGC FGCT GCT
    57.98 0.00 85.62 12.32 99.49 32 1.501 5 1.199 2.700

    I need to grab all the values and return them. I would then like to split them out into the appropriate labels for stats, graphs etc.


    I cannot re-execute and parse a different column, as the values need to be from one time slice.

    How would I accomplish this?
  • radamand
    Member
    • Aug 2008
    • 89

    #2
    I had a similar problem, here's what i did.

    create a cron job on the host that runs your command every <interval> and writes the results to a temporary text file. then set up UserParameters that parse the individual values out of that text file.

    Hope that helps...

    Comment

    Working...