-
-
Save pduersteler/537084fb6de49cd79df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /srv/salt/zabbix/agent.sls | |
zabbix.agent: | |
pkg.installed: | |
- pkgs: | |
- zabbix-agent | |
service.running: | |
- name: zabbix-agent | |
- enable: True | |
- reload: True | |
- watch: | |
- pkg: zabbix-agent | |
- file: /etc/zabbix/zabbix_agentd.conf | |
/etc/zabbix/zabbix_agentd.conf: | |
file.managed: | |
- source: salt://zabbix/files/zabbix_agentd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /srv/salt/zabbix/init.sls | |
include: | |
- repos.dotdeb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo salt '*' state.highstate | |
---------- | |
ID: zabbix.agent | |
Function: service.running | |
Name: zabbix_agentd | |
Result: False | |
Comment: The following requisites were not found: | |
watch: | |
pkg: zabbix-agent | |
$ sudo service zabbix-agent status | |
[ ok ] zabbix_agentd is running. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment