added test command

This commit is contained in:
Arne Teuke
2017-07-30 12:50:55 +01:00
parent 7a767e39dc
commit 5c0374245d
3 changed files with 13 additions and 2 deletions

View File

@@ -87,6 +87,8 @@ There are currently no mandatory parameters, i.e. the module will function right
* `$ne_include_selinux` : Whether to manage selinux exception rules. Defaults to `true`.
### Managing Check Commands
In order to connect a Nagios monitoring server to clients through NRPE, you must define commands and the desired argument strings on the clients.
### SELINUX
All files and directories are configured with correct selinux context. If selinux is disabled, these contexts are ignored.

View File

@@ -19,6 +19,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# @summary manage command definitions via define and Puppet rules.
# @example
# cd_nrpe::commands::definitions { 'check_users':
# ne_check_cmd => 'check_users',
# ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
# }
###############################################################################
class cd_nrpe::commands::definition_rules (
@@ -51,6 +56,11 @@ class cd_nrpe::commands::definition_rules (
# basic example rules
cd_nrpe::commands::definitions { 'check_users':
ne_check_cmd => 'check_users',
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
}
}
}

View File

@@ -1,4 +1,3 @@
################################################################################
########## commandsmds.cfg managed by Puppet ##########
########## manual changes will be orverwritten ##########
### commands.cfg managed by Puppet | manual changes will be overwritten ###
################################################################################