Navigation

    Best APM Solution for Oracle WebLogic Server & FMW Product Family
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Download

    WebLogic Linux Disk Usage and Delete Action

    L2 Monitoring & Automation
    1
    1
    137
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wlsdmsupport
      WLSDM Support last edited by can.sahin-wlsdmteam

      WLSDM disk usage dashbord displays linux server mount point disks ”/appdata”, “/ROOT”, “/data” etc. WLSDM custom action triggers when disk usage exceeds the threshold. Below custom Devops MBean and custom action explains how to display disk usage control by WLSDM DevOps MBean.


      WLSDM DevOps MBean Script:

      “WLSDM-LinuxDiskUsage” script for display mount disks and “WLSDM-LinuxFindandDelete” custom action for decrease linux server disk usage.

      echo DISK_APPDATA=$(df /appdata | grep /appdata | awk '{print $5}' | tr '%' ' ') ; \ 
      echo DISK_ROOT=$(df / | grep / | awk '{print $5}' | tr '%' ' ') ; \
      echo DISK_DATA=$(df /data | grep /data | awk '{print $5}' | tr '%' ' ')
      

      WLSDM Custom Action:

      Find and Delete x Days Before in server logs and sploutput batch logs.

      find /appdata/domains/ccb_domain/servers/. -type f -mtime +1 | grep -E 'log0|out0|err0' | awk '$1' | xargs rm -rf
      
      find /appdata/ouaf/sploutput/CCBPROD/ -type f -mtime +3 | grep -E '*' | awk '$1' | xargs rm -rf
      

      WLSDM Chart Output:

      d2de9c01-3517-4754-856d-5c0f7a3773ee-image.png

      WLSDM Community Support Team

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post

      WLSDM: Native WebLogic Monitoring & Diagnostics

      Copyright © 2021 WLSDM Community & Support Portal | WLSDM.COM | WLSDM Blog