Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Fix nagios plugins path on RedHat
Browse files Browse the repository at this point in the history
Centos 6 and 7 both use lib64 so the paths.cfg needs updating to reflect that.
  • Loading branch information
goetzk committed Mar 2, 2017
1 parent 5166017 commit ca8dcb9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/configure-shinken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,13 @@
notify:
- restart shinken arbiter

- name: Fix path to nagios plugins directory on RedHat family
when: ansible_os_family == "RedHat"
lineinfile:
dest: /etc/shinken/resource.d/paths.cfg
regexp: $NAGIOSPLUGINSDIR$=/usr/lib/nagios/plugins
line: $NAGIOSPLUGINSDIR$=/usr/lib64/nagios/plugins
state: present
notify:
- restart shinken arbiter

0 comments on commit ca8dcb9

Please sign in to comment.