Versions Compared

Key

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

...

  • Format: echo -n rexec \[password\] \[path\] | /usr/local/uptime/bin/netcat \[agent hostname\] \[agent port\]
  • Example: echo -n rexec secretpassword /opt/uptime-agent/my-scripts/show_temp.sh my-arguments | /usr/local/uptime/bin/netcat my-agent 9998 !Note: the rexec text above does not indicate use of the rexec system utility, it is simply a key word used to indicate to the agent that you are attempting to run a pre-defined command.

For To create a script for monitoring stations running on Windows:

  1. Open a command prompt and go to the <uptime dir>uptimescripts folder.
  2. Run the following command to verify if whether you can create a rexec session: 
    Code Block
    languagesql
    agentcmd.exe -s -p 9998 \[hostname\] "rexec \[password\] \[CommandName\]"
    For example: C:Program Filesuptime softwareuptimescripts>agentcmd.exe -s -p 9998 testhost "rexec uptime test"

Creating an action profile and adding it to a service monitor

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

In the Recovery Script field of the Action Profile, enter type the name and path to a script that resides on the monitoring station. 

...

Add the Action Profile to a service monitor, and then perform a test by forcing the monitor to a CRIT status.

...

For more information about this feature, see Creating an Action Profile to Start Any Windows Serviceaction profile to start any Windows service.