summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring/Plugin.pm
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-03-05 09:56:22 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-03-05 09:59:29 +1300
commit77de65e149c519f551e03e11c9c26605c9866b72 (patch)
tree3b42d9e624bf44914aa8d83775a60ef185589baa /lib/Monitoring/Plugin.pm
parent00660dfc0c5536e13f090c3d391d53d5d87c1e81 (diff)
downloadmonitoring-plugin-perl-77de65e149c519f551e03e11c9c26605c9866b72.tar.gz
Remove "experimental" tag on "Message Methods"
From a maintainer, Sven Nierlein: > I'd say we can remove the "experimental" tag there. It had been there > for years now and i see no reason why we would change them. Partly resolves #14.
Diffstat (limited to 'lib/Monitoring/Plugin.pm')
-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,