First cut at moving over nrpe client scripts.
This commit is contained in:
parent
e43cd8a91c
commit
7ef93ded5d
9 changed files with 120 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue