Files
fedora-infra_ansible/roles/base/files/postfix/zabbix-check-script
Greg Sutcliffe a8d00abea1 Zabbix: Add monitoring to the base/postfix role
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>
2025-09-24 15:16:02 +01:00

7 lines
104 B
Bash

#!/bin/bash
# Lets generate random data for now
min=10
max=20
echo $((RANDOM % (max - min + 1) + min))