diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 03:58:09 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-11-19 03:58:09 +0000 |
commit | 53d04242544a69e5fe226211bfb0186414941a9f (patch) | |
tree | c5334576ed7564c3db145dd9a7ab03e345da137a /lib/Nagios/Plugin.pm | |
parent | c47e1a9c28db2890f724ee57e59f3a3c30d7740c (diff) | |
download | monitoring-plugin-perl-53d04242544a69e5fe226211bfb0186414941a9f.tar.gz |
Add max_state_* interface warper to Nagios::Plugin object
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@2082 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/Nagios/Plugin.pm')
-rw-r--r-- | lib/Nagios/Plugin.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 06f313d..5f9a905 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm | |||
@@ -99,6 +99,12 @@ sub die { | |||
99 | my $self = shift; | 99 | my $self = shift; |
100 | Nagios::Plugin::Functions::nagios_die(@_, { plugin => $self }); | 100 | Nagios::Plugin::Functions::nagios_die(@_, { plugin => $self }); |
101 | } | 101 | } |
102 | sub max_state { | ||
103 | Nagios::Plugin::Functions::max_state(@_); | ||
104 | } | ||
105 | sub max_state_alt { | ||
106 | Nagios::Plugin::Functions::max_state_alt(@_); | ||
107 | } | ||
102 | 108 | ||
103 | # Override default shortname accessor to add default | 109 | # Override default shortname accessor to add default |
104 | sub shortname { | 110 | sub shortname { |
@@ -483,6 +489,11 @@ Set C<$_use_die> flag if this functionality is required (see test code). | |||
483 | 489 | ||
484 | Alias for nagios_die(). Deprecated. | 490 | Alias for nagios_die(). Deprecated. |
485 | 491 | ||
492 | =item max_state, max_state_alt | ||
493 | |||
494 | These are wrapper function for Nagios::Plugin::Functions::max_state and | ||
495 | Nagios::Plugin::Functions::max_state_alt. | ||
496 | |||
486 | =back | 497 | =back |
487 | 498 | ||
488 | =head2 THRESHOLD METHODS | 499 | =head2 THRESHOLD METHODS |