Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This article will describe how to set up and run a recovery script with an up.time Uptime Infrastructure Monitor Action Profile. There are three main steps for this process:

...

The recovery script will depend on the desired action and will need to be developed based on the user's specific environment. After the agent-side script is written, the up.time Uptime Infrastructure Monitor agent will need to be configured to execute it. As a minimum, configure the following settings for each agent-side command:

  • For agents running on non-Windows systems, define a password and command pair in the agent-side password file by completing the following steps:
    • Ensure that a file named .uptmpasswd is created in the up.time Uptime Infrastructure Monitor agent bindirectory (either /opt/SPYNuptm/bin/ or /opt/uptime-agent/bin depending on the agent version). This file must be owned and readable by the user that the agent is run as.
    • Open the .uptmpasswd file in a text editor.
    • Enter a password and command pair for each command that you want to run on the agent system. The following is an example format and contents of an agent-side command script:
      Format: [password] [command path, no arguments]
      Example file contents:

      Code Block
      languagebash
      secretpassword /opt/uptime-agent/my-scripts/show_temp.sh 
      $%^& /usr/local/bin/appstatus.sh
  • For agents running on Windows systems, define a password and command pair in the up.time Uptime Infrastructure Monitor agent console by completing the following steps:
    • Open the up.time Uptime Infrastructure Monitor Agent Admin console and click on the Advanced > Custom Script link on the menu.
    • Provide a command name in the Command Name field (something easy to remember) and type the path of the script in the Path to Script field.
    • Click the Add / Edit button and close the window.
    • Type the password in the Password field, save it and restart the agent.

...

  • The script must exit with a success status (i.e. no errors during the execution).
  • The script must accept the host name of the agent system as the third argument (up.time Uptime Infrastructure Monitor will automatically add this argument to the arguments that are passed to the script).

...

The next step is to create an up.time Uptime Infrastructure Monitor Action Profile. Detailed steps for this process can be found on the Help link of the up.time Uptime Infrastructure Monitor web interface. However, the basic functions are as follows:

...