-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zabbix_agent] Add support for Zabbix Agent 2 (Go)
(cherry picked from commit 8dfd729)
- Loading branch information
Showing
6 changed files
with
87 additions
and
36 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
--- | ||
# Copyright (C) 2021 Maciej Delmanowski <drybjed@gmail.com> | ||
# Copyright (C) 2021 DebOps <https://debops.org/> | ||
# Copyright (C) 2021-2022 Maciej Delmanowski <drybjed@gmail.com> | ||
# Copyright (C) 2021-2022 DebOps <https://debops.org/> | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
- name: Check zabbix-agent and restart | ||
command: '/usr/sbin/zabbix_agentd --print' | ||
when: zabbix_agent__flavor == 'C' | ||
notify: [ 'Restart zabbix-agent' ] | ||
|
||
- name: Check zabbix-agent2 and restart | ||
command: '/usr/sbin/zabbix_agent2 --print' | ||
when: zabbix_agent__flavor == 'Go' | ||
notify: [ 'Restart zabbix-agent2' ] | ||
|
||
- name: Restart zabbix-agent | ||
service: | ||
name: 'zabbix-agent' | ||
state: 'restarted' | ||
|
||
- name: Restart zabbix-agent2 | ||
service: | ||
name: 'zabbix-agent2' | ||
state: 'restarted' |
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
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
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
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