Skip to content

Commit

Permalink
cfg - Add icinga2 config for disk check
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed May 16, 2024
1 parent 0d197da commit 7c05df1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/check_routeros.icinga2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,27 @@ object CheckCommand "routeros_system_cpu" {
vars.routeros_command = "system.cpu"
}

object CheckCommand "routeros_system_disk" {
import "routeros_command"

arguments += {
"--warning" = {
value = "$routeros_system_disk_warning$"
}
"--critical" = {
value = "$routeros_system_disk_critical$"
}
"--bad-blocks-warning" = {
value = "$routeros_system_disk_bad_blocks_warning$"
}
"--bad-blocks-critical" = {
value = "$routeros_system_disk_bad_blocks_critical$"
}
}

vars.routeros_command = "system.disk"
}

object CheckCommand "routeros_system_fan" {
import "routeros_command"

Expand Down

0 comments on commit 7c05df1

Please sign in to comment.