Ad Widget

Collapse

monitoring core routers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • conan202
    Junior Member
    • Dec 2020
    • 9

    #1

    monitoring core routers

    Hi

    I have the following problem monitoring switches and routers.

    When the router to which the switches are connected crashes, I receive alerts from the routers and switches.

    how can I get only alerts from the router?

    Thanks!!!
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    I had an idea, but I'm not sure it's possible. Zabbix supports trigger dependencies, your switch trigger could be dependent on the router trigger, but unless you have an inventory of devices and use the API, the setup of these would be a chore. It might be possible to set a host macro {$MY.ROUTER} and the switch trigger might be able to use that macro in the switch trigger.

    Comment


    • conan202
      conan202 commented
      Editing a comment
      thanks, maybe at the host level it would be nice if zabbix could configure this.
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #3
    How would Zabbix know which router is upstream? If you can do that, you can automate that with the API.

    Comment


    • conan202
      conan202 commented
      Editing a comment
      Is it possible to do with python that it receives the hostname as a parameter and from which it depends that it adds that condition in the fall triggers?

      It is for Cisco networking devices.
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #4
    Probably, I use this flavor of the Python API: https://github.com/lukecyca/pyzabbix

    The API works with host and trigger id's, you need to filter on a name to get the id.

    Switch_stuff = zapi.host.get(filter={'host':sw_host_name,output=" extend",selectTriggers="extend"} <-- gets the triggers on that host also

    Do the same for the host. Find the router trigger you want to use for the dependency. Then you would iterate over the switch triggers adding the dependency where it doesn't exist.

    Comment

    Working...