From 6b891545ced74ddb7e419fe1d13c0118cc13c316 Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Wed, 16 Apr 2003 15:31:08 +0000 Subject: old behavior - no stream check unless -u git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@494 f882894a-f735-0410-b71e-b25c423dba1c diff --git a/plugins/check_real.c b/plugins/check_real.c index ef3581b..0bfa446 100644 --- a/plugins/check_real.c +++ b/plugins/check_real.c @@ -63,7 +63,7 @@ void print_usage (void); int server_port = PORT; char *server_address = ""; char *host_name = ""; -char *server_url = "/"; +char *server_url = NULL; char *server_expect = EXPECT; int warning_time = 0; int check_warning_time = FALSE; @@ -162,7 +162,7 @@ main (int argc, char **argv) } /* Part II - Check stream exists and is ok */ - if (result == STATE_OK) { + if ((result == STATE_OK)&& (server_url != NULL) ) { /* Part I - Server Check */ -- cgit v0.10-9-g596f