Ad Widget

Collapse

Add Web scenarios support to Low Level Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tachikoma
    Junior Member
    • Nov 2013
    • 10

    #1

    Add Web scenarios support to Low Level Discovery

    Hello everyone

    As you know Zabbix doesn't support Web scenarios in Low Level Discovery (yet!). We have only HTTP Item which broken from start (if remote host is unavailable item become unsupported).
    So.. i implemented tools for that.

    My solution written with Rust and includes just two little tools:

    1. First tool for vhosts discovery. Tool scans nginx\apache config files and generates LLD data. LLD on zabbix server side generates items with name "vhost.item[URL]" (type - calculated). formula: 0.
    Nginx/Apache Vhosts discovery for Zabbix. Contribute to lebe-dev/vhost-discovery-tool development by creating an account on GitHub.


    2. Second tool searching vhost.items via Zabbix API and creates web-scenarios + simple triggers.
    Currently it creates just one web scenario+ one trigger per vhost.item. Trigger based on "web.test.fail".


    Now i'm testing it on my infrastructure and gather feedback.

    Feedback very appreciated
  • Zablab
    Junior Member
    • Jan 2022
    • 28

    #2
    How would one apply this concept using an ODBC Connection, coming into Zabbix as JSON, ultimately resulting in a string very similar to:

    {
    "{#NAME}":"somesite.ru_http",
    "{#URL}":"http://somesite.ru"
    }​

    We've got a similar situation where we have an instance\database name which would replace {#NAME} with {#INSTANCE}, and a associated URL would stay the same {#URL}

    I'd like to create a Web Scenario for each Instance, which has an associated URL:
    Instance: https://instance.stuff.com

    Comment

    • tachikoma
      Junior Member
      • Nov 2013
      • 10

      #3
      Originally posted by Zablab
      How would one apply this concept using an ODBC Connection, coming into Zabbix as JSON, ultimately resulting in a string very similar to:

      {
      "{#NAME}":"somesite.ru_http",
      "{#URL}":"http://somesite.ru"
      }​

      We've got a similar situation where we have an instance\database name which would replace {#NAME} with {#INSTANCE}, and a associated URL would stay the same {#URL}

      I'd like to create a Web Scenario for each Instance, which has an associated URL:
      Instance: https://instance.stuff.com
      Sorry for the late answer, didn't receive notifications for this thread.

      WSZL tool has an option --item-key-starts-with when you can specify your item names and WSZL will generate proper web scenarios.

      Comment

      Working...