diff options
author | vv770d <vv770d@att.com> | 2017-03-15 19:31:34 -0400 |
---|---|---|
committer | Venkatesh Kumar, Vijay (vv770d) <vv770d@att.com> | 2017-04-14 17:13:59 -0400 |
commit | 369563e28b80aaa48ea5ea7c9b567bc204d84196 (patch) | |
tree | 77e5d72abd1354ef5ed36d7a5c60ad91313c1eab /src/main/scripts/VESrestfulCollector_Status.sh | |
parent | 0205f9029e2f56f58a3fcfbc8b9151731a5ce773 (diff) |
[DCAE-14] VES collector rebasing updates for 1.1.0
Change-Id: Iac6a52fcb644028420ffd607c46fd5bc9c65bf8c
Signed-off-by: Venkatesh Kumar, Vijay (vv770d) <vv770d@att.com>
Diffstat (limited to 'src/main/scripts/VESrestfulCollector_Status.sh')
-rw-r--r-- | src/main/scripts/VESrestfulCollector_Status.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/main/scripts/VESrestfulCollector_Status.sh b/src/main/scripts/VESrestfulCollector_Status.sh new file mode 100644 index 0000000..0365bc2 --- /dev/null +++ b/src/main/scripts/VESrestfulCollector_Status.sh @@ -0,0 +1,41 @@ +### +# ============LICENSE_START======================================================= +# PROJECT +# ================================================================================ +# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +### + +#!/bin/sh + +#secPid=`pgrep -f com.att.dcae.commonFunction.CommonStartup` --> master +secPid=`pgrep -f org.openecomp.dcae.commonFunction.CommonStartup` + + +if [ "${secPid}" ] +then + #errorcnt = `grep -c "CambriaSimplerBatchPublisher - Send failed" ../logs/collector.log` + errorcnt=`tail -1000 ../logs/collector.log | grep -c "CambriaSimplerBatchPublisher - Send failed"` + + if [ $errorcnt -gt 10 ] + then + echo "VESCollecter_Is_HavingError to publish" + else + echo "VESCollecter_Is_Running as PID $secPid" + fi +else + echo "VESCollecter_Is_Not_Running" +fi +exit |