diff options
Diffstat (limited to 'lib/Nagios/Plugin.pm')
-rw-r--r-- | lib/Nagios/Plugin.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index b8c6b99..d2a5145 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm | |||
@@ -289,7 +289,7 @@ plugins | |||
289 | $np->add_message( OK, $_ ); | 289 | $np->add_message( OK, $_ ); |
290 | } | 290 | } |
291 | } | 291 | } |
292 | ($code, $message) = $np->check_message(); | 292 | ($code, $message) = $np->check_messages(); |
293 | nagios_exit( $code, $message ); | 293 | nagios_exit( $code, $message ); |
294 | # If any items in collection matched m/Error/, returns CRITICAL and | 294 | # If any items in collection matched m/Error/, returns CRITICAL and |
295 | # the joined set of Error messages; otherwise returns OK and the | 295 | # the joined set of Error messages; otherwise returns OK and the |
@@ -541,7 +541,7 @@ add_messages and check_messages are higher-level convenience methods to add | |||
541 | and then check a set of messages, returning an appropriate return code | 541 | and then check a set of messages, returning an appropriate return code |
542 | and/or result message. They are equivalent to maintaining a set of @critical, | 542 | and/or result message. They are equivalent to maintaining a set of @critical, |
543 | @warning, and and @ok message arrays (add_message), and then doing a final | 543 | @warning, and and @ok message arrays (add_message), and then doing a final |
544 | if test (check_message) like this: | 544 | if test (check_messages) like this: |
545 | 545 | ||
546 | if (@critical) { | 546 | if (@critical) { |
547 | nagios_exit( CRITICAL, join(' ', @critical) ); | 547 | nagios_exit( CRITICAL, join(' ', @critical) ); |