Ad Widget

Collapse

Docker Active UAT Template Warnings

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Janet Kew
    Junior Member
    • Jan 2021
    • 11

    #1

    Docker Active UAT Template Warnings

    Container problems never resolve because after restarting the container, a new container is started with a new ID at the end of the container name and then Dashboard is filled with Information warnings that eventually are manually acknowledged.
    I have lots of containers running and this happens to each of them.
    How to handle that better than manually acknowledging each time? Is there any way I could use a wildcard to show as resolved for every container in total?
    Last edited by Janet Kew; 13-01-2021, 13:56. Reason: docker
  • Janet Kew
    Junior Member
    • Jan 2021
    • 11

    #2
    Is there any option that I can set macro like $NAME.* where $NAME will be the name of the container and * will replace the ID of the container which changes every time after re-deploying continers

    Comment

    • Janet Kew
      Junior Member
      • Jan 2021
      • 11

      #3
      Hi,. docker.cpu["{#CONTAINER_NAME}"]
      I'm running server zabbx4.4 and have a template for Docker; I have a Docker container discovery rule consisting of item prototype Docker: Container running state {#CONTAINER_NAME}, key: docker.ps["{#CONTAINER_NAME}"].
      Item prototype docker.ps is declared as a type of information "Text".
      The problem is, I want to have a warning if the container is not running but if it's not running for an hour I want that warning to disappear because this container is terminated for good.
      I am using function last and no data in my expressions but I haven't set that properly since zabbix reports that the container is not running but it's not disappearing after staying like that for 45minutes.
      How to write proper problem and recovery expression so that if the container is not running it triggers the warning but if the container is in that state for 45 minutes then the warning resolves by itself?
      Problem expression:
      {Docker Active PROD:docker.ps["{#CONTAINER_NAME}"].last()}=0 or {Docker Active PROD:docker.ps["{#CONTAINER_NAME}"].nodata(7m)}=1
      Recovery expression:
      {Docker Active PROD:docker.ps["{#CONTAINER_NAME}"].str(Exited,45m)}=1

      Comment

      Working...