change requirement
This commit is contained in:
@@ -86,11 +86,16 @@ Defining commands is as simple as that:
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
confdroid_nrpe::commands::definitions { 'check_users':
|
confdroid_nrpe::commands::definitions { 'check_users':
|
||||||
|
ne_check_name => 'check_users',
|
||||||
ne_check_cmd => 'check_users',
|
ne_check_cmd => 'check_users',
|
||||||
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
>Q: `ne_check_name` is the same as `ne_check_cmd`, why is that?
|
||||||
|
A: Sometimes the name of the check is different, like this:
|
||||||
|
`command[check_fail2ban]=/usr/lib/nagios/plugins/check_procs -c 1:1 -a fail2ban-server`
|
||||||
|
|
||||||
It is very recommendable to define such commands directly within Puppet modules or profiles, so any node running the particular service controlled by the module will automatically get the required check commands defined as well, while nodes not running the service also do not contain the command check. The same then is true for Nagios checks, so you would have both the NRPE command definition and the Nagios check contained in Puppet modules or profiles to have it in one location.
|
It is very recommendable to define such commands directly within Puppet modules or profiles, so any node running the particular service controlled by the module will automatically get the required check commands defined as well, while nodes not running the service also do not contain the command check. The same then is true for Nagios checks, so you would have both the NRPE command definition and the Nagios check contained in Puppet modules or profiles to have it in one location.
|
||||||
|
|
||||||
## SELINUX
|
## SELINUX
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class confdroid_nrpe::commands::definition_rules (
|
|||||||
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
ne_cmd_argstring => '-w $ARG1$ -c $ARG2$',
|
||||||
ne_cmd_comment => 'check the amount of user logged in locally',
|
ne_cmd_comment => 'check the amount of user logged in locally',
|
||||||
}
|
}
|
||||||
|
|
||||||
confdroid_nrpe::commands::definitions { 'check_load':
|
confdroid_nrpe::commands::definitions { 'check_load':
|
||||||
ne_check_name => 'check_load',
|
ne_check_name => 'check_load',
|
||||||
ne_check_cmd => 'check_load',
|
ne_check_cmd => 'check_load',
|
||||||
|
|||||||
Reference in New Issue
Block a user