Skip to content
Snippets Groups Projects
Commit d60461b0 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Remove snmpd, we have check_mk

parent df8f40ae
No related branches found
No related tags found
No related merge requests found
...@@ -8,4 +8,3 @@ include: ...@@ -8,4 +8,3 @@ include:
- .openvmtools - .openvmtools
- .time - .time
- .locale - .locale
- .snmpd
# Don't load any MIBs by default.
# You might comment this lines once you have the MIBs downloaded.
export MIBS=UCD-SNMP-MIB
# Listen on all interfaces - default is good
agentAddress udp:161,udp6:[::1]:161
# Credentials for SNMPv3 - used in What's Up Gold
createUser hshuser MD5 "hshmonitoringtest"
defaultMonitors yes
# specific disk monitoring
disk / 10000
disk /var 5%
# also list all other disks
includeAllDisks 10%
iquerySecName hshuser
linkUpDownNotifications yes
# maximum load threshold (1min, 5min, 15min)
load 12 10 5
master agentx
rouser hshuser
sysContact HsH Webteam
sysLocation HsH IT VDC
# 72 is alright for now. (No idea)
sysServices 72
# default systemonly view is fine
view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
{% from "hshbase/map.jinja" import hshbase with context %}
{% if hshbase.snmpd %}
{% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu' %}
hsh_snmpd_installed:
pkg.installed:
- pkgs: [snmpd, snmp-mibs-downloader]
/etc/snmp/snmpd.conf:
file.managed:
- source: salt://hshbase/snmpd/files/snmpd.conf
- mode: 644
- user: root
- group: root
/etc/default/snmpd:
file.managed:
- source: salt://hshbase/snmpd/files/default.snmpd
- mode: 644
- user: root
- group: root
hsh_snmpd_service_running:
service.running:
- name: snmpd
- reload: True
- enable: True
- watch:
- file: /etc/snmp/snmpd.conf
- file: /etc/default/snmpd
- require:
- file: /etc/snmp/snmpd.conf
- file: /etc/default/snmpd
- pkg: hsh_snmpd_installed
{% endif %}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment