Ad Widget

Collapse

Zabbix monitoring docker

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkpc
    Junior Member
    • Aug 2020
    • 4

    #1

    Zabbix monitoring docker

    Hello,
    I needs to monitor container docker in the swarm, docker template works with agent 2, but as the container moves to the other host change name, add unique tag to name. Zabbix alerts that container does not exist.
    How can I monitor a container that changes name dynamically.

    thank you for help.
    Last edited by kkpc; 03-09-2020, 06:36.
  • isaqueprofeta
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2020
    • 154

    #2
    Originally posted by kkpc
    Hello,
    I needs to monitor container docker in the swarm, docker template works with agent 2, but as the container moves to the other host change name, add unique tag to name. Zabbix alerts that container does not exist.
    How can I monitor a container that changes name dynamically.

    thank you for hellp.
    This concept is old and repetitive but Docker containers are ephemeral, they "short" live, they "fastly" die, and simply do not exist anymore peridot. My advice to you is to concentrate container data in a hybrid prometheus+lld vs Zabbix monitoring for the service, not for the container.

    When I work with Docker/Kubernetes I always keep in mind that a container is not a host.

    Comment

    • kkpc
      Junior Member
      • Aug 2020
      • 4

      #3
      Click image for larger version

Name:	zab1.PNG
Views:	449
Size:	8.0 KB
ID:	408413
      In the Items: #NAME :

      string returns:

      Click image for larger version

Name:	zab2.PNG
Views:	429
Size:	2.2 KB
ID:	408414

      I just want it to be:
      Click image for larger version

Name:	zab3.PNG
Views:	358
Size:	1.3 KB
ID:	408415

      without:
      Click image for larger version

Name:	zab4.PNG
Views:	351
Size:	1.1 KB
ID:	408416

      how to remove it from the name?



      Comment

      • isaqueprofeta
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Aug 2020
        • 154

        #4
        Originally posted by kkpc
        Click image for larger version

Name:	zab1.PNG
Views:	449
Size:	8.0 KB
ID:	408413
        In the Items: #NAME :

        string returns:

        Click image for larger version

Name:	zab2.PNG
Views:	429
Size:	2.2 KB
ID:	408414

        I just want it to be:
        Click image for larger version

Name:	zab3.PNG
Views:	358
Size:	1.3 KB
ID:	408415

        without:
        Click image for larger version

Name:	zab4.PNG
Views:	351
Size:	1.1 KB
ID:	408416

        how to remove it from the name?
        For that, you can try preprocessing it: https://www.zabbix.com/documentation.../preprocessing

        Comment

        Working...