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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
8fb66b23
Commit
8fb66b23
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update message for no replication
parent
cd0a24a5
No related branches found
No related tags found
1 merge request
!99
6435 check onehost
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_psqlserver
+1
-1
1 addition, 1 deletion
check_psqlserver
with
1 addition
and
1 deletion
check_psqlserver
+
1
−
1
View file @
8fb66b23
...
@@ -304,7 +304,7 @@ case "${sMode}" in
...
@@ -304,7 +304,7 @@ case "${sMode}" in
"replication"
)
"replication"
)
_out
=
$(
psql
-c
"select * from pg_stat_replication"
2>&1
)
||
_queryFailed
_out
=
$(
psql
-c
"select * from pg_stat_replication"
2>&1
)
||
_queryFailed
if
tail
-1
<<<
"
$_out
"
|
grep
"(0 rows)"
>
/dev/null
;
then
if
tail
-1
<<<
"
$_out
"
|
grep
"(0 rows)"
>
/dev/null
;
then
descr
=
"No data in pg_stat_replication
- this is no slav
e."
descr
=
"No data in pg_stat_replication
= no replication her
e."
out
=
""
out
=
""
else
else
descr
=
"status (from pg_stat_replication)"
descr
=
"status (from pg_stat_replication)"
...
...
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