zozo / supervisor-monitor-bundle
This Bundle provides interface to monitor supervisor server processes
Package info
github.com/amikaawale/supervisor-monitor-bundle
Type:symfony-bundle
pkg:composer/zozo/supervisor-monitor-bundle
v6.0
2025-04-09 05:44 UTC
Requires
- php: >=8.1
- phpxmlrpc/phpxmlrpc: ^4.9.0
- symfony/framework-bundle: 6.*
Requires (Dev)
- roave/security-advisories: dev-latest
README
This bundle provides a way to monitor supervisor process and control those states.
- Configure multiple supervisor server services.
- Start, Stop, Restart individual or all services.
Config
-
Enable the bundle on config/bundles.php
-
Configure the bundle
# config/packages/zo_supervisor_monitor.yaml zo_supervisor_monitor: servers: local: host: http://localhost port: 9001 username: null password: null test: host: http://localhost port: 9001 username: null password: null -
Register routes for bundles
# config/routes.yaml zo_supervisor_monitor: resource: "@ZOSupervisorMonitorBundle/Resources/config/routing.yml" prefix: /supervisor/ -
Set Container
# config/services.yaml ZO\Bundle\SupervisorMonitorBundle\Controller\MonitorController: calls: - method: setContainer arguments: [ '@service_container' ]
Find the supervisor monitor page at /supervisor/monitor.
Widget
- Supervisor client is exposed as service
zo_supervisor_monitor.util.client. - Supervisor configured servers process information can be fetched as,
$client = $this->container->get('zo_supervisor_monitor.util.client'); $res = $this->client->getServersListVersion(); // $res = array('services' => $services, 'version' => $version); - Supervisor monitor view can be found at
ZOSupervisorMonitorBundle::services.html.twig. Remember to passservicesandversionvariable to the view.