mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
This adds an example implementation of how to add Zabbix agent
monitoring to the Postfix role
There are 5 parts
- The agent dropin file
- The (optional) script the agent will call
- A custom SELinux module to allow the agent to run it's tools
- An API call to ensure the target template exists
- An API call to add the host to the right template
See the PR for details on how this works...
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
7 lines
104 B
Bash
7 lines
104 B
Bash
#!/bin/bash
|
|
|
|
# Lets generate random data for now
|
|
min=10
|
|
max=20
|
|
echo $((RANDOM % (max - min + 1) + min))
|