Ad Widget

Collapse

How can use ICMPING from second network interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bab
    Senior Member
    • Aug 2020
    • 176

    #1

    How can use ICMPING from second network interface

    I have a linux host with 2 interface
    eth0 = 10.20.30.40
    eth1= 192.168.20.20

    Now I have added my host with eth0 by agent t o zabbix . Now I need icmping from eth1 to destination "192.168.40.20" How can do this ? because by default i will do icmping from eth0
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    You need to configure static route on the host. Commands:

    ip route (shows the routes)

    sudo ip route add 192.168.40.20/32 via <whatever is the next-hop router in the 192.168.20.x network>

    When you get it working, use your favourite search engine to find out how to save that configuration persistently on your Linux distribution.

    Markku

    Comment

    • bab
      Senior Member
      • Aug 2020
      • 176

      #3
      Originally posted by Markku
      You need to configure static route on the host. Commands:

      ip route (shows the routes)

      sudo ip route add 192.168.40.20/32 via <whatever is the next-hop router in the 192.168.20.x network>

      When you get it working, use your favourite search engine to find out how to save that configuration persistently on your Linux distribution.

      Markku

      But I don't want changes on the OS . How can zabbix handle this issue ?

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1782

        #4
        IP routing on the host is something that Zabbix cannot do as that's the host networking stack that decides that.

        Markku

        Comment

        • bab
          Senior Member
          • Aug 2020
          • 176

          #5
          Originally posted by Markku
          IP routing on the host is something that Zabbix cannot do as that's the host networking stack that decides that.

          Markku
          But I though there is a template such as icmping that we can also define source in addition destination

          Comment

          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1782

            #6
            Originally posted by bab

            But I though there is a template such as icmping that we can also define source in addition destination
            Please do tell us if you find a Zabbix-level solution (without touching the OS). For the record, there is the documentation for icmpping item: https://www.zabbix.com/documentation.../simple_checks

            Markku

            Comment

            Working...