Skip to content
Snippets Groups Projects
Select Git revision
  • 5a5573f6698c5d1efdae1688a4e4d1ddb09cab46
  • main default protected
  • v0.1
3 results

readme.md

Blame
  • Hahn Axel (hahn)'s avatar
    Hahn Axel (hahn) authored
    60ab4324
    History

    POC Appmonitor client cli

    :bulb: Idea: For non PHP systems we prepare a compiled binary containing all written PHP checks. Then those non PHP systems do not need to implement the checks again.

    Requirements

    • wget
    • git
    • PHP 8 cli (no webserver needed)

    Installation

    How to bring up this project to live:

    Clone this repository.

    You get this initial structure:

    .
    ├── build.php
    ├── inc_functions.php
    ├── inc_vars.php
    ├── installer.php
    ├── readme.md
    └── src
        └── amcli.php

    Run the ./installer.php to download spc and prepare the micro build.

    The newly created dirs:

    .
    ├── build            << working directory for builds
    
    ├── external
    │   ├── appmonitor   << cloned IML appmonitor project
    │   └── bin
    │       └── spc      << downloaded spc binary
    :

    Update

    Run the installer again.

    if you want to install a newer version of spc: remove the external/bin/ directory and run the installer again.

    Start over

    Remove the dirs

    • built_packages
    • build
    • external

    And this file

    • src/include_checks.php

    Then start ./installer.php and ./build.php

    Compile

    To compile src/amcli.phpto built_packages/amcli start the ./build.php