patch - config warning involving contactgroup

Bryan Loniewski brylon at jla.rutgers.edu
Mon Mar 14 21:35:18 CET 2005


Since contact groups are no longer defined in hostgroup(s)... but host(s)


diff -aruN nagios-cvs/base/config.c nagios-cvs.HACK/base/config.c
--- nagios-cvs/base/config.c	2005-01-10 23:53:06.000000000 -0500
+++ nagios-cvs.HACK/base/config.c	2005-03-14 15:25:50.398591433 -0500
@@ -2277,7 +2277,7 @@

  		/* we couldn't find a hostgroup or service */
  		if(found==FALSE){
-			snprintf(temp_buffer,sizeof(temp_buffer),"Warning: Contact group '%s' is not used in any hostgroup/service definitions or host/hostgroup/service
escalations!",temp_contactgroup->group_name);
+			snprintf(temp_buffer,sizeof(temp_buffer),"Warning: Contact group '%s' is not used in any host/service definitions or host/service
escalations!",temp_contactgroup->group_name);
  			temp_buffer[sizeof(temp_buffer)-1]='\x0';
  			write_to_logs_and_console(temp_buffer,NSLOG_VERIFICATION_WARNING,TRUE);
  			warnings++;


_________________________
Bryan Loniewski
Rutgers University
NBCS - Systems Programmer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click




More information about the Developers mailing list