monitoring-plugins/lib
Holger Weiss 92bb86c484 Make C plugin output format configurable
*** THIS COMMIT WILL BE MODIFIED IN THE FUTURE! ***

The development guidelines¹ currently state that the plugin output
should be in the format "SERVICE STATUS: Information text".

However, when a plugin is called via Nagios in order to perform a
service check, adding SERVICE and STATUS to the output is redundant.
And when a plugin is called on the command line for testing, there is no
use in printing out the SERVICE string, either.  However, for debugging,
it does make sense to print out the STATUS so that the user won't have
to check and interpret the exit code manually.  But it should suffice to
print such debug output only when called with "--verbose", not in
production.

Space for plugin output is sometimes scarce, so that we should try to
keep the output "short and to the point" (as the guide states) and not
waste space with redundant information.  Therefore, we decided² to make
the ("normal" and "verbose") plugin output configurable at compile time.

¹ http://nagiosplug.sf.net/developer-guidelines.html
² http://thread.gmane.org/gmane.network.nagios.plugins.devel/5155
2009-04-22 00:47:29 +02:00
..
tests Removing all .cvsignore files 2007-07-24 00:35:42 +00:00
Makefile.am Moved check_tcp's expect string testing into utils_tcp for testing purposes. 2007-06-03 14:40:13 +00:00
Makefile.config-opts Added test files to test the parse_ini.c routines. Requires libtap 2007-02-07 14:46:50 +00:00
parse_ini.c Added test files to test the parse_ini.c routines. Requires libtap 2007-02-07 14:46:50 +00:00
parse_ini.h initial version of ini file parsing routines in C 2007-02-06 19:33:55 +00:00
utils_base.c Make C plugin output format configurable 2009-04-22 00:47:29 +02:00
utils_base.h Make C plugin output format configurable 2009-04-22 00:47:29 +02:00
utils_disk.c utils_disk: fixed handling if check_disk -p is a device (np_set_best_match()) 2007-04-01 11:17:16 +00:00
utils_disk.h check_disk: added regex functionality -r and -R. see np-devel mail (2007-02-10) 2007-03-30 08:53:58 +00:00
utils_tcp.c Moved check_tcp's expect string testing into utils_tcp for testing purposes. 2007-06-03 14:40:13 +00:00
utils_tcp.h Moved check_tcp's expect string testing into utils_tcp for testing purposes. 2007-06-03 14:40:13 +00:00