API integration

What is the API-Integration StackPack?

The StackState API-Integration StackPack enables the StackState synchronization for the StackState's API-Integration Agents.

With API-Integration Agents you can run checks which connect to external systems like ServiceNow.

The StackState API-Integration Agent is open source: view the source code on GitHub.

Installation

Install the API-Integration StackPack by using the following sequence of steps:

Debian, Ubuntu
Amazon linux, CentOS, Fedora, Red Hat
Debian, Ubuntu
  1. Download the API-Integration Agent from Bintray or run this command on the machine where you wish to install the Agent:

    wget 'https://dl.bintray.com/stackstate-agent/stackstate-agent-deb-repo/pool/s/stackstate-agent/stackstate-agent_1.2.18-1_amd64.deb'
  2. Use dpkg to install the downloaded package:

    dpkg -i stackstate-agent_1.2.18-1_amd64.deb
  3. Set the following keys in the stackstate.conf.example file:

    api_key: {{config.apiKey}}
    dd_url: {{config.baseUrl}}/stsAgent/
  4. After this the example configuration can be used as configuration.

    cp /etc/sts-agent/stackstate.conf.example /etc/sts-agent/stackstate.conf
Amazon linux, CentOS, Fedora, Red Hat
  1. Download the API-Integration Agent from Bintray or run this command on the machine where you wish to install the Agent:

    wget https://dl.bintray.com/stackstate-agent/stackstate-agent-yum-repo/stackstate-agent_1.3.0-1.x86_64.rpm
  2. Use rpm to install the downloaded package:

    rpm -i stackstate-agent_1.3.0-1.x86_64.rpm
  3. Set the following keys in the stackstate.conf.example file:

    api_key: {{config.apiKey}}
    dd_url: {{config.baseUrl}}/stsAgent
  4. After this the example configuration can be used as configuration.

    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.