Ad Widget

Collapse

zabbix agent master/slave-how???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogi
    Junior Member
    • Mar 2016
    • 26

    #1

    zabbix agent master/slave-how???

    Hi,
    I have zabbix agent (dockerized) that monitor all my other docker containers.
    When a new container is up a trigger is activated ("new container is up") followed by an action.
    Now i have a problem: if my zabbix agent docker contianer is down and i am deploying it again, then zabbix agent start to collect data again and recognized all the already running containers as new once and activate the trigger ("new container is up") followed by an action. This is wrong.
    How can i prevent it? can i do a master/slave agent?
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Generic answer: name your container (--name <container_name>) and then use that <container_name> ("human name"/HCONTAINERID) in your Zabbix template instead of container id, which is regenerated all the time.

    To see more details pls visit README https://github.com/monitoringartist/...ker-monitoring (keywords HCONTAINERID, FCONTAINERID).
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • yogi
      Junior Member
      • Mar 2016
      • 26

      #3
      docker 1.13 swarm-no have container name

      I am using docker 13 and don't have a container name, only service name.

      Comment

      Working...