browbeat/ansible/check/roles/gnocchi/tasks/main.yml
akrzos 39ae793fd9 Check if Gnocchi api processes is > 1.
This does check if gnocchi is in the httpd configuration
directory (which should indicate if gnocchi is installed
on the system, though it may still not be setup to be
running)

Change-Id: I8eacbe66769758e1667165b0629d7051cf98ad9d
2016-09-07 07:52:56 -04:00

16 lines
480 B
YAML

---
#
# Gnocchi tasks for performance checks
#
- name: Get httpd configuration files
shell: 'ls /etc/httpd/conf.d/'
register: httpd_confd_files
- name: Gnocchi API httpd process count
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*gnocchi_wsgi.conf | egrep -o "[0-9]+"
register: bz1372821
failed_when: bz1372821.stdout|int < gnocchi_api_processes and 'gnocchi' in httpd_confd_files.stdout
when: (inventory_hostname in groups.controller)
ignore_errors: True