*
* @param monitor the Monitor
* @return the monitored URL for this service if UrlCheck is used, or null if not
*/
public static String getUrlFromMonitor(ActiveMethodMonitor monitor) {
Check check = monitor.getActiveMonitor();
if (check instanceof UrlCheck) {
try {
return ((UrlCheck)check).getUrlProvider().get();
} catch (Exception e) {
return e.getMessage();