aboutsummaryrefslogtreecommitdiffstats
path: root/roles/snmp
diff options
context:
space:
mode:
Diffstat (limited to 'roles/snmp')
-rw-r--r--roles/snmp/files/gondul-snmp.service14
-rw-r--r--roles/snmp/handlers/main.yml3
-rw-r--r--roles/snmp/tasks/main.yml23
3 files changed, 0 insertions, 40 deletions
diff --git a/roles/snmp/files/gondul-snmp.service b/roles/snmp/files/gondul-snmp.service
deleted file mode 100644
index e5f2179..0000000
--- a/roles/snmp/files/gondul-snmp.service
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Gondul snmp collector
-Documentation=http://google.com
-After=network.target
-
-[Service]
-ExecStart=/opt/gondul/collectors/snmpfetchng.pl
-MountFlags=slave
-LimitNOFILE=1048576
-LimitNPROC=1048576
-LimitCORE=infinity
-
-[Install]
-WantedBy=multi-user.target
diff --git a/roles/snmp/handlers/main.yml b/roles/snmp/handlers/main.yml
deleted file mode 100644
index b0232f2..0000000
--- a/roles/snmp/handlers/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- name: restart gondul-snmp
- service: name=gondul-snmp state=restarted
diff --git a/roles/snmp/tasks/main.yml b/roles/snmp/tasks/main.yml
deleted file mode 100644
index 2cb7165..0000000
--- a/roles/snmp/tasks/main.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-- file:
- path: /opt/gondul/data
- state: directory
- mode: 0755
-- stat:
- path: /opt/gondul/data/mibs
- register: mibdir
-- name: Get mibs
- command: /opt/gondul/extras/tools/get_mibs.sh
- args:
- chdir: /opt/gondul/data/
- when: not mibdir.stat.exists
- notify: restart gondul-snmp
-- name: Add systemd service file for gondul-snmp
- copy:
- dest: /etc/systemd/system/gondul-snmp.service
- src: gondul-snmp.service
- notify: restart gondul-snmp
-- name: Enable snmp service
- systemd:
- name: gondul-snmp.service
- enabled: yes
- notify: restart gondul-snmp