Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring client checks #43

Open
davideagle opened this issue Nov 3, 2014 · 1 comment
Open

Configuring client checks #43

davideagle opened this issue Nov 3, 2014 · 1 comment

Comments

@davideagle
Copy link

I'm trying to figure out how to use the module to configure client checks, but I mont able to get the nrpe-check_ssh.cfg file created in the npre.d directory, could you point me in to the right direction?

class profiles::base {
$nagios_nrpe_allowed_hosts = hiera('nagios::nrpe_allowed_hosts')

class {'::nagios::client':
nrpe_allowed_hosts => $nagios_nrpe_allowed_hosts,
}

class {'nagios::check::ssh':
ensure => present,
}
}

@NMerch
Copy link

NMerch commented Nov 3, 2014

I added additional nrpe check like this:

Client:
file { '/usr/lib64/nagios/plugins/check_mongodb.py':
ensure => present,
source => 'puppet:///modules/mush_nagios/check_mongodb.py',
mode => '0755',
owner => 'root',
group => 'nrpe',
}

nagios::service { "check_mongo_${hostname}":
check_command => 'check_mongod_proc',
service_description => 'Mongodb Process',
}

file { "${nagios::params::nrpe_cfg_dir}/nrpe-check-mongod_proc.cfg":
ensure => present,
owner => 'root',
group => 'nrpe',
mode => '0640',
content => "command[check_mongod_proc]=/usr/lib64/nagios/plugins/check_procs -C mongod -c 2\n",
}

Nagios Master:
nagios_command { 'check_puppet_proc':
command_line => '$USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c check_puppet_proc',
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants