Custom Remote IntegerGitHub: uptimesoftware/custom-remote-integer
|Uptime Monitoring Station Version|
|Custom Remote Integer 1.0||7.8, 7.7, 7.6, 7.5, 7.4, 7.3|
|Description:||The Custom Remote Integer will trigger a script on a remote system via the Uptime agent and return the output to Uptime as an integer value. This allows you to do greater than/less than style comparisons. As well as save for graphing purposes.|
|Supported Monitoring Stations:||7.8, 7.7, 7.6, 7.5, 7.4, 7.3|
|Supported Agents:||Windows, Solaris, Linux, AIX|
Install via the Extension Manager
Agent must be installed to trigger remote script. Agent password must also be set up.
####Agent Configuration Since this mod requires an agent component you will need to do the following on each server that you want to trigger a remote script.
####Linux/Solaris: 1. Make sure the file is able to be executed by the “nobody” user (Solaris) or “uptagent” user (Linux). 2. Create/edit the following agent password file: /opt/uptime-agent/bin/.uptmpasswd 4. Enter a line like the following for each script you want to run remotely: | PASSWORD /SCRIPT/NAME As long as the agent user (‘nobody’ for Solaris and ‘uptagent’ for Linux) can read and execute the script manually the agent should be able to as well. |
####Windows: 1. Place the script somewhere on a local drive on the system. 2. Open the Uptime Agent Console (Start > Uptime Agent). 3. Set a Password for the agent and click on the Save button (restart the agent for the change to take effect). It should only take about a second for the agent to restart and there should be no outage during this period. 4. Click on Advanced > Custom Scripts. It is here that you configure the agent to run your custom scripts. Changes are saved as soon as you click the add/edit/delete buttons to the registry.
The scripts can be in any programming language (bat, vbs, php, perl,etc) as long as they can be executed on the command line.
The Command Name is just a descriptive name for the script. The Path to Script is the full path to the script (including the script name).
Example (batch script):
Script: cmd /c dir C:\
Example (vbs script):
Script: cscript //nologo “C:\my scripts\my wmi script.vbs
- After adding the custom script(s) to the list, click on the Close button and it will ask to restart the agent, click Yes. Changes only go into effect once the agent is restarted.
April 8, 2014