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

add port tcp check (requires php-sockets module

parent c62bcb88
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ was ich so sehe ... ...@@ -28,7 +28,7 @@ was ich so sehe ...
✅ PdoConnect ✅ PdoConnect
✅ Phpmodules -> funcktioniert formal, aber bei Nicht-PHP-Apps nicht relevant; getestet werden die im Binary eincomoilierten Module ✅ Phpmodules -> funcktioniert formal, aber bei Nicht-PHP-Apps nicht relevant; getestet werden die im Binary eincomoilierten Module
✅ Ping ✅ Ping
PortTcp PortTcp -> sockets Modul im Binary hinzugefügt.
⬜ Simple ⬜ Simple
⬜ SqliteConnect ⬜ SqliteConnect
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
$php_version="8.3"; $php_version="8.3";
// extensions - see https://static-php.dev/en/guide/extensions.html // extensions - see https://static-php.dev/en/guide/extensions.html
$php_libs="mysqli,openssl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,zlib"; $php_libs="mysqli,openssl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,sockets,zlib";
$myos=strtolower(PHP_OS); $myos=strtolower(PHP_OS);
$myarchitecture="x86_64"; $myarchitecture="x86_64";
......
#!/usr/bin/env php
<?php
echo "
WHAT: Run check porttcp
";
_exec("$AMCLI --ini='".__DIR__."/configs/porttcp.ini'");
; =======================================================================
;
; APPMONITOR CLI CLIENT
;
; for the checks see its parameters
; <https://os-docs.iml.unibe.ch/appmonitor/PHP_client/Plugins/Checks/index.html>
;
; =======================================================================
; -----------------------------------------------------------------------
; CHECKS
; -----------------------------------------------------------------------
["Ping"]
description="Check port 443 on www.example.com"
function="Porttcp"
params='{
"port": 443,
"host": "www.example.com"
}'
; -----------------------------------------------------------------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment