[
https://issues.apache.org/jira/browse/IGNITE-5987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16119518#comment-16119518
]
Pavel Konstantinov edited comment on IGNITE-5987 at 8/9/17 7:21 AM:
--------------------------------------------------------------------
Successfully tested.
My test is:
run visorcmd as daemon to register alert and monitoring it
{code}
screen -dmS visorcmd-register-alert ./ignitevisorcmd.sh -nq
-b=register-alert.batch
{code}
register-alert.batch is
{code}
open -cpath=config/my-config.xml
alert -r -n=ALERT_NODE_DOWN -t=60 -nc=lt2 -s=./alert-node-down.sh
{code}
alert-node-down.sh has the following content
{code}
#!/bin/bash
#
TIMESTAMP=`date`
ALERT_OUTPUT_FILE=./node_down_alert.txt
VISOR_BATCH_COMMAND_FILE=./visor-cmds-node-status.batch
NODE_STATUS=`./ignitevisorcmd.sh -np -b=${VISOR_BATCH_COMMAND_FILE}`
NODE_COUNT_TRIGGER=2
echo "ALERT: node count dropped below ${NODE_COUNT_TRIGGER} at ${TIMESTAMP}" >
${ALERT_OUTPUT_FILE}
echo "CURRENT NODE STATUS:"
echo "${NODE_STATUS}" >> ${ALERT_OUTPUT_FILE}
{code}
for testing purpose visor-cmds-node-status.batch contains
{code}
open -cpath=config/tester/tester-gg-node.xml
top
{code}
was (Author: pkonstantinov):
Successfully tested.
My test is:
run visorcmd as daemon to register alert and monitoring it
{code}
screen -dmS visorcmd-register-alert ./ignitevisorcmd.sh -nq
-b=register-alert.batch
{code}
register-alert.batch is
{code}
open -cpath=config/my-config.xml
alert -r -n=ALERT_NODE_DOWN -t=60 -nc=lt2 -s=./alert-node-down.sh
{code}
> visorcmd: add possibility do not close visorcmd in batch mode
> -------------------------------------------------------------
>
> Key: IGNITE-5987
> URL: https://issues.apache.org/jira/browse/IGNITE-5987
> Project: Ignite
> Issue Type: Bug
> Components: wizards
> Reporter: Pavel Konstantinov
> Assignee: Pavel Konstantinov
> Fix For: 2.2
>
>
> That possibility will be useful for alert command which works only while
> visorcmd is active
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)