Ad Widget

Collapse

External Scripts in Zabbix 2.0.0RC1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #1

    External Scripts in Zabbix 2.0.0RC1

    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
    Last edited by harmonica; 11-05-2012, 09:01.
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2
    I

    I've found the solution.

    Regards
    Last edited by harmonica; 11-05-2012, 08:59.

    Comment

    Working...