Hi All,
i'm new in this forum and sorry for my English.
I already create a script to get status for HA server and result show as i expected, the problem is zabbix grep opposite value from the output as below.
Output script:
HA group status is: 0
Node OFFLINE status is: 0
Cronsym is not running: 0
Glassfish is not running: 0
HA Running on Single_node: 0
Call service running on single node status:
UserParameter=ha.status, sh /etc/zabbix/service/HA_Stats |grep "Single_node" |awk '{print $5}'
Test Using zabbix-get
zabbix-get -sx.x.x.x -p10050 -k"ha.status"
1
Thanks.
i'm new in this forum and sorry for my English.
I already create a script to get status for HA server and result show as i expected, the problem is zabbix grep opposite value from the output as below.
Output script:
HA group status is: 0
Node OFFLINE status is: 0
Cronsym is not running: 0
Glassfish is not running: 0
HA Running on Single_node: 0
Call service running on single node status:
UserParameter=ha.status, sh /etc/zabbix/service/HA_Stats |grep "Single_node" |awk '{print $5}'
Test Using zabbix-get
zabbix-get -sx.x.x.x -p10050 -k"ha.status"
1
Thanks.