[MMO-337] Updated supervisorctl socket path

Change-Id: I0305eb8f55ffd059cab1743b8c4f1a4824f83ae9
diff --git a/sensu/files/checks/check_vrouter.sh b/sensu/files/checks/check_vrouter.sh
index 9cb430f..540de42 100644
--- a/sensu/files/checks/check_vrouter.sh
+++ b/sensu/files/checks/check_vrouter.sh
@@ -4,7 +4,13 @@
 
 service=vrouter
 
-read -ra contrail_status <<< $(sudo supervisorctl -s unix:///tmp/supervisord_$service.sock status)
+for p in /tmp /var/run; do
+  if [ -S $p/supervisord_$service.sock ]; then
+    SUPERVISOR_SOCKET_PATH=$p/supervisord_$service.sock
+  fi
+done
+
+read -ra contrail_status <<< $(sudo supervisorctl -s unix://$SUPERVISOR_SOCKET_PATH status)
 
 check_ok=0
 state=RUNNING