Ad Widget

Collapse

Remote Action using SSH for Network Devices Questions ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patrickdenis
    Junior Member
    • May 2020
    • 18

    #1

    Remote Action using SSH for Network Devices Questions ?

    Hi everyone,

    I'm trying to send a command through ssh , so far so good i understand how to send the command,

    what iam trying to do :
    When i receive a trigger event of an interface that goes down often i want to send 2 ssh command, but i need to call the interface of the network devices that was triggered and this is i don't know where to start ? or if it is even possible.
    I can send a general ssh command it is working but have no clue how to call the interface that was triggered.

    What im trying to send :

    test cable-diagnostics tdr interface "the interface name"
    delay of like 10 sec
    show cable-diagnostics tdr interface "the interface name"

    Best regards,

    Patrick Denis
  • Mike2K
    Member
    • Oct 2018
    • 62

    #2
    Look at the macro's table:


    That is the 4.4 manual, please check if the macro is available for your version.
    You should probably use the macro ITEM.NAME of some form of that...

    The 10 second delay is not possible since zabbix has a minimum delay of 60seconds.

    Comment


    • patrickdenis
      patrickdenis commented
      Editing a comment
      Thank you , will do.
  • patrickdenis
    Junior Member
    • May 2020
    • 18

    #3
    So i was able to send the remote command and i can see that it was delivered, my next step in step 3 as an example would be to send an email but do i need to create a custom message with macro to send the output from the command send through ssh or it is going to generate them automatically as a log ?

    Comment

    Working...