Statusengine Worker is a PHP application that will consume the events provided by the Statusengine Broker Module. All status data are save in a database (CrateDB, MySQL or Redis) In addition, the Worker is able to parse and process performance data to store them in a time series databases like Graphite.
For External Command Routing, it is required to run Statusengine Worker on the same node as your monitoring core is running.
Visit the documentation for more information about Statusengine Worker
- PHP's composer
- CrateDB or MySQL
- Redis
- php >= 5.5.9
- Ubuntu 14.04, 16.04, 18.04, Debian 9 or CentOS 7.5
apt-get install git php-cli php-zip php-redis redis-server php-mysql php-json php-gearman php-bcmath php-mbstring unzip
mkdir -p /opt/statusengine
cd /opt/statusengine
git clone https://github.com/statusengine/worker.git worker
cd /opt/statusengine/worker
chmod +x bin/*
composer install
cp worker/etc/config.yml.example worker/etc/config.yml
Change node_name
to a unique name in your monitoring cluster!
Statusengine Worker could also read the configuration out of environment variables. This can be handy if you want to run Statusengine Worker inside of Docker. See the list of environment variables for more information.
php bin/Console.php cluster add --nodename NODENAME
/opt/statusengine/worker/bin/StatusengineWorker.php
If you are behind a proxy, set no_proxy=127.0.0.1,localhost
in your /etc/environment
or make sure to set disable_http_proxy=1
in config.yml
or export SE_DISABLE_HTTP_PROXY=1
/opt/statusengine/worker/bin/bin/Console.php statistics --watch 5
php bin/Console.php cluster delete --nodename NODENAME
php bin/Console.php cluster
GNU General Public License v3.0
Statusengine Worker
Copyright (C) 2016-2017 Daniel Ziegler
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.