Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Appmonitor CLI client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Appmonitor CLI client
Commits
4af23a29
Commit
4af23a29
authored
2 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add port tcp check (requires php-sockets module
parent
c62bcb88
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
TODO.md
+1
-1
1 addition, 1 deletion
TODO.md
inc_vars.php
+1
-1
1 addition, 1 deletion
inc_vars.php
tests/200_porttcp.php
+7
-0
7 additions, 0 deletions
tests/200_porttcp.php
tests/configs/porttcp.ini
+23
-0
23 additions, 0 deletions
tests/configs/porttcp.ini
with
32 additions
and
2 deletions
TODO.md
+
1
−
1
View file @
4af23a29
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
inc_vars.php
+
1
−
1
View file @
4af23a29
...
@@ -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"
;
...
...
This diff is collapsed.
Click to expand it.
tests/200_porttcp.php
0 → 100644
+
7
−
0
View file @
4af23a29
#!/usr/bin/env php
<?php
echo
"
WHAT: Run check porttcp
"
;
_exec
(
"
$AMCLI
--ini='"
.
__DIR__
.
"/configs/porttcp.ini'"
);
This diff is collapsed.
Click to expand it.
tests/configs/porttcp.ini
0 → 100644
+
23
−
0
View file @
4af23a29
; =======================================================================
;
; 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"
}'
; -----------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment