-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve README, put configuration files for Icinga into separate folder
- Loading branch information
Showing
4 changed files
with
133 additions
and
64 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
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,35 @@ | ||
// `check_synology` `CheckCommand` definition for Icinga 2 | ||
|
||
object CheckCommand "check_synology" { | ||
command = [ PluginDir + "/check_synology" ] | ||
|
||
arguments = { | ||
"--host" = { | ||
skip_key = true | ||
order = 0 | ||
value = "$synology_host$" | ||
} | ||
"--username" = { | ||
skip_key = true | ||
order = 1 | ||
value = "$synology_snmp_user$" | ||
} | ||
"--authkey" = { | ||
skip_key = true | ||
order = 2 | ||
value = "$synology_snmp_authkey$" | ||
} | ||
"--privkey" = { | ||
skip_key = true | ||
order = 3 | ||
value = "$synology_snmp_privkey$" | ||
} | ||
"--mode" = { | ||
skip_key = true | ||
order = 4 | ||
value = "$synology_mode$" | ||
} | ||
"-w" = "$synology_warning$" | ||
"-c" = "$synology_critical$" | ||
} | ||
} |
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,11 @@ | ||
// `check_synology` example host configuration snippet for Icinga 2 | ||
|
||
object Host "foo.example.org" { | ||
|
||
// Configuration section for `check_synology` | ||
vars.synology_host = "192.168.178.111" | ||
vars.synology_snmp_user = "nagios" | ||
vars.synology_snmp_authkey = "secret" | ||
vars.synology_snmp_privkey = "secret" | ||
|
||
} |
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,15 @@ | ||
// `check_synology` example service configuration snippet for Icinga 2 | ||
|
||
apply Service "syno-load" { | ||
import "generic-service" | ||
|
||
check_command = "check_synology" | ||
|
||
vars.synology_mode = "load" | ||
vars.synology_host = "$address$" | ||
|
||
vars.synology_warning = "$synology_load_w$" | ||
vars.synology_critical = "$synology_load_c$" | ||
|
||
assign where host.vars.os == "DSM" | ||
} |