Rework portfolio around Linux operations, Zabbix monitoring, migration validation, and ELK/Grafana log observability. Add AAP-style LVM resize workflow, Zabbix server/proxy/agent automation assets, Linux/AIX monitoring templates, and updated validation CI.
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
---
|
||||
zabbix_agent_server: zbx-proxy-bank01
|
||||
zabbix_agent_server_active: zbx-proxy-bank01
|
||||
zabbix_agent_hostname: "{{ inventory_hostname }}"
|
||||
zabbix_agent_mode: active
|
||||
zabbix_agent_listen_port: 10050
|
||||
zabbix_agent_include_dir: /etc/zabbix/zabbix_agentd.d
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: Validate agent mode
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- zabbix_agent_mode in ["active", "passive"]
|
||||
fail_msg: "zabbix_agent_mode must be active or passive"
|
||||
|
||||
- name: Create Zabbix agent include directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ zabbix_agent_include_dir }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Render Zabbix agent configuration example
|
||||
ansible.builtin.template:
|
||||
src: zabbix_agentd.conf.j2
|
||||
dest: /etc/zabbix/zabbix_agentd.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Render custom OS check keys
|
||||
ansible.builtin.template:
|
||||
src: os_checks.conf.j2
|
||||
dest: "{{ zabbix_agent_include_dir }}/os_checks.conf"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Report agent check model
|
||||
ansible.builtin.debug:
|
||||
msg:
|
||||
host: "{{ zabbix_agent_hostname }}"
|
||||
mode: "{{ zabbix_agent_mode }}"
|
||||
server: "{{ zabbix_agent_server }}"
|
||||
server_active: "{{ zabbix_agent_server_active }}"
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
UserParameter=os.fs.discovery,echo '{"data":[]}'
|
||||
UserParameter=os.cpu.runqueue,uptime
|
||||
UserParameter=os.net.tcp_established,ss -tan state established | wc -l
|
||||
UserParameter=os.process.count[*],pgrep -fc "$1"
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Server={{ zabbix_agent_server }}
|
||||
ServerActive={{ zabbix_agent_server_active }}
|
||||
Hostname={{ zabbix_agent_hostname }}
|
||||
ListenPort={{ zabbix_agent_listen_port }}
|
||||
Include={{ zabbix_agent_include_dir }}/*.conf
|
||||
Reference in New Issue
Block a user