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?
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?