| .. | ||
| check.business.ru_monitor.py | ||
| README.md | ||
check.business.ru_monitor
check.business.ru_monitor.py
Description:
Print today's status summary.
Dependencies:
- Python 3 (tested version 3.11.2 on Debian GNU/Linux 12)
- requests Python 3 module (tested version 2.32.3)
| PARAMETERS | DESCRIPTION | DEFAULT |
|---|---|---|
| --app_id | https://check.business.ru/settings/integrations | REQUIRED |
| --secret | https://check.business.ru/settings/integrations | REQUIRED |
| [--json] | print in json fromat | None |
Example usage without download
# run with curl
python3 <(curl -s https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/check.business.ru_monitor/check.business.ru_monitor.py) --app_id APP_ID --secret SECRET
# run with wget
python3 <(wget -qO- https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/check.business.ru_monitor/check.business.ru_monitor.py) --app_id APP_ID --secret SECRET
Example usage in terminal
# download
sudo wget https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/check.business.ru_monitor/check.business.ru_monitor.py -O /usr/local/bin/check.business.ru_monitor.py
sudo chmod +x /usr/local/bin/check.business.ru_monitor.py
# run
check.business.ru_monitor.py --app_id APP_ID --secret SECRET
Example usage in Zabbix
# download
sudo wget https://git.hmp.today/pavel.muhortov/utils/raw/branch/master/check.business.ru_monitor/check.business.ru_monitor.py -O /usr/lib/zabbix/externalscripts/check.business.ru_monitor.py
sudo chmod +x /usr/lib/zabbix/externalscripts/check.business.ru_monitor.py
Zabbix Server - Configuration - Templates - Import - check.business.ru.yaml
Zabbix Server - Configuration - Hosts - "hostname" - Templates - check.business.ru
Zabbix Server - Configuration - Hosts - "hostname" - Macros - Inherited and host macros
| MACRO | VALUE |
|---|---|
| {$APP_ID} | APP_ID |
| {$SECRET} | SECRET |