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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

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

Post by Guest »

This is a multi-part message in MIME format.
--------------080407080401010000010505
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

this was submitted a while ago to the list, doesn't seem to have been
applied.

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

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

--- base/config.c 2008-12-15 12:06:28.000000000 +0200
+++ /tmp/config.c 2009-05-14 14:10:09.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++;
}

--------------080407080401010000010505--





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