First cut at moving over nrpe client scripts.

This commit is contained in:
Kevin Fenzi 2013-06-17 21:13:31 +00:00
parent e43cd8a91c
commit 7ef93ded5d
9 changed files with 120 additions and 2 deletions

View file

@ -17,6 +17,12 @@
tags:
- packages
- name: install local nrpe check scripts that are not packaged
copy: src=$files/nagios/client/scripts/$item dest=/usr/lib64/nagios/plugins/$item
with_items:
- check_postfix_queue
- check_raid.py
# create dirs
# puppet used to make /var/spool/nagios (owned by nagios.nagios) mode 750
# and /usr/lib/nagios/plugins (owned by root) mode 755 - but we don't know WHY
@ -35,9 +41,21 @@
tags:
- config
- name: install nrpe client configs
copy: src=$files/nagios/client/$item dest=/etc/nrpe.d/$item
with_items:
- check_mirrorlist_cache.cfg
- check_raid.cfg
- check_cron.cfg
- check_disk.cfg
- check_swap.cfg
- check_postfix_queue.cfg
notify:
- restart nrpe
tags:
- config
- name: nrpe service start
service: name=nrpe state=running enabled=true
tags:
- service