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
ca04c22c
Commit
ca04c22c
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add NO_COLOR=1 to supress color and emojis
parent
59cf69cb
No related branches found
No related tags found
1 merge request
!256
cronstatus: add NO_COLOR=1 to supress color and emojis
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check_cronstatus
+4
-2
4 additions, 2 deletions
check_cronstatus
with
4 additions
and
2 deletions
check_cronstatus
+
4
−
2
View file @
ca04c22c
...
@@ -24,13 +24,14 @@
...
@@ -24,13 +24,14 @@
# 2022-02-28 v1.5 <axel.hahn@iml.unibe.ch> fix output of error counter
# 2022-02-28 v1.5 <axel.hahn@iml.unibe.ch> fix output of error counter
# 2022-08-23 v2.0 <axel.hahn@iml.unibe.ch> simplify it: use cronstatus.sh (it has exitcode >0 on errors now)
# 2022-08-23 v2.0 <axel.hahn@iml.unibe.ch> simplify it: use cronstatus.sh (it has exitcode >0 on errors now)
# 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page
# 2023-07-27 v2.1 <axel.hahn@unibe.ch> update help page
# 2020-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output
# 2023-09-18 v2.2 <axel.hahn@unibe.ch> replace pipes in systemctl status output
# 2024-04-03 v2.3 <axel.hahn@unibe.ch> add NO_COLOR=1 to supress color and emojis
# ======================================================================
# ======================================================================
.
$(
dirname
$0
)
/inc_pluginfunctions
.
$(
dirname
$0
)
/inc_pluginfunctions
export
self_APPVERSION
=
2.
2
export
self_APPVERSION
=
2.
3
statusScript
=
/opt/cronwrapper/cronstatus.sh
statusScript
=
/opt/cronwrapper/cronstatus.sh
...
@@ -85,6 +86,7 @@ if [ ! -x "${statusScript}" ]; then
...
@@ -85,6 +86,7 @@ if [ ! -x "${statusScript}" ]; then
ph.status Cronjob status - script not found/ not executable:
"
${
statusScript
}
"
ph.status Cronjob status - script not found/ not executable:
"
${
statusScript
}
"
else
else
export
NO_COLOR
=
1
out
=
$(
$statusScript
)
out
=
$(
$statusScript
)
rc
=
$?
rc
=
$?
...
...
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