Is anyone successfully using scripts accessed from a right-click of the host column in the Top 20? Even the most rudimentary script fails:
Ping /bin/ping -t {HOST.CONN}
JAVA-ssh is completely out of the question. I also cannot figure out what vars or macros Zabbix is returning here. I can get $0, the script name (whoo-hoo), but $1, $2, {HOST.CONN}, {HOST.DNS}, {IPADDRESS} all return nada from this test script:
#!/bin/sh
echo meh
echo "0. "$0
echo "1. "$1
echo "2. "$2
echo {HOST.CONN}
echo {HOST.DNS}
/bin/ping -c3 {IPADDRESS}
exit 0
Results:
meh
0. /opt/zabbix/bin/sshtest
1.
2.
{HOST.CONN}
{HOST.DNS}
Some insight into this would be greatly appreciated!
Ping /bin/ping -t {HOST.CONN}
JAVA-ssh is completely out of the question. I also cannot figure out what vars or macros Zabbix is returning here. I can get $0, the script name (whoo-hoo), but $1, $2, {HOST.CONN}, {HOST.DNS}, {IPADDRESS} all return nada from this test script:
#!/bin/sh
echo meh
echo "0. "$0
echo "1. "$1
echo "2. "$2
echo {HOST.CONN}
echo {HOST.DNS}
/bin/ping -c3 {IPADDRESS}
exit 0
Results:
meh
0. /opt/zabbix/bin/sshtest
1.
2.
{HOST.CONN}
{HOST.DNS}
Some insight into this would be greatly appreciated!
Comment