Puppet Class: nagios::server::plugins::check_mssql_health
- Defined in:
- manifests/server/plugins/check_mssql_health.pp
Overview
Class: nagios::server::check_mssql_health
This is going to install the necessary nrpe plugin for checking mssql health
Authors
Ben Field <ben.field@concreteplatform.com>
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'manifests/server/plugins/check_mssql_health.pp', line 8
class nagios::server::plugins::check_mssql_health {
require nagios::server::config
include nagios::server::service
ensure_resource('package', 'libdbd-sybase-perl', {
'ensure' => 'installed'
}
)
file { 'check_mssql_health':
ensure => present,
path => '/usr/lib/nagios/plugins/check_mssql_health',
source => 'puppet:///modules/nagios/server/plugins/check_mssql_health',
owner => 'nagios',
group => 'nagios',
mode => '0755',
}
nagios_command { 'check_mssql_health_custom':
ensure => 'present',
command_name => 'check_mssql_health_custom',
command_line => '/usr/lib/nagios/plugins/check_mssql_health --commit --server \'$ARG1$\' --username \'$ARG2$\' --password \'$ARG3$\' --name \'$ARG4$\' --mode \'$ARG5$\' --warning \'$ARG6$\' --critical \'$ARG7$\'',
target => '/etc/nagios3/conf.d/puppet/command_nagios.cfg',
notify => Exec['rechmod'],
}
nagios_command { 'check_mssql_health_custom_noname':
ensure => 'present',
command_name => 'check_mssql_health_custom_noname',
command_line => '/usr/lib/nagios/plugins/check_mssql_health --commit --server \'$ARG1$\' --username \'$ARG2$\' --password \'$ARG3$\' --mode \'$ARG4$\' --warning \'$ARG5$\' --critical \'$ARG6$\'',
target => '/etc/nagios3/conf.d/puppet/command_nagios.cfg',
notify => Exec['rechmod'],
}
}
|