san, xen: monitor the presence of the gmond process.

This commit is contained in:
Andrea Dell'Amico 2015-08-12 18:35:41 +02:00
parent a7c764d959
commit 91b75f4697
1 changed files with 9 additions and 16 deletions

View File

@ -12,18 +12,16 @@
with_items: with_items:
- ganglia-modules-linux - ganglia-modules-linux
- ganglia-monitor-python - ganglia-monitor-python
notify: notify: Restart ganglia monitor
Restart ganglia monitor when: ( is_trusty_or_debian7 ) or ( is_debian8 )
when: is_trusty_or_debian7
tags: tags:
- monitoring - monitoring
- ganglia - ganglia
- name: Distribute the ganglia configuration file for Ubuntu >= 12.04 - name: Distribute the ganglia configuration file for Ubuntu >= 12.04
template: src=gmond.j2 dest=/etc/ganglia/gmond.conf owner=root group=root mode=444 template: src=gmond.j2 dest=/etc/ganglia/gmond.conf owner=root group=root mode=444
when: is_not_ubuntu_less_than_precise when: ( is_not_ubuntu_less_than_precise ) or ( is_debian8 )
notify: notify: Restart ganglia monitor
Restart ganglia monitor
tags: tags:
- monitoring - monitoring
- ganglia - ganglia
@ -31,8 +29,7 @@
- name: Distribute the ganglia configuration file for Debian 7 - name: Distribute the ganglia configuration file for Debian 7
template: src=gmond.j2 dest=/etc/ganglia/gmond.conf owner=root group=root mode=444 template: src=gmond.j2 dest=/etc/ganglia/gmond.conf owner=root group=root mode=444
when: is_debian7 when: is_debian7
notify: notify: Restart ganglia monitor
Restart ganglia monitor
tags: tags:
- monitoring - monitoring
- ganglia - ganglia
@ -40,8 +37,7 @@
- name: Distribute the ganglia configuration file for Ubuntu < 12.04 and >= 10.04 and Debian 6 - name: Distribute the ganglia configuration file for Ubuntu < 12.04 and >= 10.04 and Debian 6
template: src=gmond-3.1.j2 dest=/etc/ganglia/gmond.conf owner=root group=root mode=444 template: src=gmond-3.1.j2 dest=/etc/ganglia/gmond.conf owner=root group=root mode=444
when: is_ubuntu_between_10_04_and_11_04_and_is_debian_6 when: is_ubuntu_between_10_04_and_11_04_and_is_debian_6
notify: notify: Restart ganglia monitor
Restart ganglia monitor
tags: tags:
- monitoring - monitoring
- ganglia - ganglia
@ -50,8 +46,7 @@
template: src=gmond-2.5.j2 dest=/etc/gmond.conf owner=root group=root mode=444 template: src=gmond-2.5.j2 dest=/etc/gmond.conf owner=root group=root mode=444
when: when:
- is_ubuntu_between_8_and_9_and_is_debian_4 - is_ubuntu_between_8_and_9_and_is_debian_4
notify: notify: Restart ganglia monitor
Restart ganglia monitor
tags: tags:
- monitoring - monitoring
- ganglia - ganglia
@ -60,8 +55,7 @@
template: src=gmond-2.5.j2 dest=/etc/gmond.conf owner=root group=root mode=444 template: src=gmond-2.5.j2 dest=/etc/gmond.conf owner=root group=root mode=444
when: when:
- is_broken_hardy_lts - is_broken_hardy_lts
notify: notify: Restart ganglia monitor
Restart ganglia monitor
tags: tags:
- monitoring - monitoring
- ganglia - ganglia
@ -82,8 +76,7 @@
- name: Setup the ganglia configuration for python modules - name: Setup the ganglia configuration for python modules
copy: src=modpython.conf dest=/etc/ganglia/conf.d/modpython.conf owner=root group=root mode=0644 copy: src=modpython.conf dest=/etc/ganglia/conf.d/modpython.conf owner=root group=root mode=0644
notify: notify: Restart ganglia monitor
- Restart ganglia monitor
when: is_precise when: is_precise
tags: tags:
- monitoring - monitoring