Skip to content

Instantly share code, notes, and snippets.

@a1ad
a1ad / configure-zabbix.yml
Created July 25, 2022 21:15 — forked from gustavomcarmo/configure-zabbix.yml
Example of Ansible playbook for installing and configuring the Zabbix agent in a host and then creating the host in a Zabbix server.
---
- name: Install the Zabbix agent
yum:
name: http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-agent-3.4.8-1.el7.x86_64.rpm
- name: Configure the Zabbix agent
replace:
path: /etc/zabbix/zabbix_agentd.conf
regexp: '{{item.regexp}}'
replace: '{{item.replace}}'
with_items:
@a1ad
a1ad / SimpleTcpRedirector.py
Last active June 6, 2024 08:11 — forked from sivachandran/SimpleTcpRedirector.py
A simple TCP redirector in python
#!/usr/bin/env python
# JR: made some very minor changes for python3
import socket
import threading
import select
import sys
terminateAll = False