summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.org>2018-03-07 08:54:08 +0100
committerGitHub <noreply@github.com>2018-03-07 08:54:08 +0100
commit8180da509371afd3f3044b494a8cb87e70e73d64 (patch)
tree3b42d9e624bf44914aa8d83775a60ef185589baa
parent00660dfc0c5536e13f090c3d391d53d5d87c1e81 (diff)
parent77de65e149c519f551e03e11c9c26605c9866b72 (diff)
downloadmonitoring-plugin-perl-8180da5.tar.gz
Merge pull request #18 from tejr/master
Remove "experimental" tag on "Message Methods"
-rw-r--r--lib/Monitoring/Plugin.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Monitoring/Plugin.pm b/lib/Monitoring/Plugin.pm
index 7e1c4d0..3052266 100644
--- a/lib/Monitoring/Plugin.pm
+++ b/lib/Monitoring/Plugin.pm
@@ -287,8 +287,7 @@ Icinga or Shinken (and compatible) plugins.
287 ); 287 );
288 $np->plugin_exit( $code, "Threshold check failed" ) if $code != OK; 288 $np->plugin_exit( $code, "Threshold check failed" ) if $code != OK;
289 289
290 290 # Message methods
291 # Message methods (EXPERIMENTAL AND SUBJECT TO CHANGE) -
292 # add_message( CODE, $message ); check_messages() 291 # add_message( CODE, $message ); check_messages()
293 for (@collection) { 292 for (@collection) {
294 if (m/Error/) { 293 if (m/Error/) {
@@ -580,8 +579,6 @@ need to do that from a plugin script.
580 579
581=head2 MESSAGE METHODS 580=head2 MESSAGE METHODS
582 581
583EXPERIMENTAL AND SUBJECT TO CHANGE
584
585add_messages and check_messages are higher-level convenience methods to add 582add_messages and check_messages are higher-level convenience methods to add
586and then check a set of messages, returning an appropriate return code 583and then check a set of messages, returning an appropriate return code
587and/or result message. They are equivalent to maintaining a set of @critical, 584and/or result message. They are equivalent to maintaining a set of @critical,