HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: //var/opt/OV/bin/instrumentation/check-vcs-group.sh
#!/bin/bash
# Verifica el estado de Grupo de VCS 
# Preparado por: Grupo monitoreo Level 3
# Fecha: 24/07/2015 
# Parametros:
#	1 = nombre del grupo de VCS
#	2 = nombre del monitor

group=$1
monname=$2

status=`/opt/VRTS/bin/hagrp -state | grep $group | grep ONLINE |wc -l`

if [ $status -eq 1 ]
then
	/opt/OV/bin/opcmon $monname=0 -object $group 
else
	/opt/OV/bin/opcmon $monname=1 -object $group
fi
exit 0