Project

General

Profile

Actions

Support #238

closed

The nagios check 'gcube search' goes often in critical state

Added by Andrea Dell'Amico almost 10 years ago. Updated almost 10 years ago.

Status:
Rejected
Priority:
Normal
Category:
System Application
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

check_search.sh (571 Bytes) check_search.sh nagios check for search on i-marine Andrea Dell'Amico, Jun 10, 2015 12:58 PM
check_images.sh (433 Bytes) check_images.sh nagios check on service.d4science.org Andrea Dell'Amico, Jun 10, 2015 12:58 PM
gcube_search_trends.png (8.55 KB) gcube_search_trends.png nagios trends of the last 30 days Andrea Dell'Amico, Jun 10, 2015 04:06 PM
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)