I,
I've been testing the new version of Zabbix 2.0.0RC1 with external scripts for AS400 (based on the nagios plugin), but without success so far.
In Zabbix 1.8.10 i use the following key in item:
check_as400_CPU.sh[{IPADDRESS} {$USER} {$PASSWORD}]
And the contents oh the script:
*********************
#!/bin/sh
classpath=`dirname $0`
result=`java -Dfile.encoding="ISO8859-1" -cp $classpath check_as400_pt -H $2 -u $3 -p $4 -v CPU -w 100 -c 100`
result=${result#*\(}
result=${result%%\%\)*}
echo $result
*********************
Parameters:
-H $2 => {IPADDRESS}
-u $3 => {$USER}
-p $4 => {$PASSWORD}
I'm following the directions in Zabbix 2.0 manual, but still did not understand the new changes.
Can anyone help fix the key?
Regards
I've been testing the new version of Zabbix 2.0.0RC1 with external scripts for AS400 (based on the nagios plugin), but without success so far.
In Zabbix 1.8.10 i use the following key in item:
check_as400_CPU.sh[{IPADDRESS} {$USER} {$PASSWORD}]
And the contents oh the script:
*********************
#!/bin/sh
classpath=`dirname $0`
result=`java -Dfile.encoding="ISO8859-1" -cp $classpath check_as400_pt -H $2 -u $3 -p $4 -v CPU -w 100 -c 100`
result=${result#*\(}
result=${result%%\%\)*}
echo $result
*********************
Parameters:
-H $2 => {IPADDRESS}
-u $3 => {$USER}
-p $4 => {$PASSWORD}
I'm following the directions in Zabbix 2.0 manual, but still did not understand the new changes.
Can anyone help fix the key?
Regards
Comment