diff options
author | Sven Nierlein <sven@nierlein.de> | 2011-05-10 23:49:36 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2011-05-10 23:49:36 +0200 |
commit | 95426817f66bbc7a1e4ad998fe10f327f0096257 (patch) | |
tree | 5e703fea1ae2a629bec01d1b8b618b67577cd11d /lib | |
parent | 0b559b217bd08bb87bee018e715d01848e8d007f (diff) | |
download | monitoring-plugin-perl-95426817f66bbc7a1e4ad998fe10f327f0096257.tar.gz |
fixed typo in pod
Diffstat (limited to 'lib')
-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) ); |