Ad Widget

Collapse

no alert when zabbix proxy is offline

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lewis Wiltshire
    Member
    • May 2024
    • 33

    #1

    no alert when zabbix proxy is offline


    Hi all,

    I am using Zabbix 6.4.16 and have setup 29 zabbix proxies in active mode.

    I am facing a problem that when my zabbix proxy is offline. And this is an issue ask then I do not know when a site is offline without checking when the proxy last checked in Administration > Proxies and looking in that section

    I want it so when a proxy is not reachable to more that 10mins it adds it and its hosts connected to the problems page
    Last edited by Lewis Wiltshire; 14-07-2024, 00:18.
  • RoyK
    Junior Member
    • Jan 2016
    • 20

    #2
    This might help? https://www.zabbix.com/forum/zabbix-...-last-24-hours

    Comment

    • NgRox
      Member
      • Jun 2022
      • 44

      #3
      Hi, this topic answers your question!



      Comment

      • Lewis Wiltshire
        Member
        • May 2024
        • 33

        #4
        Can you dumb this down? I haven't used zabbix before

        Comment

        • Lewis Wiltshire
          Member
          • May 2024
          • 33

          #5
          Please can someone help me with this still.

          Comment

          • NgRox
            Member
            • Jun 2022
            • 44

            #6
            It is possible to make a call to the Zabbix API and list all offline proxy

            I will make the code for you and show you how to use it, I used python.

            from zabbix_api import ZabbixAPI
            zapi = ZabbixAPI(server="http://<ip>/api_jsonrpc.php")
            zapi.login("login", "senha")
            host_get = zapi.proxy.get({
            "filter": {
            "state": 1
            },
            "output": ["name"]
            })

            print(host_get)


            This will show the name of the proxy that has state 1, which means offline.

            Create this script on the server in /externalscripts, and make zabbix run it, it will show the offline proxies, just create a trigger if it brings results.

            change <ip> - to your zabbix ip
            change login - via the login of a user with permissions
            change password - to password for the user with permissions​

            Qualquer dúvida manda mensagem!

            Comment

            • Lewis Wiltshire
              Member
              • May 2024
              • 33

              #7
              Originally posted by NgRox
              It is possible to make a call to the Zabbix API and list all offline proxy

              I will make the code for you and show you how to use it, I used python.

              from zabbix_api import ZabbixAPI
              zapi = ZabbixAPI(server="http://<ip>/api_jsonrpc.php")
              zapi.login("login", "senha")
              host_get = zapi.proxy.get({
              "filter": {
              "state": 1
              },
              "output": ["name"]
              })

              print(host_get)


              This will show the name of the proxy that has state 1, which means offline.

              Create this script on the server in /externalscripts, and make zabbix run it, it will show the offline proxies, just create a trigger if it brings results.

              change <ip> - to your zabbix ip
              change login - via the login of a user with permissions
              change password - to password for the user with permissions

              Qualquer dúvida manda mensagem!
              Hello,

              Sorry its been a while, How do I make the zabbix run the script?

              Comment

              • ysus
                Senior Member
                • Mar 2016
                • 100

                #8
                Not sure if I fully understood the problem but Zabbix server monitors proxy health automatically. No additional configuration required.
                Attached Files

                Comment

                Working...