| {%- from "nova/map.jinja" import controller with context %} |
| {%- from "nova/map.jinja" import compute with context %} |
| {%- if pillar.nova.controller is defined %} |
| {%- set region = controller.identity.region %} |
| {%- endif %} |
| {%- if pillar.nova.compute is defined %} |
| {%- set region = compute.identity.region %} |
| {%- endif %} |
| |
| check: |
| local_nova_api_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-api -u nova -c 1:1024" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-controller |
| local_nova_scheduler_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-scheduler -u nova -c 1:4" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-controller |
| local_nova_novncproxy_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-novncproxy -u nova -c 1:5" |
| interval: 60 |
| occurrences: 2 |
| subscribers: |
| - local-nova-controller |
| local_nova_cert_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-cert -u nova -c 1:4" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-controller |
| local_nova_conductor_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-conductor -u nova -c 1:1024" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-controller |
| local_nova_consoleauth_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-consoleaut -u nova -c 1:1" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-controller |
| local_nova_compute_proc: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C nova-compute -u nova -c 1:5" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-compute |
| local_linux_storage_nova_instances_usage: |
| command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_disk -w 15% -c 5% -p /var/lib/nova/instances" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - local-nova-compute |
| remote_openstack_nova_instance: |
| command: "PATH=$PATH:/usr/local/bin oschecks-check_nova_instance --auth_url='http://:::openstack.host:::::::openstack.port:::/v2.0' --username :::openstack.user::: --password :::openstack.password::: --tenant :::openstack.tenant::: --region_name {{ region }}" |
| interval: 300 |
| occurrences: 1 |
| subscribers: |
| - remote-network |
| remote_openstack_nova_api: |
| command: "PATH=$PATH:/usr/local/bin oschecks-check_nova_api --os-auth-url 'http://:::openstack.host:::::::openstack.port:::/v2.0' --os-username :::openstack.user::: --os-password :::openstack.password::: --os-tenant-name :::openstack.tenant::: --os-region-name {{ region }}" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - remote-network |
| remote_nova_services: |
| command: "PATH=$PATH:/etc/sensu/plugins check_nova_services.sh -u :::openstack.user::: -p :::openstack.password::: -t :::openstack.tenant::: -h 'http://:::openstack.host:::::::openstack.port:::/v2.0' -r {{ region }}" |
| interval: 60 |
| occurrences: 1 |
| subscribers: |
| - remote-network |