endpoints:
  - name: ups card basement
    group: ups
    url: "http://192.168.1.72/"
    client:
      ignore-redirect: true
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[CONNECTED] == true"
      - "[STATUS] < 400"

  - name: ups card study
    group: ups
    url: "http://192.168.1.73/"
    client:
      ignore-redirect: true
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[CONNECTED] == true"
      - "[STATUS] < 400"

  - name: ups card smc
    group: ups
    url: "http://192.168.1.71/"
    client:
      ignore-redirect: true
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[CONNECTED] == true"
      - "[STATUS] < 400"

  - name: nut truenas1
    group: ups
    url: "tcp://192.168.1.86:3493"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions: ["[CONNECTED] == true"]

  - name: nut pve1
    group: ups
    url: "tcp://192.168.1.81:3493"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions: ["[CONNECTED] == true"]

  - name: nut ups-smc
    group: ups
    url: "tcp://192.168.1.86:3494"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions: ["[CONNECTED] == true"]

  - name: nut data truenas1
    group: ups
    url: "http://192.168.1.86:30104/api/v1/query?query=network_ups_tools_ups_status%7Bups%3D%22ups-truenas%22%2Cflag%3D%22OL%22%7D%20and%20%28time%28%29%20-%20timestamp%28network_ups_tools_ups_status%7Bups%3D%22ups-truenas%22%2Cflag%3D%22OL%22%7D%29%29%20%3C%20150"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[STATUS] == 200"
      - "[BODY].status == success"
      - "[BODY].data.result[0].value[1] == 1"

  - name: nut data pve1
    group: ups
    url: "http://192.168.1.86:30104/api/v1/query?query=network_ups_tools_ups_status%7Bups%3D%22ups-proxmox%22%2Cnode%3D%22pve1%22%2Cflag%3D%22OL%22%7D%20and%20%28time%28%29%20-%20timestamp%28network_ups_tools_ups_status%7Bups%3D%22ups-proxmox%22%2Cnode%3D%22pve1%22%2Cflag%3D%22OL%22%7D%29%29%20%3C%20150"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[STATUS] == 200"
      - "[BODY].status == success"
      - "[BODY].data.result[0].value[1] == 1"

  - name: nut data pve2
    group: ups
    url: "http://192.168.1.86:30104/api/v1/query?query=network_ups_tools_ups_status%7Bups%3D%22ups-proxmox%22%2Cnode%3D%22pve2%22%2Cflag%3D%22OL%22%7D%20and%20%28time%28%29%20-%20timestamp%28network_ups_tools_ups_status%7Bups%3D%22ups-proxmox%22%2Cnode%3D%22pve2%22%2Cflag%3D%22OL%22%7D%29%29%20%3C%20150"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[STATUS] == 200"
      - "[BODY].status == success"
      - "[BODY].data.result[0].value[1] == 1"

  - name: nut data pve3
    group: ups
    url: "http://192.168.1.86:30104/api/v1/query?query=network_ups_tools_ups_status%7Bups%3D%22ups-proxmox%22%2Cnode%3D%22pve3%22%2Cflag%3D%22OL%22%7D%20and%20%28time%28%29%20-%20timestamp%28network_ups_tools_ups_status%7Bups%3D%22ups-proxmox%22%2Cnode%3D%22pve3%22%2Cflag%3D%22OL%22%7D%29%29%20%3C%20150"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[STATUS] == 200"
      - "[BODY].status == success"
      - "[BODY].data.result[0].value[1] == 1"

  - name: nut data ups-smc
    group: ups
    url: "http://192.168.1.86:30104/api/v1/query?query=network_ups_tools_ups_status%7Bups%3D%22ups-smc%22%2Cnode%3D%22truenas1-nut%22%2Cflag%3D%22OL%22%7D%20and%20%28time%28%29%20-%20timestamp%28network_ups_tools_ups_status%7Bups%3D%22ups-smc%22%2Cnode%3D%22truenas1-nut%22%2Cflag%3D%22OL%22%7D%29%29%20%3C%20150"
    interval: 60s
    ui:
      resolve-successful-conditions: true
    conditions:
      - "[STATUS] == 200"
      - "[BODY].status == success"
      - "[BODY].data.result[0].value[1] == 1"
