Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use same SSM bucket as other applications #604

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@
# instance where backups are not being run.
#

# When the agent runs on engineering hosts the open file limit is set by the root user at boot time
# (unless agent is restarted manually), so the process limit may be less than that specified in .bash_profile.
# Check if this is the case and override the process limit if required to prevent an error being thrown.
PROC_HARD_LIMIT=$(ulimit -Hn)
PROFILE_PROC_LIMIT=$(grep -E "ulimit.*-u.*-n" ~/.bash_profile | sed -r 's/.*-n ([[:digit:]]+).*/\1/')
. ~/.bash_profile

if [[ ${PROFILE_PROC_LIMIT} -gt ${PROC_HARD_LIMIT} ]];
then
source <(sed -r "s/ulimit -u ([[:digit:]]+) -n ([[:digit:]]+)/ulimit -u \1 -n ${PROC_HARD_LIMIT}/" ~/.bash_profile)
else
. ~/.bash_profile
# If run on an instance hosting OEM we need to explicitly set up the database environment
if srvctl config database -d EMREP > /dev/null; then
export ORAENV_ASK=NO
export ORACLE_SID=EMREP
. oraenv >/dev/null
fi

# Check if Archivelog Deletion Policy requires a backup
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<TargetCollectionExt EXT_NAME="ME$ASM_DISKGROUP_USED" EXT_VERSION="1" TARGET_TYPE="host"><CollectionItem NAME="ME$ASM_DISKGROUP_USED" UPLOAD="YES">
<Schedule>
<IntervalSchedule INTERVAL="30" TIME_UNIT="Min"/>
</Schedule>
<MetricColl NAME="ME$ASM_DISKGROUP_USED">
</MetricColl>
</CollectionItem>
</TargetCollectionExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<MetricExtensionArchive name="MEAME$ASM_DISKGROUP_USED">
<MetricExtension name="ME$ASM_DISKGROUP_USED" type="host" version="1" is_repos="FALSE" display_name="ASM_DISKGROUP_USED" description="ASM Disk Group Used (Persists Across ASM Patching)" version_comment=" " metadata_digest="354d2c726ee43399fefec3833d67ff8b" coll_digest="9a817b43224e91054c309a90d2361f92" attach_digest="e053f322d8236ce47615f6acc46340a3">
<scripts name="asm_diskgroup_usage.sh">
</scripts>
</MetricExtension>
</MetricExtensionArchive>
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<TargetMetadataExt EXT_NAME="ME$ASM_DISKGROUP_USED" EXT_VERSION="1" TARGET_TYPE="host"><Metric NAME="ME$ASM_DISKGROUP_USED" TYPE="TABLE">
<Display>
<Label NLSID="NLS_METRIC_hostME$ASM_DISKGROUP_USED">ASM_DISKGROUP_USED</Label>
<Description NLSID="NLS_DESCRIPTION_hostME$ASM_DISKGROUP_USED">ASM Disk Group Used (Persists Across ASM Patching)</Description>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="DISKGROUP" TYPE="STRING" IS_KEY="TRUE">
<Display>
<Label NLSID="NLS_COLUMN_hostME$ASM_DISKGROUP_USEDDISKGROUP">Disk Group</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="TOTAL_GB" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$ASM_DISKGROUP_USEDTOTAL_GB">Total Disk Space</Label>
<Unit NLSID="EM_SYS_STANDARD_DATASIZE_GB">GB</Unit>
<UnitCategory>DATA_SIZE</UnitCategory>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Capacity">
</CategoryValue>
</ColumnDescriptor>
<ColumnDescriptor NAME="FREE_GB" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$ASM_DISKGROUP_USEDFREE_GB">Free Disk Space</Label>
<Unit NLSID="EM_SYS_STANDARD_DATASIZE_GB">GB</Unit>
<UnitCategory>DATA_SIZE</UnitCategory>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Capacity">
</CategoryValue>
</ColumnDescriptor>
<ColumnDescriptor NAME="USED_GB" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$ASM_DISKGROUP_USEDUSED_GB">Used Disk Space</Label>
<Unit NLSID="EM_SYS_STANDARD_DATASIZE_GB">GB</Unit>
<UnitCategory>DATA_SIZE</UnitCategory>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Capacity">
</CategoryValue>
</ColumnDescriptor>
<ColumnDescriptor NAME="USED_PCT" TYPE="NUMBER" COMPUTE_EXPR="__round((USED_GB/TOTAL_GB)*100,1)">
<Display>
<Label NLSID="NLS_COLUMN_hostME$ASM_DISKGROUP_USEDUSED_PCT">Percentage Used</Label>
<Unit NLSID="EM_SYS_STANDARD_PERCENT_PERCENT">PERCENTAGE</Unit>
<UnitCategory>PERCENTAGE</UnitCategory>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Capacity">
</CategoryValue>
</ColumnDescriptor>
</TableDescriptor>
<QueryDescriptor FETCHLET_ID="OSLineToken">
<Property NAME="command" SCOPE="GLOBAL">/bin/bash</Property>
<Property NAME="script" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%/asm_diskgroup_usage.sh</Property>
<Property NAME="scriptLoc" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%</Property>
<Property NAME="delimiter" SCOPE="GLOBAL" OPTIONAL="TRUE">|</Property>
<Property NAME="ENVEM_TARGET_NAME" SCOPE="INSTANCE" OPTIONAL="TRUE">NAME</Property>
<CredentialRef NAME="OSCreds"></CredentialRef>
</QueryDescriptor>
</Metric>
</TargetMetadataExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

. ~/.bash_profile

sqlplus -S / as sysdba <<EOSQL
set heading off
set echo off
set feedback off
set pages 0
set lines 128
select name||'|'||round(total_mb/1024)||'|'||round(free_mb/1024)||'|'||round((total_mb-free_mb)/1024)
from v\$asm_diskgroup;
exit
EOSQL
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<TargetCollectionExt EXT_NAME="ME$BACKUP_FROM_STANDBY" EXT_VERSION="3" TARGET_TYPE="host"><CollectionItem NAME="ME$BACKUP_FROM_STANDBY" UPLOAD="YES">
<Schedule START_TIME="13:00:00">
<WeekSchedule DAY_OF_WEEK="MON,TUE,WED,THU,FRI"/>
</Schedule>
<MetricColl NAME="ME$BACKUP_FROM_STANDBY">
<Condition COLUMN_NAME="RMAN_STATUS" CRITICAL="0" OPERATOR="GT" OCCURRENCES="1" MESSAGE="The RMAN Backup command finished with a non-zero status." CLEAR_MESSAGE="RMAN Backup completed successfully."/>
<Condition COLUMN_NAME="ORA_COUNT" CRITICAL="0" OPERATOR="GT" OCCURRENCES="1" MESSAGE="Incidence of %value% ORA- error messages have been found in RMAN output." CLEAR_MESSAGE="No ORA- error messages have been found in RMAN output."/>
<Condition COLUMN_NAME="ERROR_COUNT" CRITICAL="0" OPERATOR="GT" OCCURRENCES="1" MESSAGE="The ERROR word has been seen %value% times in the RMAN output." CLEAR_MESSAGE="No ERROR reported in RMAN output."/>
</MetricColl>
</CollectionItem>
</TargetCollectionExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<MetricExtensionArchive name="MEAME$BACKUP_FROM_STANDBY">
<MetricExtension name="ME$BACKUP_FROM_STANDBY" type="host" version="3" is_repos="FALSE" display_name="Backup from Standby" description="Run a trial no-op backup from standby database to check it works" version_comment=" " metadata_digest="c09787ff481bc7433fe0ab9c1c691c79" coll_digest="65dbaa1e794c93b1dc624f8d673446a5" attach_digest="05eb313680f261fc20c458b975f55780">
<scripts name="backup_from_standby.sh">
</scripts>
</MetricExtension>
</MetricExtensionArchive>
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<TargetMetadataExt EXT_NAME="ME$BACKUP_FROM_STANDBY" EXT_VERSION="3" TARGET_TYPE="host"><Metric NAME="ME$BACKUP_FROM_STANDBY" TYPE="TABLE">
<Display>
<Label NLSID="NLS_METRIC_hostME$BACKUP_FROM_STANDBY">Backup from Standby</Label>
<Description NLSID="NLS_DESCRIPTION_hostME$BACKUP_FROM_STANDBY">Run a trial no-op backup from standby database to check it works</Description>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="RMAN_STATUS" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BACKUP_FROM_STANDBYRMAN_STATUS">RMAN Status</Label>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Response">
</CategoryValue>
</ColumnDescriptor>
<ColumnDescriptor NAME="ORA_COUNT" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BACKUP_FROM_STANDBYORA_COUNT">ORA Error Count</Label>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Response">
</CategoryValue>
</ColumnDescriptor>
<ColumnDescriptor NAME="ERROR_COUNT" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BACKUP_FROM_STANDBYERROR_COUNT">Error Count</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="ORA_MESSAGE" TYPE="STRING">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BACKUP_FROM_STANDBYORA_MESSAGE">ORA Message</Label>
</Display>
<CategoryValue CLASS="Default" CATEGORY_NAME="Response">
</CategoryValue>
</ColumnDescriptor>
<ColumnDescriptor NAME="ERROR_MESSAGE" TYPE="STRING">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BACKUP_FROM_STANDBYERROR_MESSAGE">Error Message</Label>
</Display>
</ColumnDescriptor>
</TableDescriptor>
<QueryDescriptor FETCHLET_ID="OSLineToken">
<Property NAME="command" SCOPE="GLOBAL">/bin/bash</Property>
<Property NAME="script" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%/backup_from_standby.sh</Property>
<Property NAME="scriptLoc" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%</Property>
<Property NAME="delimiter" SCOPE="GLOBAL" OPTIONAL="TRUE">|</Property>
<Property NAME="ENVEM_TARGET_NAME" SCOPE="INSTANCE" OPTIONAL="TRUE">NAME</Property>
<CredentialRef NAME="OSCreds"></CredentialRef>
</QueryDescriptor>
</Metric>
</TargetMetadataExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

. ~/.bash_profile

# Determine which catalog we are using by pinging both possible options. Only 1 will resolve.
# Set the TRANSPORT_CONNECT_TIMEOUT to 3 seconds so we do not waste time trying to connect to
# the wrong catalog.
export TNS_DCAT="(DESCRIPTION=(TRANSPORT_CONNECT_TIMEOUT=3000ms)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rman-db-1.engineering-dev.probation.hmpps.dsd.io)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DCAT)))"
export TNS_PCAT="(DESCRIPTION=(TRANSPORT_CONNECT_TIMEOUT=3000ms)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rman-db-1.engineering-prod)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=PCAT)))"

tnsping ${TNS_PCAT} >/dev/null
if [[ $? == 0 ]]; then
CATALOG=${TNS_PCAT}
else
tnsping ${TNS_DCAT} >/dev/null
if [[ $? == 0 ]]; then
CATALOG=${TNS_DCAT}
else
echo "unable to connect to either catalog."
exit 1
fi
fi

RMANPWD=$(. /etc/environment && aws ssm get-parameters --region ${REGION} --with-decryption --name /${HMPPS_ENVIRONMENT}/${APPLICATION}/oracle-db-operation/rman/rman_password | jq -r '.Parameters[].Value' )

# For test purposes we will backup the smallest file in the database. We are not looking to create an actual backup;
# simply verify that a backup can be successfully run.
SMALLEST_FILE=$(echo -e "report schema;" | rman target / | grep DATAFILE | sort -n -k2 | head -1 | cut -d' ' -f 1)

BACKUP_TEST=$(
cat <<EORMAN | rman target /
connect catalog rman19c/${RMANPWD}@${CATALOG}
run {
allocate channel c1 device type sbt
parms='SBT_LIBRARY=${ORACLE_HOME}/lib/libosbws.so,
ENV=(OSB_WS_PFILE=${ORACLE_HOME}/dbs/osbws.ora)';
backup validate datafile ${SMALLEST_FILE};
release channel c1;
}
exit
EORMAN
)
RC=$?
ORA_COUNT=$(echo "${BACKUP_TEST}" | grep -c ORA-)
ERR_COUNT=$(echo "${BACKUP_TEST}" | grep -ci ERROR)
ORA_MESSAGE=$(echo "${BACKUP_TEST}" | grep ORA- | xargs)
ERR_MESSAGE=$(echo "${BACKUP_TEST}" | grep -i ERROR | xargs)

echo "$RC|${ORA_COUNT}|${ERR_COUNT}|${ORA_MESSAGE}|${ERR_MESSAGE}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<TargetCollectionExt EXT_NAME="ME$BLACKOUT_AGE" EXT_VERSION="2" TARGET_TYPE="host"><CollectionItem NAME="ME$BLACKOUT_AGE" UPLOAD="YES">
<Schedule>
<IntervalSchedule INTERVAL="12" TIME_UNIT="Hr"/>
</Schedule>
<MetricColl NAME="ME$BLACKOUT_AGE">
<Condition COLUMN_NAME="Blackout_Age" CRITICAL="2.5" WARNING="1.5" OPERATOR="GT" OCCURRENCES="1" MESSAGE="The value of %columnName% for %keyValue% is %value%" MESSAGE_NLSID="EMAGENT_DEFAULT_MESSAGE_WITH_KEY" CLEAR_MESSAGE="Alert for %columnName% for %keyValue% is cleared" CLEAR_MESSAGE_NLSID="EMAGENT_DEFAULT_NO_ROW_CLEAR_MESSAGE_WITH_KEY"/>
</MetricColl>
</CollectionItem>
</TargetCollectionExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<MetricExtensionArchive name="MEAME$BLACKOUT_AGE">
<MetricExtension name="ME$BLACKOUT_AGE" type="host" version="2" is_repos="FALSE" display_name="Blackout Age" description="Report Age of Oldest Blackout on Host in Days" version_comment=" " metadata_digest="11f05e9ba0c8bb37fe76c05876e61990" coll_digest="fa20e07c1ebd1986c4c3199115c49708" attach_digest="5f8d79416a86a79e8d651cba907b79b7">
<scripts name="blackout_age.sh">
</scripts>
</MetricExtension>
</MetricExtensionArchive>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<TargetMetadataExt EXT_NAME="ME$BLACKOUT_AGE" EXT_VERSION="2" TARGET_TYPE="host"><Metric NAME="ME$BLACKOUT_AGE" TYPE="TABLE">
<Display>
<Label NLSID="NLS_METRIC_hostME$BLACKOUT_AGE">Blackout Age</Label>
<Description NLSID="NLS_DESCRIPTION_hostME$BLACKOUT_AGE">Report Age of Oldest Blackout on Host in Days</Description>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="Host_Blackout" TYPE="STRING" IS_KEY="TRUE">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLACKOUT_AGEHost_Blackout">Host and Blackout Name</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Hostname" TYPE="STRING">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLACKOUT_AGEHostname">Hostname</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Blackout_Name" TYPE="STRING">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLACKOUT_AGEBlackout_Name">Blackout Name</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Start_Date" TYPE="STRING">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLACKOUT_AGEStart_Date">Start Date</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Blackout_Age" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLACKOUT_AGEBlackout_Age">Blackout Age</Label>
<Unit NLSID="mext_unit_nlsid_DAYS">DAYS</Unit>
<UnitCategory>TIME</UnitCategory>
</Display>
</ColumnDescriptor>
</TableDescriptor>
<QueryDescriptor FETCHLET_ID="OSLineToken">
<Property NAME="command" SCOPE="GLOBAL">/bin/bash</Property>
<Property NAME="script" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%/blackout_age.sh</Property>
<Property NAME="scriptLoc" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%</Property>
<Property NAME="delimiter" SCOPE="GLOBAL" OPTIONAL="TRUE">|</Property>
<Property NAME="ENVEM_TARGET_NAME" SCOPE="INSTANCE" OPTIONAL="TRUE">NAME</Property>
<CredentialRef NAME="OSCreds"></CredentialRef>
</QueryDescriptor>
</Metric>
</TargetMetadataExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
#
# We cannot check the Blackout Age from the host itself as, if it IS in a Blackout, it cannot then report the fact.
# Therefore this script can only run on the OMS.
#
# We explicitly exclude any host with the name sandpit on the assumption that this is regularly blacked out.
#

. ~/.bash_profile

EMCLI=/u01/app/oracle/oem/middleware/bin/emcli

SYSMAN_PASSWORD=$( . /etc/environment && aws ssm get-parameters --region ${REGION} --with-decryption --name /${HMPPS_ENVIRONMENT}/${APPLICATION}/oem-database/db/oradb_sysman_password | jq -r '.Parameters[].Value' )

$EMCLI login -username=sysman -password=${SYSMAN_PASSWORD} -force 1>/dev/null
$EMCLI sync 1>/dev/null
for HOST in $( $EMCLI get_targets -targets="host" -format="name:script" -noheader | grep -v sandpit | awk '{print $NF}' );
do
$EMCLI get_blackouts -hostnames="$HOST" -noheader -format="name:csv" | grep Started | while read BLACKOUT
do
NAME=$(echo $BLACKOUT | awk -F, '{print $1}')
STARTDATE=$(echo $BLACKOUT | awk -F, '{print $5}')
AGE=$(echo "scale=2; ($(date +%s) - $(date --date="$STARTDATE" +%s)) / (60*60*24)" | bc)
echo "${HOST}_$NAME|$HOST|$NAME|$STARTDATE|$AGE"
done
done
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<TargetCollectionExt EXT_NAME="ME$BLOCKED_SESSIONS_COUNT" EXT_VERSION="7" TARGET_TYPE="host"><CollectionItem NAME="ME$BLOCKED_SESSIONS_COUNT" UPLOAD="YES">
<Schedule>
<IntervalSchedule INTERVAL="15" TIME_UNIT="Min"/>
</Schedule>
<MetricColl NAME="ME$BLOCKED_SESSIONS_COUNT">
<Condition COLUMN_NAME="Blocked_Sessions" CRITICAL="0" OPERATOR="GT" OCCURRENCES="2" MESSAGE="Blocking Session Count for SID: %Session_Identifier% Serial#: %Session_Number% is %value%" CLEAR_MESSAGE="Alert for Blocking Session Count for SID: %Session_Identifier% Serial#: %Session_Number% is cleared"/>
</MetricColl>
</CollectionItem>
</TargetCollectionExt>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<MetricExtensionArchive name="MEAME$BLOCKED_SESSIONS_COUNT">
<MetricExtension name="ME$BLOCKED_SESSIONS_COUNT" type="host" version="7" is_repos="FALSE" display_name="Blocked Sessions Count" description="Count of blocked sessions" version_comment=" " metadata_digest="94e56ac4db19ade2ad2990afc3a4f654" coll_digest="df8f066512122be94689da77a5f3383e" attach_digest="0e60d247e8abbc7473710e5be498d454">
<scripts name="blocked_sessions_count.sh">
</scripts>
</MetricExtension>
</MetricExtensionArchive>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<TargetMetadataExt EXT_NAME="ME$BLOCKED_SESSIONS_COUNT" EXT_VERSION="7" TARGET_TYPE="host"><Metric NAME="ME$BLOCKED_SESSIONS_COUNT" TYPE="TABLE">
<Display>
<Label NLSID="NLS_METRIC_hostME$BLOCKED_SESSIONS_COUNT">Blocked Sessions Count</Label>
<Description NLSID="NLS_DESCRIPTION_hostME$BLOCKED_SESSIONS_COUNT">Count of blocked sessions</Description>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="Session_Identifier" TYPE="NUMBER" IS_KEY="TRUE">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLOCKED_SESSIONS_COUNTSession_Identifier">Session Identifier</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Session_Number" TYPE="NUMBER" IS_KEY="TRUE">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLOCKED_SESSIONS_COUNTSession_Number">Session Number</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Blocked_Sessions" TYPE="NUMBER">
<Display>
<Label NLSID="NLS_COLUMN_hostME$BLOCKED_SESSIONS_COUNTBlocked_Sessions">Blocked Sessions</Label>
</Display>
</ColumnDescriptor>
</TableDescriptor>
<QueryDescriptor FETCHLET_ID="OSLineToken">
<Property NAME="command" SCOPE="GLOBAL">/bin/bash</Property>
<Property NAME="script" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%/blocked_sessions_count.sh</Property>
<Property NAME="scriptLoc" SCOPE="GLOBAL" OPTIONAL="TRUE">%scriptsDir%</Property>
<Property NAME="delimiter" SCOPE="GLOBAL" OPTIONAL="TRUE">|</Property>
<Property NAME="ENVEM_TARGET_NAME" SCOPE="INSTANCE" OPTIONAL="TRUE">NAME</Property>
<CredentialRef NAME="OSCreds"></CredentialRef>
</QueryDescriptor>
</Metric>
</TargetMetadataExt>
Loading
Loading