Install Zenoss with Docker
Configure the BigPanda agent to send monitoring alerts from Zenoss.
The BigPanda agent is a low-footprint utility installed on the master host of your monitoring tool. It consumes alerts from the tool in real-time and then transmits them to BigPanda via TLS-encrypted HTTP calls.
Python Compatibility
To use the Open Integration Manager for Agent-based integrations, Python version>= 3.8.0 and an Agent version >= 10.2 are required.
Prerequisites
Docker Desktop or Docker Engine must be installed prior to installing the BigPanda agent docker image
.
-
Follow the Docker Installation Guide for your system.
-
If using
Docker Compose
, follow the Install Docker Compose guide to ensure the latest version of compose is installed on your system.Docker Compose
is built with the latest version ofDocker Desktop
.- If using
Docker CLI
, ensureDocker CLI's Compose Plugin
is installed separately.
Note: If you have issues running any of the docker commands, you either need to run docker with sudo
, or add your user to run in the docker group as a non-root user.
Environment Variables
The docker image provides the following environment variables, which can be used to initialize the agent with the appropriate plugin.
- BP_TOKEN: Initializes the BigPanda Agent Bearer Token
- SNMP_APP_KEY: Initializes the BigPanda Agent Bearer Token
- HTTP_PROXY: Adds the proxy settings to bigpanda.conf
- FORCE_APP_KEY: Set to
true
to override the existing plugin app key - NAGIOS_APP_KEY: Sets the Nagios App Key and configures the plugin
- NAGIOS_USER: Sets the Nagios Username and is required to set up Nagios plugin
- ZABBIX_APP_KEY: Sets the Zabbix App Key and configures the plugin
- ZENNOSS_APP_KEY: Sets the Zenoss App Key and configures the plugin
- ICINGA_APP_KEY: Sets the Icinga App Key and configures the plugin
Pull the BigPanda docker image
-
Pull the
latest
BigPanda agent docker image from the BigPanda JFrog Docker Registry:docker pull bigpandaio-int-docker.jfrog.io/bigpanda-agent:latest
-
Check that the latest image was downloaded successfully:
docker image ls
Optional:
You can configure a dedicated docker network for the agent. This is useful if you require the agent to communicate with other docker services.
-
Create the docker network:
docker network create <network-name>
-
Check that the network was created:
docker network ls
Configure a docker container to work with Zenoss
-
Run the container in detached mode, passing both
BP_TOKEN
andZENOSS_APP_KEY
environment variables todocker run
.docker run -dit \ --name bp_agent \ -e BP_TOKEN=<Your Org Bearer Token> \ -e ZENOSS_APP_KEY=<Your App Key> \ bigpandaio-int-docker.jfrog.io/bigpanda-agent:latest
-
View the logs of the running docker container:
docker container logs -f bp_agent
Optional - Docker Compose
Services can be managed via Docker Compose
, which requires either the Docker Compose Plugin or the latest Docker Desktop installed.
-
Create a file called
docker-compose.yml
:vim docker-compose.yml
-
Add the BigPanda agent service configuration to
docker-compose.yml
:version: '3.9' services: bp_agent: image: bigpandaio-int-docker.jfrog.io/bigpanda-agent:latest container_name: bp_agent restart: always stdin_open: true tty: true environment: - BP_TOKEN=<Your Org Bearer Token> - ZENOSS_APP_KEY=<Your App Key> networks: - bigpanda networks: bigpanda: external: true
It's important to note that the following commands are based on having Docker Engine 19+ installed, or Docker Desktop installed which has Docker Compose support. If the docker-compose plugin is installed separately, then the command will start with
docker-compose
vsdocker compose
. -
Bring up the agent container:
docker compose up -d
-d
is used to run the container in detached mode. -
View the logs of the running docker container:
docker compose logs -f
-
You can bring down the container with the
down
command:docker compose down
Configure the Zenoss plugin
The Zenoss plugin requires configuration, which means that we need an interactive session to set it up. The problem when running a docker container in detached mode is the entrypoint script is running the shell session in the background. For this, we can attach to the running session to complete the configuration.
-
Attach to the shell session to continue setting up Zenoss
docker attach --detach-keys="ctrl-q" agent
Since
ctrl-c
will send a kill signal to the shell, stopping the container,--detach-keys
passes an alternate key sequence.
When prompted, enter the base URL of the Zenoss.core web interface and a valid username and password.
Note: You may want to create a dedicated user for BigPanda, the required role is ZenUser
.
Set Zenoss timezone
Zenoss uses the timezone that has been set in the system that it is installed on. Connect to the server Zenoss is installed on, check the timezone, and select it below.
Success
The next time Zenoss sends a notification for an alert, you will see the alert in the Incident Dashboard.
Updated about 2 months ago