Page 1 of 1

[Nagios-devel] preflight check services to count services not hosts

Posted: Mon Feb 02, 2009 10:39 am
by Guest
This is a multi-part message in MIME format.
--------------020606060103050008030103
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

it looks like the preflight checks for services was counting hosts
instead of services. diff attached.

--------------020606060103050008030103
Content-Type: text/x-patch;
name="config.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="config.patch"

--- base/config.c 2008-12-15 12:06:28.000000000 +0200
+++ /tmp/config.c 2009-02-01 13:20:43.000000000 +0200
@@ -1744,7 +1744,7 @@
/*****************************************/
if(verify_config==TRUE)
printf("Checking services...\n");
- if(get_host_count()==0){
+ if(get_service_count()==0){
logit(NSLOG_VERIFICATION_ERROR,TRUE,"Error: There are no services defined!");
errors++;
}

--------------020606060103050008030103--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]