Ad Widget

Collapse

pass hostname to alertscript for traceroute report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lkthomas
    Junior Member
    • Oct 2012
    • 4

    #1

    pass hostname to alertscript for traceroute report

    I am trying to get the hostname pass into my alertscript, which will eventually become traceroute report generator when ICMP ping loss.

    On media type, I defined a new media type as script, and insert "Script Parameter": "{HOST.HOST1}"


    then on alertscript:

    #!/bin/bash
    echo $1 > /tmp/test.log



    the test.log showing exactly {HOST.HOST1}, how should I pass the ICMP loss hostname to script correct?
Working...