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
12b750fa
Commit
12b750fa
authored
2 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
small fixes
parent
fadf44e4
No related branches found
No related tags found
1 merge request
!301
small fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
check_cpu
+4
-4
4 additions, 4 deletions
check_cpu
check_cronstatus
+1
-1
1 addition, 1 deletion
check_cronstatus
with
5 additions
and
5 deletions
check_cpu
+
4
−
4
View file @
12b750fa
...
@@ -92,10 +92,10 @@ esac
...
@@ -92,10 +92,10 @@ esac
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# set default / override from command line params
# set default / override from command line params
typeset
-i
iWarnLimit
=
$(
ph.getValueWithParam 75 w
"
$@
"
)
typeset
-i
iWarnLimit
;
iWarnLimit
=
$(
ph.getValueWithParam 75 w
"
$@
"
)
typeset
-i
iCriticalLimit
=
$(
ph.getValueWithParam 90 c
"
$@
"
)
typeset
-i
iCriticalLimit
;
iCriticalLimit
=
$(
ph.getValueWithParam 90 c
"
$@
"
)
typeset
-i
iCriticalWait
=
$(
ph.getValueWithParam 50 i
"
$@
"
)
typeset
-i
iCriticalWait
;
iCriticalWait
=
$(
ph.getValueWithParam 50 i
"
$@
"
)
typeset
-i
iMinCpuUsageToShowProcesses
=
$(
ph.getValueWithParam 50 p
"
$@
"
)
typeset
-i
iMinCpuUsageToShowProcesses
;
iMinCpuUsageToShowProcesses
=
$(
ph.getValueWithParam 50 p
"
$@
"
)
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# get data
# get data
...
...
This diff is collapsed.
Click to expand it.
check_cronstatus
+
1
−
1
View file @
12b750fa
...
@@ -98,7 +98,7 @@ else
...
@@ -98,7 +98,7 @@ else
else
else
ph.setStatus
"ok"
ph.setStatus
"ok"
fi
fi
ph.status Cronjob status
$(
echo
"
$out
"
|
tail
-1
)
ph.status
"
Cronjob status
$(
echo
"
$out
"
|
tail
-1
)
"
$statusScript
-s
|
sed
"s#
\[
0m##g"
$statusScript
-s
|
sed
"s#
\[
0m##g"
echo
"
$out
"
|
sed
-r
"s/
\x
1B
\[
([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g"
|
tr
'|'
':'
echo
"
$out
"
|
sed
-r
"s/
\x
1B
\[
([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g"
|
tr
'|'
':'
...
...
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