Ad Widget

Collapse

Best way to check Java Gateway status?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rrupp
    Junior Member
    • Jul 2012
    • 21

    #1

    Best way to check Java Gateway status?

    I'm using the Zabbix 2.0 Appliance. I wanted to add a check that makes sure the Java Gateway is running appropriately. I tried using the internal check zabbix[java,,ping] and then added a trigger for it that checks for nodata over a certain amount of time but the problem is if the Java Gateway goes down the item becomes unsupported. This check is described in the internal items for pinging the gateway - http://www.zabbix.com/documentation/...types/internal

    I'm wondering is there a better way to do this? If not I can just use an external check that runs a script that checks for the process existing i.e.

    gatewayrunning.sh -
    Code:
    if ! ps aux | grep -q [J]avaGateway
    then echo 'no'
    else echo 'yes'
    fi
    Thanks
Working...