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
aa326192
Commit
aa326192
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update column as values
parent
a5633150
No related branches found
No related tags found
1 merge request
!93
update column as values
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_psqlserver
+15
-15
15 additions, 15 deletions
check_psqlserver
with
15 additions
and
15 deletions
check_psqlserver
+
15
−
15
View file @
aa326192
...
...
@@ -238,28 +238,28 @@ case "${sMode}" in
"conflicts"
)
descr
=
"Detected conflicts (from pg_stat_database_conflicts)"
renderCounters
"select
\
sum(confl_tablespace) as confl
icts-
tablespace,
\
sum(confl_lock) as confl
icts-
lock,
\
sum(confl_snapshot) as confl
icts-
snapshot,
\
sum(confl_bufferpin) as confl
icts-
bufferpin,
\
sum(confl_deadlock) as confl
icts-
deadlock
\
sum(confl_tablespace) as confl
_
tablespace,
\
sum(confl_lock) as confl
_
lock,
\
sum(confl_snapshot) as confl
_
snapshot,
\
sum(confl_bufferpin) as confl
_
bufferpin,
\
sum(confl_deadlock) as confl
_
deadlock
\
from pg_stat_database_conflicts "
;;
"dbrows"
)
descr
=
"Count of database row actions (from pg_stat_database)"
renderCounters
"select
\
sum(tup_returned) as tup
-
returned,
\
sum(tup_fetched) as tup
-
fetched,
\
sum(tup_inserted) as tup
-
inserted,
\
sum(tup_updated) as tup
-
updated,
\
sum(tup_deleted) as tup
-
deleted
\
sum(tup_returned) as tup
_
returned,
\
sum(tup_fetched) as tup
_
fetched,
\
sum(tup_inserted) as tup
_
inserted,
\
sum(tup_updated) as tup
_
updated,
\
sum(tup_deleted) as tup
_
deleted
\
from pg_stat_database "
;;
"diskblock"
)
descr
=
"Count of diskblocks physically read or coming from cache (from pg_stat_database)"
renderCounters
"select
\
sum(blks_read) as blks
-
read,
\
sum(blks_hit) as blks
-
hit
\
sum(blks_read) as blks
_
read,
\
sum(blks_hit) as blks
_
hit
\
from pg_stat_database "
;;
"problems"
)
...
...
@@ -268,8 +268,8 @@ case "${sMode}" in
sum(conflicts) as conflicts,
\
sum(deadlocks) as deadlocks,
\
sum(checksum_failures) as checksumfailures,
\
sum(temp_files) as temp
-
files,
\
sum(temp_bytes) as temp
-
bytes
\
sum(temp_files) as temp
_
files,
\
sum(temp_bytes) as temp
_
bytes
\
from pg_stat_database "
;;
"replication"
)
...
...
@@ -279,7 +279,7 @@ case "${sMode}" in
out
=
""
else
descr
=
"status (from pg_stat_replication)"
out
=
"
${
_out
}${
NL
}
"
out
=
$(
echo
"
${
_out
}${
NL
}
"
|
tr
'|'
':'
)
fi
;;
...
...
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