Hi @madhavi gunasekar ,
There are many guides out there that explains how to accomplish this, I have prepared a few links for you that I think will help you out:
- SCOM 2012 – Linux Two-State Monitor With "Script In Script"
- SCOM 2012: UNIX/Linux Authoring with Shell Commands
- SCOM 2012: UNIX/Linux Monitoring with Scripts
- SCOM 2016 – What’s New UNIX/Linux Series: Monitors And Rules Running (Any) Script E.G. Perl
(Don't pay too much attention to the versions)
----------
(If the reply was helpful please don't forget to upvote or accept as answer, thank you)
Best regards,
Leon