-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
194 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
final class MySQLutf8mb4 extends AbstractMigration | ||
{ | ||
public function change(): void | ||
{ | ||
// Check if the database is MySQL | ||
$databaseType = $this->getAdapter()->getOption('adapter'); | ||
if ($databaseType === 'mysql') { | ||
// Apply utf8mb4 character set to the database | ||
$this->execute("ALTER DATABASE `" . $this->getAdapter()->getOption('name') . "` CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci"); | ||
|
||
// Apply utf8mb4 character set to all tables | ||
$tables = $this->fetchAll("SHOW TABLES"); | ||
foreach ($tables as $table) { | ||
$tableName = $table[array_keys($table)[0]]; | ||
$this->execute("ALTER TABLE `{$tableName}` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
multiflexi-trigger: multiflexi-trigger.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Command Line Utilities | ||
====================== | ||
|
||
MultiFlexi provides several command line utilities to manage and interact with the system. Below is a list of available utilities and their descriptions: | ||
|
||
1. **multiflexi-app2json** | ||
- Converts application configuration to JSON format. | ||
|
||
2. **multiflexi-cli** | ||
- Command line interface for interacting with MultiFlexi. | ||
|
||
3. **multiflexi-executor** | ||
- Executes scheduled jobs and tasks. | ||
|
||
4. **multiflexi-job2env** | ||
- Export job configuration as environment variables file. | ||
|
||
5. **multiflexi-job2script** | ||
- Export job configuration as a script. | ||
|
||
6. **multiflexi-json-app-remover** | ||
- Removes applications based on JSON configuration. | ||
|
||
7. **multiflexi-json2app** | ||
- Converts JSON configuration to application configuration. | ||
|
||
8. **multiflexi-json2apps** | ||
- Converts multiple JSON configurations to application configurations. | ||
|
||
9. **multiflexi-phinx** | ||
- Perform database migrations using Phinx. | ||
|
||
10. **multiflexi-probe** | ||
- Probes the system for status and health checks. | ||
|
||
11. **multiflexi-scheduler** | ||
- Schedules jobs and tasks for execution. | ||
|
||
12. **multiflexi-trigger** | ||
- Triggers specific actions or jobs. | ||
|
||
13. **multiflexi-zabbix-lld** | ||
- Generates Zabbix Low-Level Discovery (LLD) data. | ||
|
||
14. **multiflexi-zabbix-lld-actions** | ||
- Manages Zabbix LLD actions. | ||
|
||
15. **multiflexi-zabbix-lld-company** | ||
- Manages Zabbix LLD company data. | ||
|
||
16. **multiflexi-zabbix-lld-tasks** | ||
- Manages Zabbix LLD tasks. | ||
|
||
Each utility serves a specific purpose and can be used to automate and manage various aspects of the MultiFlexi system. For detailed usage and options, refer to the respective utility's help command. | ||
|
||
.. image:: trigger-manpage.png | ||
:alt: Trigger Manpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.. _configuration: | ||
|
||
Configuration | ||
============= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. contents:: | ||
|
||
Each application in MultiFlexi defines its own configuration fields. This is of a specific type and has additional properties. | ||
|
||
Configuration Fields | ||
-------------------- | ||
|
||
- Configuration ``Field Type`` - one of the following: | ||
- **Text**: A single line text input. | ||
- **Number**: A numeric input. | ||
- **Date**: A date input. | ||
- **Email**: An email input. | ||
- **Password**: A password input. | ||
- **Checkbox**: A yes/no checkbox. | ||
- **File**: A file upload input. | ||
- **Directory**: A directory path input. | ||
- ``Keyword`` - The name of configuration field (capital letters) | ||
- ``Default Value`` - (used unless otherwise specified) | ||
- Configuration ``Field Description`` | ||
- ``required`` yes/no | ||
|
||
.. image:: appconfigfieldseditor.png | ||
:alt: Configuration fields of an application in an editor | ||
|
||
|
||
JSON Configuration | ||
------------------ | ||
|
||
To configure the MultiFlexi project, you can also create a configuration file (e.g., `config.yaml`) with the necessary fields. Below is an example configuration file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
Job | ||
=== | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. contents:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
RunTemplate | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. contents:: | ||
|
||
|
||
|
||
The `RunTemplate` is a key component of the MultiFlexi application. It allows users to define environment and frequency for running an application. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
Usage | ||
===== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. contents:: | ||
|
||
|
||
.. _installation: | ||
|
||
Installation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,9 @@ Zabbix Integration | |
================== | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
.. contents:: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters