🚀 SetupStackState Agent Agent V1 (Legacy) StackState Self-hosted v4.6.x
Overview
StackState Agent V1 allows you to run checks that connect to Splunk to retrieve metrics and events data. All other Agent checks run on StackState Agent V2 .
StackState Agent V1 is open source: View the source code on GitHub .
Installation
Install StackState Agent V1 by using the following sequence of steps:
Debian, Ubuntu Amazon linux, CentOS, Fedora, Red Hat
Download the StackState Agent V1 Debian package or run this command on the machine where you wish to install the Agent:
Copy wget https://s3-eu-west-1.amazonaws.com/agent.stackstate.com/stackstate-agent-deb-repo/pool/s/stackstate-agent/stackstate-agent_1.3.0-1_amd64.deb'
Use dpkg
to install the downloaded package:
Copy dpkg -i stackstate-agent_1.3.0-1_amd64.deb
Set the following keys in the stackstate.conf.example
file:
Copy api_key: {{config.apiKey}}
dd_url: {{config.baseUrl}}/stsAgent/
After this the example configuration can be used as configuration.
Copy cp /etc/sts-agent/stackstate.conf.example /etc/sts-agent/stackstate.conf
Download the StackState Agent V1 RPM package or run this command on the machine where you wish to install the Agent:
Copy wget 'https://s3-eu-west-1.amazonaws.com/agent.stackstate.com/stackstate-agent-yum-repo/stackstate-agent_1.3.0-1.x86_64.rpm'
Use rpm
to install the downloaded package:
Copy rpm -i stackstate-agent_1.3.0-1.x86_64.rpm
Set the following keys in the stackstate.conf.example
file:
Copy api_key: {{config.apiKey}}
dd_url: {{config.baseUrl}}/stsAgent
After this the example configuration can be used as configuration.
Copy cp /etc/sts-agent/stackstate.conf.example /etc/sts-agent/stackstate.conf
If you need further assistance, our support team will be glad to help.
Start / stop / restart the Agent
Commands require elevated privileges.
Restarting the StackState Agent will reload the configuration files.
To manually start, stop or restart the StackState Agent:
Linux Windows
Copy sudo /etc/init.d/stackstate-agent start
sudo /etc/init.d/stackstate-agent stop
sudo /etc/init.d/stackstate-agent restart
CMD
Copy "C:\Program Files\StackState\StackState Agent\embedded\agent.exe" start-service
"C:\Program Files\StackState\StackState Agent\embedded\agent.exe" stopservice
"C:\Program Files\StackState\StackState Agent\embedded\agent.exe" restart-service
PowerShell
Copy & "C:\Program Files\StackState\StackState Agent\embedded\agent.exe" start-service
& "C:\Program Files\StackState\StackState Agent\embedded\agent.exe" stopservice
& "C:\Program Files\StackState\StackState Agent\embedded\agent.exe" restart-service
Status and information
Linux Windows
To check if StackState Agent V1 is running:
Copy sudo /etc/init.d/stackstate-agent status
To receive information about the StackState Agent V1 state:
Copy sudo /etc/init.d/stackstate-agent info
Tracebacks for errors can be retrieved by setting the -v
flag:
Copy sudo /etc/init.d/stackstate-agent info -v
To check if the StackState Agent is running and receive information about the Agent's state:
Troubleshooting
Try running the info command to see the state of StackState Agent V1.
Logs for the subsystems are in the following files:
/var/log/stackstate/supervisord.log
/var/log/stackstate/collector.log
/var/log/stackstate/stsstatsd.log
/var/log/stackstate/forwarder.log
If you are still having trouble, contact our support team on the StackState support site .