Create .env file in repo root directory with the following variables:
ZABBIX_API_URL=https://zabbix.it.umich.edu/api_jsonrpc.php
ZABBIX_API_token=12345faketoken67890
Examples:
- Does the input host have a maintenance window?
- Print all current maintenance windows
- Print all hosts in maintenance
Run:
python maintenance.get.py EXAMPLE_NUMBER
python maintenance.get.py 3
or
python maintenance.get.py --all
Examples:
- Get last time for zabbix agent ping
- Script adds hosts to hostgroups based on csv input
- Give a csv containing hostnames and whether prod or non-prod
- Script creates new hosts in Zabbix that are monitored by a proxy group
- Hosts to add and hostgroup to add them to are defined in the python file