How to monitor system performance-disk in XSOAR 6.12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

How to monitor system performance-disk in XSOAR 6.12

L2 Linker

We want to monitor server performance in real time for that we are using default dashboard named "System Health". But in that we are not able to monitor disk.
Our server is on Prem and its version of xsoar is 6.12.

Please assist quickly.

3 REPLIES 3

L2 Linker

Please someone support on this.

L1 Bithead

Hi @assubramania

Have you tried the following content pack? If not, please give it a try.

https://cortex.marketplace.pan.dev/marketplace/details/HealthCheck/

Also, you can always use any APM solution (free or paid) to monitor your on-prem environment in real time.

L1 Bithead

To monitor system performance, including disk usage, in Cortex XSOAR 6.12, you can also set up custom monitoring using scripts and dashboards. Since the default "System Health" dashboard may not include disk monitoring, you can create your own dashboard or enhance the existing one through a custom script (automation) using the "psutil" Python library for example. Then you can create a Job to run the script periodically or you may create a custom Dashboard to display disk usage:

 

import psutil

def main():
    # Get disk usage statistics
    disk_usage = psutil.disk_usage('/')
    
    # Prepare the results
    results = {
        'Total': disk_usage.total,
        'Used': disk_usage.used,
        'Free': disk_usage.free,
        'Percent': disk_usage.percent
    }
    
    # Return the results to XSOAR context
    demisto.results({
        'Type': entryTypes['note'],
        'ContentsFormat': formats['json'],
        'Contents': results,
        'EntryContext': {
            'DiskUsage': results
        }
    })

if __name__ in ('__main__', '__builtin__', 'builtins'):
    main()

 

  • 561 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!