DX Unified Infrastructure Management

 View Only
  • 1.  Mapping Script output to an alert with logmon

    Posted Sep 28, 2020 11:58 AM
    Hello,

    we have some scripts that execute a query on cmd to check some parameters of TSM Backups; and return an errorlevel 0 if is OK with no text, and a errorlevel 1 with a message of text message when something is wrong with a variable that indicates the description of the exact problem.

    What is the best option to catch the return message? we don't know how to do it with logmon;
    The idea is:

    if errorlevel if 0, all is OK (clean alert)
    if errorlevel if 1 , generate an alert and catch/ show the message of the output script in cmd;

    I dont know how to do this, specially the second part of catch the return message of the script.

    Best regards



  • 2.  RE: Mapping Script output to an alert with logmon

    Broadcom Employee
    Posted Sep 28, 2020 01:17 PM
    Either way it is your preference. I like to use return code and create my own message personally. Also easier to create a "clear" if necessary. Here is a good doc to explain capabilities.:

    https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/logmon-log-monitoring/logmon-hints-and-examples.html