monitoring-plugins / monitoring-plugin-perl

Perl module Monitoring::Plugin - Nagios::Plugin
http://search.cpan.org/dist/Monitoring-Plugin/
42 stars 20 forks source link

Create implicit threshold object if either warning or critical is set #23

Closed infraweavers closed 4 years ago

infraweavers commented 4 years ago

As suggested in: https://github.com/monitoring-plugins/monitoring-plugin-perl/pull/22#discussion_r486051909

Previously, the plugin would have to define both the warning and criticals to get the automatic threshold object. Now, if either is set it will create the plugin threshold object

sni commented 4 years ago

great, thanks.