#!/bin/bash

. $QCG_APPMON_SCRIPTS_DIR/utils/monitor-preamble.sh
. $QCG_APPMON_SCRIPTS_DIR/utils/monitor-utils.sh
. $QCG_APPMON_SCRIPTS_DIR/utils/monitor-common.sh
. $QCG_APPMON_SCRIPTS_DIR/utils/monitor-generic.sh

if [ -n "$QCG_MONITOR_USER_SCRIPT" ] && [ -f "$QCG_MONITOR_USER_SCRIPT" ]; then
	. "$QCG_MONITOR_USER_SCRIPT"
else
	qcg_monitor_generic
fi

. $QCG_APPMON_SCRIPTS_DIR/utils/monitor-encode.sh

echo "$QCG_MONITOR_MESSAGE"
