diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-05-14 23:17:16 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-05-14 23:17:16 +0000 |
commit | 3a69b001b4176de9295112157dcbc000b4bbcf81 (patch) | |
tree | 0abb29ceb1652eac9fc194aefef841b2418eaac8 /plugins | |
parent | 2b88e43c887a4901d81848116169efea364729e1 (diff) | |
download | monitoring-plugins-3a69b001b4176de9295112157dcbc000b4bbcf81.tar.gz |
Added examples
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@514 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/negate.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/negate.c b/plugins/negate.c index c1c0bc57..d1fcb5dd 100644 --- a/plugins/negate.c +++ b/plugins/negate.c | |||
@@ -38,6 +38,12 @@ const char *progname = "negate"; | |||
38 | Terminate test if timeout limit is exceeded (default: %d)\n\ | 38 | Terminate test if timeout limit is exceeded (default: %d)\n\ |
39 | [keep this less than the plugin timeout to retain CRITICAL status]\n" | 39 | [keep this less than the plugin timeout to retain CRITICAL status]\n" |
40 | 40 | ||
41 | #define EXAMPLES "\ | ||
42 | negate \"/usr/local/nagios/libexec/check_ping -H host\"\n\ | ||
43 | Run check_ping and invert result. Must use full path to plugin\n\ | ||
44 | negate \"/usr/local/nagios/libexec/check_procs -a 'vi negate.c'\"\n\ | ||
45 | Use single quotes if you need to retain spaces\n" | ||
46 | |||
41 | #define DESCRIPTION "\ | 47 | #define DESCRIPTION "\ |
42 | This plugin is a wrapper to take the output of another plugin and invert it.\n\ | 48 | This plugin is a wrapper to take the output of another plugin and invert it.\n\ |
43 | If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL.\n\ | 49 | If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL.\n\ |
@@ -180,8 +186,8 @@ print_help (void) | |||
180 | COPYRIGHT, AUTHOR, EMAIL, SUMMARY); | 186 | COPYRIGHT, AUTHOR, EMAIL, SUMMARY); |
181 | print_usage (); | 187 | print_usage (); |
182 | printf | 188 | printf |
183 | ("\nOptions:\n" LONGOPTIONS "\n" DESCRIPTION "\n", | 189 | ("\nOptions:\n" LONGOPTIONS "\n" "Examples:\n" EXAMPLES "\n" |
184 | DEFAULT_TIMEOUT); | 190 | DESCRIPTION "\n", DEFAULT_TIMEOUT); |
185 | support (); | 191 | support (); |
186 | } | 192 | } |
187 | 193 | ||