Puppet Class: openstack::nova::scheduler::monitor
- Defined in:
- modules/openstack/manifests/nova/scheduler/monitor.pp
Overview
openstack scheduler determines on which host a particular instance should run
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'modules/openstack/manifests/nova/scheduler/monitor.pp', line 3
class openstack::nova::scheduler::monitor(
$active,
$critical=false,
$contact_groups='wmcs-bots,admins',
){
# monitoring::service doesn't take a bool
if $active {
$ensure = 'present'
}
else {
$ensure = 'absent'
}
nrpe::monitor_service { 'check_nova_scheduler_process':
ensure => $ensure,
critical => $critical,
description => 'nova-scheduler process',
nrpe_command => "/usr/lib/nagios/plugins/check_procs -c 1: --ereg-argument-array '^/usr/bin/python.* /usr/bin/nova-scheduler'",
contact_group => $contact_groups,
notes_url => 'https://wikitech.wikimedia.org/wiki/Portal:Cloud_VPS/Admin/Troubleshooting',
}
}
|