Actions
Support #238
closedThe nagios check 'gcube search' goes often in critical state
Start date:
Jun 08, 2015
Due date:
% Done:
100%
Estimated time:
Infrastructure:
Production
Description
The "Gcube search" nagios check on portal.i-marine.d4science.org is often in critical state. The script source code is:
FILE_TMP=/tmp/xml-aquamaps
# wget http://$1/images/report/xml -O $FILE_TMP > /dev/null 2>&1 # service.d4science.org
"http://portal.i-marine.d4science.org/aslHttpInformationRetrieval/GenericSearch?responseType=xml&searchTerms="tuna"&allFields=false&count=1” -O $FILE_TMP > /dev/null 2>&1
nimages=`xmllint --xpath '//speciesCount/text()' $FILE_TMP`
rm $FILE_TMP
if [ "$nimages" -gt "0" ]
then
echo "Images cached : $nimages"
exit $STATE_OK
else
echo "0 Images cached!"
exit $STATE_CRITICAL
fi
There was a proposal to dismiss the discovery service, but it still active. If the service cannot be dismissed, a fix is needed.
Files
Actions