added comment option
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
# cd_nrpe::commands::definitions { 'check_users':
|
||||
# ne_check_cmd => 'check_users',
|
||||
# ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||
# ne_cmd_comment => 'check the amount of user logged in locally',
|
||||
# }
|
||||
###############################################################################
|
||||
class cd_nrpe::commands::definition_rules (
|
||||
@@ -59,6 +60,7 @@ class cd_nrpe::commands::definition_rules (
|
||||
cd_nrpe::commands::definitions { 'check_users':
|
||||
ne_check_cmd => 'check_users',
|
||||
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||
ne_cmd_comment => 'check the amount of user logged in locally',
|
||||
}
|
||||
|
||||
cd_nrpe::commands::definitions { 'check_load':
|
||||
|
||||
@@ -27,12 +27,15 @@
|
||||
# @param ne_cmd_argstring Specify the string of valid argument for the command
|
||||
# , i.e. -w $ARG1$ -c $ARG2$. See the arguments in th eman pages for the
|
||||
# checks.
|
||||
# @param [string] ne_cmd_comment Specify an optional comment for your command
|
||||
# definition
|
||||
###############################################################################
|
||||
define cd_nrpe::commands::definitions (
|
||||
|
||||
$ne_check_cmd = undef,
|
||||
$ne_cmd_path = '/usr/lib64/nagios/plugins/',
|
||||
$ne_cmd_argstring = undef,
|
||||
$ne_cmd_comment = undef,
|
||||
|
||||
) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user