https://github.com/undercloud/beholder
linux process monitor
https://github.com/undercloud/beholder
Last synced: 11 months ago
JSON representation
linux process monitor
- Host: GitHub
- URL: https://github.com/undercloud/beholder
- Owner: undercloud
- Created: 2016-03-27T10:57:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T08:52:34.000Z (over 8 years ago)
- Last Synced: 2025-01-31T00:18:20.375Z (about 1 year ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beholder
linux process monitor
## installation
`composer require unercloud/beholder=dev-master`
## configuration
### screen
Check if `screen` and `pidof` installed, if not install it
### crontab
Add crontab job (default 2 min)
1) open terminal
2) type `crontab -e`
3) add line `/2 * * * * /usr/bin/php /path/to/beholder/index.php > /dev/null 2>&1`
### monitor
Open `/path/to/beholder/Queue.php` and add process for monitoring:
```PHP
[
'apache2' => '/usr/sbin/apache2ctl -k start'
],
//section for jobs running in screen
'screen' => [
'nodeserver' => 'screen -AdmS nodeserver node /path/to/script.js'
]
];
?>
```
### logs
Open `/path/to/beholder/Settings.php` and add path to logs in `logpath` section.