-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_nrpe.yaml
40 lines (32 loc) · 1.04 KB
/
install_nrpe.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
- name: Installasjon av pakke nagios-nrpe-server
apt:
name: ['nagios-nrpe-server']
state: latest
- name: Installasjon av pakke nagios-plugins
apt:
name: ['nagios-plugins']
state: latest
- name: Upgrade all packages to the latest version
apt:
name: "*"
state: latest
- name: "Kopierer nrpe.cfg nagios deamon konfigurasjon"
copy: src=files/nrpe.cfg dest=/etc/nagios/nrpe.cfg
- name: "Kopere nrpe skript filer"
copy: src={{ item }} dest=/usr/lib64/nagios/plugins/ owner=root group=root mode=0744
with_fileglob:
- files/check_hwinfo.pl
- files/check_log3.pl
- files/check_postgres.pl
- files/check_uptime
- files/db_size.sh
- files/utils.pm
- files/check_pgagent
- files/db_size.sh
- files/replication_delay.sh
- files/replication_info.sh
- files/check_service
- files/check_user_conn.bash
- files/check_service
- name: restart nagios-nrpe-server service
service: name=nagios-nrpe-server state=restarted