Ignore handlebars-v2.0.0.js rather than the old handlebars-v1.3.0.js
[mkws-moved-to-github.git] / tools / bin / nagios-service-proxy.sh
index 9d58a31..0de766d 100755 (executable)
@@ -4,15 +4,16 @@
 # nagios test if the the service proxy is up and running
 
 set -e
-: ${mkws_host="http://mkws.indexdata.com/service-proxy/"}
+: ${mkws_host="http://sp-mkws.indexdata.com/service-proxy/"}
 : ${mkws_username="mkws"}
 : ${mkws_password="mkws"}
+: ${user_agent="nagios service-proxy v0.9"}
 
 tempfile=$(mktemp)
 exit=0
 
 url="$mkws_host?command=auth&action=login&username=$mkws_username&password=$mkws_password"
-if curl -sSf "$url" > $tempfile; then
+if curl -sSf -A "$user_agent" "$url" > $tempfile; then
     if ! egrep -q '<status>OK</status>' $tempfile; then
        echo "status not OK"
        exit=1