istvan0304/usage

Ha konténerben lévő apache szálak száma nagyobb a megadott értéknél, vagy a memória használat nagyobb a megadott értéknél vagy php vagy mysql konténer újraindult

Installs: 214

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Type:yii2-extension

2.0.1 2021-06-21 12:29 UTC

This package is auto-updated.

Last update: 2024-05-21 20:08:24 UTC


README

A nagios számára rak le egy text fájlt a megadott helyre amit a nagios figyel.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist istvan0304/usage "*"

or add

"istvan0304/usage": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

Set in config file (console.php)

'modules' => [
    'container_usage' => [
            'class' => 'istvan0304\usage\Module',                        
            'nagiosFilePath'  => '/nagios',
            'nagiosFileName'  => 'watch.txt',
            'watchThreads'  => true,
            'memoryWatch'  => true,
            'phpContainerRebooted' => true,
            'sqlContainerRebooted' => true,
            'volumes' => []
    ]
]

Call command in cli

php yii container_usage/usage