Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions check_ntpd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ def print_overall_health(status)
opts.banner = "Usage: check_ntpd.rb [options]";

opts.on("-c", "--critical [INT]", "Set the Critical Health Threshold.") do |c|
options[:critical_threshold] = c;
options[:critical_threshold] = c.to_i;
end

opts.on("-w", "--warning [INT]", "Set the Warning Health Threshold.") do |w|
options[:warning_threshold] = w;
options[:warning_threshold] = w.to_i;
end

opts.on("--peer_critical [INT]", "Set the Critical threshold on the number of active peers.") do |c|
options[:peer_critical_threshold] = c;
options[:peer_critical_threshold] = c.to_i;
end

opts.on("--peer_warning [INT]", "Set the Warning threshold on the number of active peers.") do |w|
options[:peer_warning_threshold] = w;
options[:peer_warning_threshold] = w.to_i;
end
end.parse!

Expand Down