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
5d6c898e
Commit
5d6c898e
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-check-update-debian' into 'master'
add docs See merge request
!42
parents
0a3a484f
700ebf84
Branches
Branches containing commit
No related tags found
1 merge request
!42
add docs
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
check_cpu
+1
-1
1 addition, 1 deletion
check_cpu
check_reboot_required
+2
-2
2 additions, 2 deletions
check_reboot_required
docs/20_Checks/check_reboot_required.md
+35
-0
35 additions, 0 deletions
docs/20_Checks/check_reboot_required.md
with
38 additions
and
3 deletions
check_cpu
+
1
−
1
View file @
5d6c898e
...
@@ -47,7 +47,7 @@ ______________________________________________________________________
...
@@ -47,7 +47,7 @@ ______________________________________________________________________
check cpu usage and cpu wait
check cpu usage and cpu wait
Cpu infos are taken from output of top command.
Cpu infos are taken from output of top command.
O
h
higher cpu usage it can show processes that cause cpu waits and
O
n
higher cpu usage it can show processes that cause cpu waits and
with most cpu consumption.
with most cpu consumption.
SYNTAX:
SYNTAX:
...
...
This diff is collapsed.
Click to expand it.
check_reboot_required
+
2
−
2
View file @
5d6c898e
...
@@ -43,7 +43,7 @@ It works for Centos and Debian/ Ubuntu.
...
@@ -43,7 +43,7 @@ It works for Centos and Debian/ Ubuntu.
If the reboot is required:
If the reboot is required:
* On Centos it shows the kernel number that will be installed,
* On Centos it shows the kernel number that will be installed,
* On Debian
7
Ubuntu it shows the packages that require the reboot,
* On Debian
/
Ubuntu it shows the packages that require the reboot,
SYNTAX:
SYNTAX:
$(
basename
$0
)
$(
basename
$0
)
...
@@ -76,7 +76,7 @@ case $distro in
...
@@ -76,7 +76,7 @@ case $distro in
"centos"
)
"centos"
)
currentkernel
=
$(
uname
-r
)
currentkernel
=
$(
uname
-r
)
out
=
$(
rpm
-q
--last
kernel |
head
-1
|
f
grep
$currentkernel
)
out
=
$(
rpm
-q
--last
kernel |
head
-1
|
grep
-F
$currentkernel
)
if
[
-z
"
$out
"
]
;
then
if
[
-z
"
$out
"
]
;
then
ph.setStatus
"warning"
ph.setStatus
"warning"
ph.status
"[
$distro
] need to reboot for kernel
$(
rpm
-q
--last
kernel |
head
-1
)
(current:
$currentkernel
)"
ph.status
"[
$distro
] need to reboot for kernel
$(
rpm
-q
--last
kernel |
head
-1
)
(current:
$currentkernel
)"
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_reboot_required.md
0 → 100644
+
35
−
0
View file @
5d6c898e
# Check Reboot required
## Introduction
Check if a reboot is required.
It works for Centos and Debian/ Ubuntu.
If the reboot is required:
*
On Centos it shows the kernel number that will be installed,
*
On Debian/ Ubuntu it shows the packages that require the reboot,
## Syntax
`$ check_reboot_required [-h]`
### Parameters
```
text
OPTIONS:
-h or --help show this help.
PARAMETERS:
None
```
## Examples
`check_cronstatus`
The Check of cronjobs with the default loction does not require any parameter
`check_cronstatus /usr/share/cronwrapper/cronstatus.sh`
The Check of cronjobs with custom loction.
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