DX Application Performance Management

  • 1.  Need help in preparing perl script for memory utilization in linux server

    Posted 05-03-2016 05:54 AM

    Hello All,

     

    Can anyone help me to prepare a perl script for memory utilization of linux server and user need to see output of following command as metrics through EPAgent :-

     

    ps -eo pmem| grep -v mem| awk '{SUM+=$1} END{OFMT = "%.0f"; print SUM}'

     

    Please help.

     

    Thanks

    Vaibhav



  • 2.  Re: Need help in preparing perl script for memory utilization in linux server
    Best Answer

    Broadcom Employee
    Posted 05-04-2016 01:22 AM

    Take a look at any one of my linux scripts. You'll see examples there on how to run the command and return the results in XML format.



  • 3.  Re: Need help in preparing perl script for memory utilization in linux server

    Posted 05-04-2016 03:00 AM

    Hello Davis,

     

    Do you have any repository of script which I can refer.

     

    Thanks

    Vaibhav



  • 4.  Re: Need help in preparing perl script for memory utilization in linux server

    Broadcom Employee
    Posted 05-04-2016 03:04 AM

    They're available in the community documents or on GitHub (https://github.com/CA-APM).



  • 5.  Re: Need help in preparing perl script for memory utilization in linux server

    Posted 05-10-2016 05:12 AM

    I found very less readymade perl script on Github..Many thanks for your help