summaryrefslogtreecommitdiffstats
path: root/lib/Monitoring/Plugin/Config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Monitoring/Plugin/Config.pm')
-rw-r--r--lib/Monitoring/Plugin/Config.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Monitoring/Plugin/Config.pm b/lib/Monitoring/Plugin/Config.pm
index 5e941d4..fe2b654 100644
--- a/lib/Monitoring/Plugin/Config.pm
+++ b/lib/Monitoring/Plugin/Config.pm
@@ -1,6 +1,9 @@
1package Monitoring::Plugin::Config; 1package Monitoring::Plugin::Config;
2 2
3use 5.006;
3use strict; 4use strict;
5use warnings;
6
4use Carp; 7use Carp;
5use File::Spec; 8use File::Spec;
6use base qw(Config::Tiny); 9use base qw(Config::Tiny);
@@ -93,10 +96,12 @@ sub read_string
93sub write { croak "Write access not permitted" } 96sub write { croak "Write access not permitted" }
94 97
95# Return last file used by read(); 98# Return last file used by read();
96sub np_getfile { return $CURRENT_FILE; } 99sub mp_getfile { return $CURRENT_FILE; }
97 100
981; 1011;
99 102
103__END__
104
100=head1 NAME 105=head1 NAME
101 106
102Monitoring::Plugin::Config - read nagios plugin .ini style config files 107Monitoring::Plugin::Config - read nagios plugin .ini style config files
@@ -169,7 +174,8 @@ https://monitoring-plugins.org
169 174
170=head1 COPYRIGHT AND LICENSE 175=head1 COPYRIGHT AND LICENSE
171 176
172Copyright (C) 2006-2014 Monitoring Plugin Development Team 177Copyright (C) 2014 by Monitoring Plugin Team
178Copyright (C) 2006-2014 by Nagios Plugin Development Team
173 179
174This library is free software; you can redistribute it and/or modify 180This library is free software; you can redistribute it and/or modify
175it under the same terms as Perl itself. 181it under the same terms as Perl itself.