[Nagiosplug-checkins] CVS: nagiosplug/plugins negate.c,1.8,1.9

Ton Voon tonvoon at users.sourceforge.net
Wed May 14 16:18:06 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv22087

Modified Files:
	negate.c 
Log Message:
Added examples


Index: negate.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/negate.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** negate.c	13 Mar 2003 06:00:21 -0000	1.8
--- negate.c	14 May 2003 23:17:16 -0000	1.9
***************
*** 39,42 ****
--- 39,48 ----
       [keep this less than the plugin timeout to retain CRITICAL status]\n"
  
+ #define EXAMPLES "\
+   negate \"/usr/local/nagios/libexec/check_ping -H host\"\n\
+     Run check_ping and invert result. Must use full path to plugin\n\
+   negate \"/usr/local/nagios/libexec/check_procs -a 'vi negate.c'\"\n\
+     Use single quotes if you need to retain spaces\n"
+ 
  #define DESCRIPTION "\
  This plugin is a wrapper to take the output of another plugin and invert it.\n\
***************
*** 181,186 ****
  	print_usage ();
  	printf
! 		("\nOptions:\n" LONGOPTIONS "\n" DESCRIPTION "\n", 
! 		 DEFAULT_TIMEOUT);
  	support ();
  }
--- 187,192 ----
  	print_usage ();
  	printf
! 		("\nOptions:\n" LONGOPTIONS "\n" "Examples:\n" EXAMPLES "\n"
! 		 DESCRIPTION "\n", DEFAULT_TIMEOUT);
  	support ();
  }





More information about the Commits mailing list