|
@@ -8,7 +8,7 @@
|
|
#
|
|
#
|
|
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
|
|
-MOSHELVERSION="2.1.5"
|
|
|
|
|
|
+MOSHELVERSION="2.1.6"
|
|
|
|
|
|
#---------------------------------------------------------
|
|
#---------------------------------------------------------
|
|
# init library and files
|
|
# init library and files
|
|
@@ -66,8 +66,9 @@ TextsAndGraphs () { # print alert and status graph snippets
|
|
echo "$MYNAME : $Name ? Check failed - ${WEBURL}/data/index.html?$MYNAME/$Name.short <br>" >> /tmp/tmp.$$.moshel_alert.tmp
|
|
echo "$MYNAME : $Name ? Check failed - ${WEBURL}/data/index.html?$MYNAME/$Name.short <br>" >> /tmp/tmp.$$.moshel_alert.tmp
|
|
echo "<li> <font color=\"#${HTMLALERT}\"><b>Check failed</b>: <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.short\">$Name</a> <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.long\">[l]</a> ${Message}</font>" >> /tmp/tmp.$$.moshel_collected.tmp
|
|
echo "<li> <font color=\"#${HTMLALERT}\"><b>Check failed</b>: <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.short\">$Name</a> <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.long\">[l]</a> ${Message}</font>" >> /tmp/tmp.$$.moshel_collected.tmp
|
|
elif [ "${Alert}" -eq 1 ]; then
|
|
elif [ "${Alert}" -eq 1 ]; then
|
|
- echo "$MYNAME : $Name ! $Message - ${WEBURL}/data/index.html?$MYNAME/$Name.short <br>" >> /tmp/tmp.$$.moshel_alert.tmp
|
|
|
|
echo "<li> <font color=\"#${HTMLALERT}\"><b>ALERT</b>: <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.short\">$Name</a> <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.long\">[l]</a> $Message</font>" >> /tmp/tmp.$$.moshel_collected.tmp
|
|
echo "<li> <font color=\"#${HTMLALERT}\"><b>ALERT</b>: <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.short\">$Name</a> <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.long\">[l]</a> $Message</font>" >> /tmp/tmp.$$.moshel_collected.tmp
|
|
|
|
+ ErrorMessage=$( echo "$Message" | sed -e 's/[(0-9]* \![a-z]*\! [0-9)]* //g' )
|
|
|
|
+ echo "$MYNAME : $Name ! $ErrorMessage - ${WEBURL}/data/index.html?$MYNAME/$Name.short <br>" >> /tmp/tmp.$$.moshel_alert.tmp
|
|
else
|
|
else
|
|
echo "<li> ok: <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.short\">$Name</a> <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.long\">[l]</a> ${Message}" >> /tmp/tmp.$$.moshel_collected.tmp
|
|
echo "<li> ok: <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.short\">$Name</a> <a href=\"${WEBURL}/data/index.html?$MYNAME/$Name.long\">[l]</a> ${Message}" >> /tmp/tmp.$$.moshel_collected.tmp
|
|
fi
|
|
fi
|