SCOM: Unix/Linux Shell Command Monitoring – Unique Requirement


When I was working with a customer recently, I came across an requirement, to execute a Shell Command and based on the results, the monitor state needs to be set for Target Server. One of the best example solution available in web is this.

THE PROBLEM:

But the uniqueness however  in this requirement is that the computer where the Shell Command needs to be executed and the Target Server are not the same.

5-14-2014 17-56-03

As Illustrated above, The monitor is targeted to a "Class A" which has several instances including "Server A". The Shell Command however needs to be executed on "Server B" and the results needs to be manipulated and the state of "Monitor A" needs to be set.

THE SOLUTION:

The "Microsoft.Unix.WSMan.Invoke.ProbeAction" probe based on which the Unix/Linux monitoring data sources are built in SCOM , has a parameter called "TargetSystem".

In normal scenarios, the value would always be "$Target/Property[Type="MicrosoftUnixLibrary!Microsoft.Unix.Computer"]/NetworkName$". Thus the Shell Command would be executed in "Server A" and the "Monitor A" would have a state based on results.

But the value of "TargetSystem" certainly need not to be Target Server's name. This can be changed to any server which has a SCOM Unix Agent installed with valid certificate for authentication. Then the Shell Command will be executed in the "Server B" rather than in Target Server.

Additionally you can pass the Target Server's name along with Shell Command as parameter if you have used the Promote Option for Shell Command

Find the XML code in PDF file attached to the post.

Have great SCOMing!!!

Example.Unix.ShellCommand.Monitoring.pdf

Comments (5)

  1. victoriajuri says:

    thank u for sharing these valuable information it is useful to unix learners.
    http://hyderabadsys.com/unix-online-training/">unix ONLINE TRAINING

  2. victorialisa says:

    thanku for sharing these information it is useful to me and unix learners.
    http://www.leadonlinetraining.com/unix-online-training/ ">UNIX ONLINE TRAINING

  3. Jacob says:

    Thanks for sharing this valuable information.It was very interesting.http://hyderabadsys.com/unix-online-training/">UNIX ONLINE TRAINING

  4. Dr Sylvester Benson says:

    GET YOUR PROBLEM SOLVE TODAY WITH MY PROFESSION IN ANY SPIRITUAL SPELL OR ANY KIND OF PHYSICAL BATTLE THAT NEED, MY NAME IS DR SYLVESTER AND THIS IS MY EMAIL FOR CONTACT (stbenson391@gmail.com) OR YOU CAN FOLLOW HIM UP ON FACEBOOK BY MY NAME (SYLVESTER E BENSON)
    ON FACEBOOK OR CALL ME ON MY MOBILE NUMBER +2348136090988, AM ALWAYS AVAILABLE TO RENDER YOU HELP WITH EXPERIENCE OF 32 YEARS IN SPELL CASTING AND HERBAL MEDICURE TO CURE ANY KIND OF DISEASE THAT YOU MAY HAVE, CONTACT ME ON ANY KIND OF ISSUES.

  5. jupitor b says:

    Thanks for giving Good Example.
    Fantastic article, Viral. Very well written, clear and concise. One of the best links explaining one to many and hierarchy in SAPGTS. Thanks a lot.It is uaefull to me and my training
    http://hyderabadsys.com/unix-online-training/">Hyderabasysonlinetraining center.

Skip to main content