...
- 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 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 language powershellbash 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 agent console by completing the following steps:
- Open the up.time 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.
...