Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
    • bind9 named
    • NX Client
    • FreeNX Server
    • Archive
    • Asterisk
    • Audio Recorder
    • Build essential
    • Chromium
    • Couch DB
    • DMA
    • DVD
    • Dovecot
    • Eclipse
    • FTP server
    • Firefox
    • GWT
    • Games
    • Gimp
    • Glassfish
    • Gnome classic
    • Google Music Manager
    • HAproxy
    • HTTrack
    • Hibiscus
    • Icinga
    • Install Cinnamon
    • Install thttpd
    • Install vivaldi
    • Java JDK
    • Jenkins
    • Kodi
    • LTSP
    • LXC
    • LibreOffice
    • Mailserver
    • MariaDB
    • Microsoft teams
    • MiniDLNA
    • Mosquitto MQTT server
    • MySQL Connector/J
    • MySQL Server
    • MySQL Workbench
    • Nemo
    • NetBeans
    • Node-RED
    • Obnam
    • OpenElec PXE
    • OpenFortiGUI
    • Oracle XE
    • Postfix
    • ProjectLibre
    • Proton VPN
    • Proton VPN
    • Roundcubemail
    • Ruby on Rails
    • Rundeck
    • SQL Developer
    • SQuirreL SQL
    • Scribus
    • Skype
    • SonarQube
    • Spotify
    • Squid
    • SteuerSparErklärung
    • TeamViewer
    • Thunderbird
    • Tipp10
    • Tomcat
    • Ubuntu restricted extras
    • UnixBench
    • VLC player
    • VMware Player
    • Vega
    • VirtualBox
    • Visual Studio Code
    • Webserver
    • Wine
    • WordPress
    • apt-cacher-ng
    • autofs
    • avidemux
    • ckeditor
    • consul
    • ddrescue
    • duplicity
    • easytax
    • gbrainy
    • gitea
    • gnokii
    • gogs
    • gopenvpn
    • hddtemp
    • homebridge
    • iSCSI
    • jitsi
    • lm-sensors
    • mattermost
    • myTinyTodo
    • neatx
    • netdata
    • nullmailer
    • openproject
    • phpMyAdmin
    • pip
    • pipelight
    • proftpd
    • prometheus
    • pyenv
    • rTorrent
    • restic
    • rustdesk
    • smartmontools
    • snap
    • speedtest
    • sshuttle
    • stress test
    • syslinux
    • tftp server
    • tinyproxy
    • topgrade
    • uShare
    • x2go
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
  • network
  • consul
echo '["abcdef123458"]' /var/consul/serf/local.keyring
service consul restart

# config
/etc/consul/config.json
/etc/consul/consul.d/*

# log
/var/log/syslog

CLI

consul catalog datacenters
consul catalog nodes
consul catalog services

consul monitor
consul validate /etc/consul/config.json 
consul operator raft list-peers

UI listen on external
https://stackoverflow.com/questions/35132687/how-to-access-externally-to-consul-ui

# Redirect UI to localhost
ssh -L 8500:localhost:8500 root@node1.example.com -N

# cat /etc/consul/config.json 
{
...
    "addresses": {
        "dns": "127.0.0.1",
        "grpc": "127.0.0.1",
        "http": "0.0.0.0",
        "https": "127.0.0.1"
    },
...

Remove service from specific node

ssh node1
consul services deregister -id=prometheus

Remove node
https://www.consul.io/commands/force-leave

consul force-leave com52-dev

checks
https://www.consul.io/api/agent/check.html

Get service state
https://consul.example.com/v1/agent/service/neutron

Icinga / Nagios checks

for SERVICE in $(consul catalog services); do
    echo ${SERVICE}
    /usr/lib/nagios/plugins/check_consul_service.py ${SERVICE}
    echo
done

Ansible module
https://docs.ansible.com/ansible/latest/modules/consul_module.html

Consul data directory

/var/consul/*

ESP
# remove service

curl -X PUT --data "{ \"Node\": \"ceph1-dev\", \"ServiceID\": \"rgw1-ep\" }" http://127.0.0.1:8500/v1/catalog/deregister
curl -X PUT --data "{ \"Node\": \"ceph2-dev\", \"ServiceID\": \"rgw2-ep\" }" http://127.0.0.1:8500/v1/catalog/deregister

Fix "No cluster leader" error
https://learn.hashicorp.com/tutorials/consul/recovery-outage
https://stackoverflow.com/questions/36772098/recovering-from-consul-no-cluster-leader-state
https://learn.hashicorp.com/tutorials/vault/ha-with-consul

consul members
consul info
consul operator raft list-peers
curl http://${IP}:8500/v1/status/peers
curl http://${IP}:8500/v1/status/leader
ll /var/consul//data/raft/
service consul status
consul catalog services

Links
https://www.consul.io/docs/agent/options.html
https://www.hashicorp.com/blog/load-balancing-strategies-for-consul
https://blog.eleven-labs.com/en/consul-service-discovery-failure-detection/
https://learn.hashicorp.com/tutorials/consul/dns-forwarding#unbound-setup

Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung