Skip to content
Snippets Groups Projects
Commit 6b5f3e81 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

sqlite check added/ tested

parent 907cf05a
Branches
Tags
No related merge requests found
...@@ -6,6 +6,10 @@ was ich so sehe ... ...@@ -6,6 +6,10 @@ was ich so sehe ...
`--ini=<FILE>` bei relativem Pfad ist relativ zum Binary --> nicht ins eigene Verzeichnis wechseln `--ini=<FILE>` bei relativem Pfad ist relativ zum Binary --> nicht ins eigene Verzeichnis wechseln
⬜ handle non-JSON Response (z.B. Syntaxfehler in der INI) --> Festlegen, was die aufrufende Instanz machen soll
⬜ optional: dynamische Parameter aus Umgebungsvariablen / Parsing aus Configs (was immer geht: INI per hooks/template/ file generieren.)
⬜ Dokumentation ⬜ Dokumentation
⬜ Code aufräumen ⬜ Code aufräumen
...@@ -30,7 +34,7 @@ was ich so sehe ... ...@@ -30,7 +34,7 @@ was ich so sehe ...
✅ Ping ✅ Ping
✅ PortTcp -> sockets Modul im Binary hinzugefügt. ✅ PortTcp -> sockets Modul im Binary hinzugefügt.
✅ Simple ✅ Simple
SqliteConnect SqliteConnect
⬜ parent Option testen ⬜ parent Option testen
......
#!/usr/bin/env php
<?php
echo "
WHAT: Run check sqlite connect
";
_exec("$AMCLI --ini='".__DIR__."/configs/sqliteconnect.ini'");
; =======================================================================
;
; APPMONITOR CLI CLIENT
;
; for the checks see its parameters
; <https://os-docs.iml.unibe.ch/appmonitor/PHP_client/Plugins/Checks/index.html>
;
; =======================================================================
; -----------------------------------------------------------------------
; CHECKS
; -----------------------------------------------------------------------
["Sqliteconnect ok test"]
description="Test Sqlite database connection"
function="Sqliteconnect"
params='{
"db": "/home/axel/data/docker/ciserver/public_html/valuestore/data/versioncache.db"
}'
["Sqliteconnect fail test"]
description="Test Sqlite database failure"
function="Sqliteconnect"
params='{
"db": "/tmp/non-existing-file.sqlite3"
}'
; -----------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment