Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mlazarov/supervisord-monitor
Supervisord Monitoring Tool
https://github.com/mlazarov/supervisord-monitor
Last synced: 10 days ago
JSON representation
Supervisord Monitoring Tool
- Host: GitHub
- URL: https://github.com/mlazarov/supervisord-monitor
- Owner: mlazarov
- Created: 2013-10-02T08:04:05.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T21:40:18.000Z (almost 6 years ago)
- Last Synced: 2024-07-31T12:07:35.393Z (3 months ago)
- Language: PHP
- Size: 871 KB
- Stars: 945
- Watchers: 50
- Forks: 224
- Open Issues: 11
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
- favorite-link - Supervisord 监控工具。
README
# Supervisord Multi Server Monitoring Tool
![Screenshot](https://raw.github.com/mlazarov/supervisord-monitor/master/supervisord-monitor.png)
## Features
* Monitor unlimited supervisord servers and processes
* Start/Stop/Restart process
* Read stderr log
* Start new Redmine ticket when stderr occurs
* Sound alert when stderr occurs
* Mute sound alerts (after some time auto resume)
* Monitor process uptime status## Install
1.Clone supervisord-monitor to your vhost/webroot:
```
git clone https://github.com/mlazarov/supervisord-monitor.git
```2.Copy application/config/supervisor.php.example to application/config/supervisor.php
```
cp supervisord-monitor/application/config/supervisor.php.example supervisord-monitor/application/config/supervisor.php
```3.Enable/Uncomment inet_http_server (found in supervisord.conf) for all your supervisord servers.
```ini
[inet_http_server]
port=*:9001
username="yourusername"
password="yourpass"
```
Do not forget to restart supervisord service after changing supervisord.conf4.Edit supervisord-monitor configuration file and add all your supervisord servers
```
vim application/config/supervisor.php
```5.Configure your web server to point one of your vhosts to 'public_html' directory.
6.Open web browser and enter your vhost url.## Redmine integration
1.Open configuration file:
```
vim application/config/supervisor.php
```
2.Change this lines with your redmine url and auto assigne id:```php
// Path to Redmine new issue url
$config['redmine_url'] = 'http://redmine.url/path_to_new_issue_url';
// Default Redmine assigne ID
$config['redmine_assigne_id'] = '69';
```## Troubleshooting
```
Did not receive a '200 OK' response from remote server.
```
Having this messages in most cases means that Supervisord Monitoring tools does not have direct network access to the Supervisord RPC2 http interface. Check your firewall and network conectivity.---
```
Did not receive a '200 OK' response from remote server. (HTTP/1.0 401 Unauthorized)
```
Having `401 Unauthorized` means that you have connection between Supervisord Monitoring tool and Supervisord but the username or password are wrong.---
```
UNKNOWN_METHOD
```
Having this message means that your supervisord service doesn't have rpc interface enabled (only for v3+ of Supervisord).
To enable the rpc interface add this lines to the configuration file:*From the Supervisord Docs*
In the sample config file, there is a section which is named [rpcinterface:supervisor]. By default it looks like the following:
```
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
```The [rpcinterface:supervisor] section must remain in the configuration for the standard setup of supervisor to work properly.
If you don’t want supervisor to do anything it doesn’t already do out of the box, this is all you need to know about this type of section.For more information go to the offitial Supervisord Configuration Docs:
http://supervisord.org/configuration.html#rpcinterface-x-section-settings---
```
The requested URL /control/ ... was not found on this server.
```If you are getting this error on every action (stop, start, restart etc) most probably your web server isn't respecting the .htaccess file found in `public_html` directory.
To test this you can add `AllowOverride All` config to the httpd.conf (if you are using Apache) or to add the rules from the .htaccess file to the httpd.conf file.## Thanks to ##
- [stvnwrgs](https://github.com/stvnwrgs) - added authentication functionality to supervisord monitor
- [rk295](https://github.com/rk295) - added handling of non authenticated servers
- [All Contributors](https://github.com/mlazarov/supervisord-monitor/contributors)## Who uses Supervisord Monitor? ##
[EasyWpress - wordpress hosting company](http://easywpress.com)
If you've used Supervisord Monitor Tool send me email to [email protected] to add your project/company to this list.
## License
MIT License
Copyright (C) 2013 Martin Lazarov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.