2017 © Pedro Peláez
 

library beholder

image

undercloud/beholder

  • Thursday, September 7, 2017
  • by undercloud
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

beholder

linux process monitor, (*1)

installation

composer require unercloud/beholder=dev-master, (*2)

configuration

screen

Check if screen and pidof installed, if not install it, (*3)

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, (*4)

monitor

Open /path/to/beholder/Queue.php and add process for monitoring:, (*5)

<?php
    return [
    // section for binary files like apache, nginx, mysql
        'pidof' => [ 
            '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., (*6)

The Versions

07/09 2017

dev-master

9999999-dev

  Sources   Download

MIT

by Avatar undercloud