summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b88e43)
raw | patch | inline | side by side (parent: 2b88e43)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 14 May 2003 23:17:16 +0000 (23:17 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 14 May 2003 23:17:16 +0000 (23:17 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@514 f882894a-f735-0410-b71e-b25c423dba1c
plugins/negate.c | patch | blob | history |
diff --git a/plugins/negate.c b/plugins/negate.c
index c1c0bc57fd07ae71fb16cf11b26102dc7afd22df..d1fcb5dd6bd7fd45ed68f1926ec5c59194cda6f2 100644 (file)
--- a/plugins/negate.c
+++ b/plugins/negate.c
Terminate test if timeout limit is exceeded (default: %d)\n\
[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\
If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL.\n\
COPYRIGHT, AUTHOR, EMAIL, SUMMARY);
print_usage ();
printf
- ("\nOptions:\n" LONGOPTIONS "\n" DESCRIPTION "\n",
- DEFAULT_TIMEOUT);
+ ("\nOptions:\n" LONGOPTIONS "\n" "Examples:\n" EXAMPLES "\n"
+ DESCRIPTION "\n", DEFAULT_TIMEOUT);
support ();
}