Skip to content

Commit

Permalink
check_openrc.pl: sudo as root necessary to detect crashed services
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fischl <[email protected]>
  • Loading branch information
antonfischl1980 committed May 11, 2022
1 parent bee38f4 commit a474f6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion icinga-command-definitions/check_openrc.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
object CheckCommand "openrc" {
command = [ PluginDir + "/check_openrc.pl" ]
command = [ "sudo", PluginDir + "/check_openrc.pl" ]

arguments = {
"--stopped-critical" = {
Expand Down
1 change: 1 addition & 0 deletions sudoers.d/check_openrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
icinga ALL=(root) NOPASSWD: /usr/lib64/nagios/plugins/check_openrc.pl

0 comments on commit a474f6a

Please sign in to comment.