Code Monkey home page Code Monkey logo

Comments (2)

joelddiaz avatar joelddiaz commented on July 27, 2024

You want to try commenting out some bits that assume some variable are defined:

diff --git a/ansible/roles/os_zabbix/vars/template_app_zabbix_server.yml b/ansible/roles/os_zabbix/vars/template_app_zabbix_server.yml
index 394331a..78864b4 100644
--- a/ansible/roles/os_zabbix/vars/template_app_zabbix_server.yml
+++ b/ansible/roles/os_zabbix/vars/template_app_zabbix_server.yml
@@ -253,28 +253,28 @@ g_template_app_zabbix_server:
      value_type: int
      zabbix_type: trapper
 
-   zhttptests:
-   - name: check_v2_zabbix_web
-     interval: 60
-     application: Zabbix server
-     steps:
-     - name: "Check v2 Zabbix web"
-       url: "{{ g_v2_monitor_url }}"
-       status_codes: '200'
-       required: Zabbix
-       'no': 1
-     #- name: "Hit some other service"
-     #  url: "http://google.com"
-     #  status_codes: '200'
-     #  required: google
-     #  'no': 2
+     #   zhttptests:
+     #   - name: check_v2_zabbix_web
+     #     interval: 60
+     #     application: Zabbix server
+     #     steps:
+     #     - name: "Check v2 Zabbix web"
+     #       url: "{{ g_v2_monitor_url }}"
+     #       status_codes: '200'
+     #       required: Zabbix
+     #       'no': 1
+     #     #- name: "Hit some other service"
+     #     #  url: "http://google.com"
+     #     #  status_codes: '200'
+     #     #  required: google
+     #     #  'no': 2
 
    ztriggers:
-   - description: "Zabbix v2 Web UI is not responding"
-     expression: "{Template App Zabbix Server:web.test.fail[check_v2_zabbix_web].last(#1)}<>0 and {Template App Zabbix Server:web.test.fail[check_v2_zabbix_web].last(#2)}<>0"
-     name: "Zabbix v2 Web UI is not responding"
-     priority: high
-     url: https://github.com/openshift/ops-sop/blob/master/Services/Zabbix/Custom_Checks.asciidoc
+           #   - description: "Zabbix v2 Web UI is not responding"
+           #     expression: "{Template App Zabbix Server:web.test.fail[check_v2_zabbix_web].last(#1)}<>0 and {Template App Zabbix Server:web.test.fail[check_v2_zabbix_web].last(#2)}<>0"
+           #     name: "Zabbix v2 Web UI is not responding"
+           #     priority: high
+           #     url: https://github.com/openshift/ops-sop/blob/master/Services/Zabbix/Custom_Checks.asciidoc
 
    - description: "There has been unexpected output while running the housekeeping script\
        \ on the Zabbix. There are only three kinds of lines we expect to see in the output,\

from openshift-tools.

cragr avatar cragr commented on July 27, 2024

You were correct. The "g_v2_monitor_url" variable at line 263 of /ansible/roles/os_zabbix/vars/template_app_zabbix_server.yml has no value assigned. I manually assigned it "http://google.com" as the comments suggest. The build finished successfully and I am monitoring. Thanks.

from openshift-tools.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.