Integrity : How to integrate an external code (check code for nagios)

Hello

i have an integrity alert :
Technical information

The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results

  • core
    • EXTRA_FILE
      • monitor/test.php

Raw output

Array
(
[core] => Array
(
[EXTRA_FILE] => Array
(
[monitor/test.php] => Array
(
[expected] =>
[current] => 2baed68e7a31976395f4150056f3c0d0f724299f5d51bb90bdea259c180b07fbe50c1390529ef567d93d963b51598f457be53a498d6d4e4a2ad57d7fe85e0d8e
)

            )

    )

)

i add 1 directory and one file who check site up / db access ok in php

i would like add for not use the workaround : " integrity.check.disabled’ => true,"

i think i can t use https://docs.nextcloud.org/server/9/admin_manual/issues/code_signing.html#code-signing-fix-warning-label because it s not a app for nextCloud

thank you for your help

philippe

The right way would be to submit a pull request. Then this code is reviewed and is integrated into the official NC source. Benefits: code is reviewed, you don’t need to add it each time manually, others have this feature as well. If there are too much changes or it covers only special cases, it’s better to create an app.