Skip to content

Sensu backend has the "unknown" status #5114

@IvanovOleg

Description

@IvanovOleg

Expected Behavior

Sensu backend entity in the dashboard has "Ok" status

Current Behavior

Sensu backend entity in the dashboard has "Unknown" status

Image

Possible Solution

Steps to Reproduce (for bugs)

  1. Create a test environment using the docker-compose configuration:
services:
  sensu-backend:
    image: sensu/sensu:6.13
    command: sensu-backend start --state-dir /var/lib/sensu/sensu-backend
    hostname: sensu-backend
    ports:
      - "3000:3000"  # Web UI
      - "8080:8080"  # API
      - "8081:8081"  # Agent API
    volumes:
      - sensu-backend-data:/var/lib/sensu/sensu-backend
    environment:
      - SENSU_BACKEND_CLUSTER_ADMIN_USERNAME=admin
      - SENSU_BACKEND_CLUSTER_ADMIN_PASSWORD=P@ssw0rd!
      - SENSU_BACKEND_API_URL=http://localhost:8080
      - SENSU_BACKEND_DASHBOARD_URL=http://localhost:3000
    healthcheck:
      test: ["CMD", "wget", "-S", "http://localhost:8080/health"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 5s

  sensu-agent:
    image: sensu/sensu:6.13
    command: sensu-agent start --backend-url ws://sensu-backend:8081 --subscriptions system
    hostname: sensu-agent
    depends_on:
      sensu-backend:
        condition: service_healthy
    environment:
      - SENSU_AGENT_NAME=sensu-agent
      - SENSU_AGENT_NAMESPACE=default

volumes:
  sensu-backend-data:

Context

Your Environment

  • Sensu version used (sensuctl, sensu-backend, and/or sensu-agent): 6.13.1
  • Installation method (packages, binaries, docker etc.): docker-compose
  • Operating System and version (e.g. Ubuntu 14.04): docker-desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions