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

update tests

parent f712d225
No related branches found
No related tags found
No related merge requests found
......@@ -18,8 +18,8 @@ was ich so sehe ...
✅ Exec
⬜ File --> "exists": false meldet bei Test einer nicht existierenden Datei fälschlicherweise einen Fehler
✅ Hello
HttpContent
Loadmeter
HttpContent
Loadmeter
⬜ MysqlConnect
⬜ PdoConnect
⬜ Phpmodules
......
......@@ -2,6 +2,6 @@
<?php
echo "
WHAT: Run check cert
WHAT: Run check diskfree
";
_exec("$AMCLI --ini='".__DIR__."/configs/cert.ini'");
_exec("$AMCLI --ini='".__DIR__."/configs/diskfree.ini'");
......@@ -2,6 +2,6 @@
<?php
echo "
WHAT: Run check Simple
WHAT: Run check Hello
";
_exec("$AMCLI --ini='".__DIR__."/configs/simple.ini'");
_exec("$AMCLI --ini='".__DIR__."/configs/hello.ini'");
#!/usr/bin/env php
<?php
echo "
WHAT: Run check httpcontent
";
_exec("$AMCLI --ini='".__DIR__."/configs/httpcontent.ini'");
#!/usr/bin/env php
<?php
echo "
WHAT: Run check loadmeter
";
_exec("$AMCLI --ini='".__DIR__."/configs/loadmeter.ini'");
; =======================================================================
;
; APPMONITOR CLI CLIENT
;
; for the checks see its parameters
; <https://os-docs.iml.unibe.ch/appmonitor/PHP_client/Plugins/Checks/index.html>
;
; =======================================================================
; -----------------------------------------------------------------------
; CHECKS
; -----------------------------------------------------------------------
["Http content"]
description="Check word 'IML' in IML website"
function="HttpContent"
params='{
"url": "https://www.iml.unibe.ch/",
"bodycontains": "IML"
}'
; -----------------------------------------------------------------------
; =======================================================================
;
; APPMONITOR CLI CLIENT
;
; for the checks see its parameters
; <https://os-docs.iml.unibe.ch/appmonitor/PHP_client/Plugins/Checks/index.html>
;
; =======================================================================
; -----------------------------------------------------------------------
; CHECKS
; -----------------------------------------------------------------------
["Load"]
description="Loadmeter"
function="Loadmeter"
params='{
"warning": 3,
"error": 5
}'
; -----------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment