berriart / zabbix-maintenance
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP script to add/remove Maintenance mode in Zabbix
v0.0.3
2017-05-02 15:21 UTC
Requires
- php: >=5.3.9
- guzzlehttp/guzzle: ~6.0
- symfony/console: ~2.6|~3.0
Requires (Dev)
- symfony/finder: ~2.6|~3.0
This package is not auto-updated.
Last update: 2022-11-11 14:02:54 UTC
README
PHP script to add/remove Maintenance mode in Zabbix (using a maintenance group).
Requirements
- PHP 5.3.9 and up.
That's all!
Installation
To install zabbix-maintenance-php download zabbixmaintenance.phar archive and move zabbixmaintenance.phar to your bin directory and make it executable.
curl -LO https://github.com/artberri/zabbix-maintenance-php/releases/download/v0.0.2/zabbixmaintenance.phar sudo mv zabbixmaintenance.phar /usr/local/bin/zabbixmaintenance sudo chmod +x /usr/local/bin/zabbixmaintenance
Or via composer:
composer require berriart/zabbix-maintenance
Documentation
See the command options running:
zabbixmaintenance -h
Or if you installed it via composer:
./vendor/bin/zabbixmaintenance -h
Usage example
Maintenance on:
zabbixmaintenance on -U "http://zabbix.yourdomain.com" -u zabbixuser -p zabbixuser -g maintenance-group -H host-to-add-in.maintenance.com -s 5
Maintenance off:
zabbixmaintenance off -U "http://zabbix.yourdomain.com" -u zabbixuser -p zabbixuser -g maintenance-group -H host-to-add-in.maintenance.com -s 5
License
Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php