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
25c2fc1e
Commit
25c2fc1e
authored
2 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
added/ testet apacheprocesses
parent
6b5f3e81
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
TODO.md
+7
-5
7 additions, 5 deletions
TODO.md
tests/200_apacheprocesses.php
+7
-0
7 additions, 0 deletions
tests/200_apacheprocesses.php
tests/configs/apacheprocesses.ini
+21
-0
21 additions, 0 deletions
tests/configs/apacheprocesses.ini
with
35 additions
and
5 deletions
TODO.md
+
7
−
5
View file @
25c2fc1e
...
@@ -2,10 +2,6 @@
...
@@ -2,10 +2,6 @@
was ich so sehe ...
was ich so sehe ...
✅ Slack-Notifikation: statt Parsing-mechanismus eines Strings --> JSON in der INI schreiben
✅
`--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
⬜ 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.)
⬜ optional: dynamische Parameter aus Umgebungsvariablen / Parsing aus Configs (was immer geht: INI per hooks/template/ file generieren.)
...
@@ -20,7 +16,7 @@ was ich so sehe ...
...
@@ -20,7 +16,7 @@ was ich so sehe ...
⬜ für alle Checks einen Test schreiben
⬜ für alle Checks einen Test schreiben
⬜
ApacheProcesses
✅
ApacheProcesses
✅ Cert --> Hostname bei Wildcard-Zertifikat wird nicht erkannt
✅ Cert --> Hostname bei Wildcard-Zertifikat wird nicht erkannt
✅ Diskfree --> preg_replace hat den Integer Wert noch geholt
✅ Diskfree --> preg_replace hat den Integer Wert noch geholt
✅ Exec
✅ Exec
...
@@ -40,6 +36,8 @@ was ich so sehe ...
...
@@ -40,6 +36,8 @@ was ich so sehe ...
⬜ group testen
⬜ group testen
⬜ worstresult Option testen
## Done
## Done
✅ PHP compiliert zum Binary
✅ PHP compiliert zum Binary
...
@@ -48,6 +46,10 @@ was ich so sehe ...
...
@@ -48,6 +46,10 @@ was ich so sehe ...
✅ Binary startet auf einen Nicht-PHP-System
✅ Binary startet auf einen Nicht-PHP-System
✅ Slack-Notifikation: statt Parsing-mechanismus eines Strings --> JSON in der INI schreiben
✅
`--ini=<FILE>`
bei relativem Pfad ist relativ zum Binary --> nicht ins eigene Verzeichnis wechseln
---
---
Legende:
Legende:
...
...
This diff is collapsed.
Click to expand it.
tests/200_apacheprocesses.php
0 → 100644
+
7
−
0
View file @
25c2fc1e
#!/usr/bin/env php
<?php
echo
"
WHAT: Run check sqlite connect
"
;
_exec
(
"
$AMCLI
--ini='"
.
__DIR__
.
"/configs/apacheprocesses.ini'"
);
This diff is collapsed.
Click to expand it.
tests/configs/apacheprocesses.ini
0 → 100644
+
21
−
0
View file @
25c2fc1e
; =======================================================================
;
; APPMONITOR CLI CLIENT
;
; for the checks see its parameters
; <https://os-docs.iml.unibe.ch/appmonitor/PHP_client/Plugins/Checks/index.html>
;
; =======================================================================
; -----------------------------------------------------------------------
; CHECKS
; -----------------------------------------------------------------------
["Apache status"]
description
=
"Worker status of Apache httpd"
function
=
"ApacheProcesses"
params
=
worstresult
=
0
; -----------------------------------------------------------------------
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