Installing an AuGR Agent as a Service

The page steps through how to setup Aunsight Golden Record Agent to run as a service on either Windows or Linux.

It is recommended that the system the Agents will be installed on be setup with the following:

  • 6 Cores
  • 32GB RAM
  • 100GB Disk Space
  • Windows Server 2012 or newer

Networking Prerequisites

The following set of URLs need to be accessible from the AuGR Agent installation location.

Example Wildcard

*.n5o.blue
*.augr.aunsight.com

Example Explicit Hostnames

auth.n5o.blue
chadburn.augr.aunsight.com
go-between.augr.aunsight.com
go-between-grpc.augr.aunsight.com
logs.augr.aunsight.com
metabase.augr.aunsight.com
vault.augr.aunsight.com
writeback.augr.aunsight.com

Note

These are all examples for *augr.aunsight.com. Your actual hostname may differ.

Protocols

Protocol Port
HTTPS 443
WSS 443

Pilot (Windows)

Agent (Linux)

Windows

Step 1: Login to the desired tenant and navigate to the Agents screen.

Step 2: Click the + on the Agents screen to create new agent.

Add Agent

Step 3: Be sure you are on the Windows tab. In the Advanced section, enter the Agent name in the Display Name field and click Create Windows Agent.

Create Agent

Step 4: Capture the authentication token to be used later in step 9. Copy all the content following navagent.exe.

Auth Token

Step 5: Download the Pilot program to the target machine.

Pilot Download

Step 6: Unblock the application. From the Downloads folder, right click on the pilot-windows-amd64.exe file and go to Properties. On the General tab, check the Unblock checkbox to provide permission to install the application. Click Apply. Click OK.

Unblock

Step 7: Move the Pilot program to C:\Program Files\Agent.

Move Pilot

Step 8: Open an administrative command prompt and navigate to.

C:\Program Files\Agent

Command Prompt

Step 9: Install pilot with the following command.

pilot-windows-amd64.exe install AugrAgent [TOKEN FROM STEP 4]

Install Pilot

Step 10: Validate the Agent is running and connected. Within Services on the machine, you should see the newly created Agent.

Running

Return to the Agents screen and validate that your new Agent is in a Connected status.

Connected

Note

You may need to refresh your browser (Crtl + F5) for your new Agent status to update.

Linux

Step 1: Login to the desired tenant and navigate to the Agents screen.

Step 2: Click the + on the Agents screen to create new agent.

Add Agent

Step 3: Be sure you are on the Linux tab. In the Advanced section, enter the Agent name in the Display Name field and click Create Linux Agent.

Create Agent

Step 4: Capture the authentication token to be used later in step 10. Copy all the content following navagent.exe.

Auth Token

Step 5: Open a terminal on the target machine.

Terminal

Step 6: Navigate to the desired installation location.

Install Location

Step 7: Download the latest agent with the command:

wget --output-document navagent https://go-between.n5o.blue/hub/agents/binary/linux

Download

Step 8: Make the navagent executable using the following command:

chmod 110 navagent

Executable

Step 9: Get the current path with this command:

pwd

Path

Step 10: Start the agent with the following command:

nohup [CURRENT PATH FROM STEP 8]/navagent [TOKEN FROM STEP 4] &

Start Agent

Step 11: Capture the PID of the started process into a file to allow stopping the agent later using this command

echo $! > pid.txt

PID

Note

To stop the agent process run the following command:

 kill [PID FROM pid.txt]

Step 12: Return to the Agents screen and validate that your new Agent is in a Connected status.

Connected

Note

You may need to refresh your browser (Crtl + F5) for your new Agent status to update.

Troubleshooting

Blocked Pilot Program

Error Message

This application appears to have been blocked from correctly executing by Windows. Please disable blocking by right clicking on the application, clicking on 'Properties', then clicking on 'Unblock'.

Solution

Step 1: Open an administrative command prompt at the pilot installation location.

Step 2: Execute the following command to edit the Zone Identifier.

notepad.exe pilot-windows-amd64.exe:Zone.Identifier

Step 3: Set the ZoneId to 2

[ZoneTransfer]
ZoneId=2