This file contains hidden or 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
#!/bin/bash | |
# Defina as variáveis antes do sudo | |
IP="${1}" | |
HOSTNAME="${2}" | |
# Elevar privilégios para root | |
sudo IP="$IP" HOSTNAME="$HOSTNAME" bash <<'EOF' | |
# Mudar para o diretório home do usuário |
This file contains hidden or 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
#!/usr/bin/python3 | |
import requests | |
import json | |
import sys | |
# Configurações da API do Zabbix | |
url = 'https://zabbix.domain.com.br/api_jsonrpc.php' | |
headers = {'Content-Type': 'application/json-rpc'} | |
auth_token = '1256142' |