-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from RincewindsHat/add_icinga2_config
Add icinga2 example config
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
object CheckCommand "needrestart" { | ||
command = [ "/usr/sbin/needrestart", "-p" ] | ||
arguments = { | ||
"-k" = { | ||
description = "check for obsolete kernel" | ||
set_if = "$needrestart_kernel$" | ||
} | ||
"-l" = { | ||
description = "check for obsolete libraries" | ||
set_if = "$needrestart_libraries$" | ||
} | ||
"-w" = { | ||
description = "check for obsolete CPU microcode" | ||
set_if = "$needrestart_microcode$" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# needrestart nagios plugin sudoers.d config file | ||
# ----------------------------------------------- | ||
# | ||
# Please consider a look at /etc/sudoers.d/README howto enable this file. | ||
# | ||
|
||
# Allow nagios to execute the needrestart command on debian based systems (icinga user is called "nagios") | ||
nagios ALL=NOPASSWD: /usr/sbin/needrestart | ||
# Allow nagios to execute the needrestart command on centos and family (icinga user is called "icinga") | ||
icinga ALL=NOPASSWD: /usr/sbin/needrestart |