Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
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
Container registry
Model registry
Operate
Environments
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
icinga-checks
Commits
c708f1e2
Commit
c708f1e2
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update php-fpm check - speed values in items per min instead of sec
parent
e9d2d4d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_php-fpm-status
+6
-6
6 additions, 6 deletions
check_php-fpm-status
with
6 additions
and
6 deletions
check_php-fpm-status
+
6
−
6
View file @
c708f1e2
...
...
@@ -73,7 +73,7 @@ The check fetches several counters from php-fm-status page.
It shows a short status in a single line and then the dump of the
status page.
For performance data it e
a
chos:
For performance data it echos:
php-fpm-active count of active workers
php-fpm-maxactive max active processes (sum of idle + running + reading)
...
...
@@ -82,8 +82,8 @@ For performance data it eachos:
php-fpm-reading count of workers in state "Reading headers"
php-fpm-queue count of items in the queue
php-fpm-maxqueue max listen queue
php-fpm-slow slow requests per
second
(since last execution of this check)
php-fpm-speed requests per
second
(since last execution of this check)
php-fpm-slow slow requests per
minute
(since last execution of this check)
php-fpm-speed requests per
minute
(since last execution of this check)
SYNTAX:
`basename
$0
` [-u URL]
...
...
@@ -143,7 +143,7 @@ fi
# --- handled requests per sec
typeset
-i
iConn
=
$(
_getvalue
"accepted conn"
)
typeset
-i
iSpeed
=
$(
ph.perfdeltaspeed
"fpm-accepted"
$iConn
)
typeset
-i
iSpeed
=
$(
ph.perfdeltaspeed
"fpm-accepted"
$iConn
"min"
)
# --- count slots
typeset
-i
iActive
=
$(
_getvalue
"active processes"
)
...
...
@@ -154,7 +154,7 @@ typeset -i iIdle=$( _getvalue "idle processes")
typeset
-i
iQueue
=
$(
_getvalue
"listen queue len"
)
typeset
-i
iMaxQueue
=
$(
_getvalue
"max listen queue"
)
typeset
-i
iSlowTotal
=
$(
_getvalue
"slow requests"
)
typeset
-i
iSlow
=
$(
ph.perfdeltaspeed
"fpm-slow"
$iSlowTotal
)
typeset
-i
iSlow
=
$(
ph.perfdeltaspeed
"fpm-slow"
$iSlowTotal
"min"
)
typeset
-i
iMaxChilds
=
$(
_getvalue
"max children reached"
)
...
...
@@ -186,7 +186,7 @@ fi
# ----------------------------------------------------------------------
# output
# ----------------------------------------------------------------------
ph.status
"PHP-FPM: active:
$iActive
(max:
$iMaxActive
) .. idle workers:
$iIdle
.. queue:
$iQueue
(max:
$iMaxQueue
) .. speed:
$iSpeed
req per
sec
... slow:
$iSlow
req per
sec
(total:
$iSlowTotal
)"
ph.status
"PHP-FPM: active:
$iActive
(max:
$iMaxActive
) .. idle workers:
$iIdle
.. queue:
$iQueue
(max:
$iMaxQueue
) .. speed:
$iSpeed
req per
min
... slow:
$iSlow
req per
min
(total:
$iSlowTotal
)"
echo
Worker states: Running:
$iWorkerRunning
.. Reading headers:
$iWorkerReading
.. Idle:
$iWorkerIdle
echo
hint
=
"!! IMPORTANT !! Any non-OK status is still experimmental."
...
...
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