change requirement

This commit is contained in:
2026-03-11 16:48:50 +01:00
parent b8be66267b
commit 9b4968c4f9
3 changed files with 10 additions and 3 deletions

View File

@@ -67,8 +67,9 @@ class confdroid_nrpe::commands::definition_rules (
}
confdroid_nrpe::commands::definitions { 'check_fail2ban':
ne_check_name => 'check_fail2ban',
ne_check_cmd => 'check_procs',
ne_cmd_argstring => '-c $ARG1$ -C $ARG2$',
ne_cmd_argstring => '-c $ARG1$ -a $ARG2$',
}
}
}

View File

@@ -12,13 +12,19 @@
# checks.
# @param [String] ne_cmd_comment Specify an optional comment for your command
# definition
# @param [String] ne_check_name Specify an optional name for the check,
# if you want to use a different name than the check_command.
# This is useful if you want to use the same check_command with
# different arguments, e.g. check_procs with different argument strings for
#different checks.
###############################################################################
define confdroid_nrpe::commands::definitions (
String $ne_check_name = 'check_procs',
Optional[String] $ne_check_cmd = undef,
String $ne_cmd_path = '/usr/lib64/nagios/plugins/',
Optional[String] $ne_cmd_argstring = undef,
String $ne_cmd_comment = '',
Optional[String] $ne_cmd_comment = undef,
) {
$ne_cmd_file = $confdroid_nrpe::params::ne_cmd_file

View File

@@ -2,4 +2,4 @@
<% unless @ne_cmd_comment.empty? -%>
# <%= @ne_cmd_comment %>
<% end -%>
command[<%= @ne_check_cmd %>]=<%= @ne_cmd_path %><%= @ne_check_cmd %> <%= @ne_cmd_argstring %>
command[<%= @ne_check_name %>]=<%= @ne_cmd_path %><%= @ne_check_cmd %> <%= @ne_cmd_argstring %>