| 1 | /* |
| 2 | * Icinga2 CheckCommand definition for the SMART Attributes Monitoring Plugin |
| 3 | */ |
| 4 | |
| 5 | object CheckCommand "smart-attributes" { |
| 6 | import "plugin-check-command" |
| 7 | command = [ PluginDir + "/check_smart_attributes" ] |
| 8 | arguments = { |
| 9 | "-dbj" = "/etc/nagios-plugins/config/check_smartdb.json" |
| 10 | "-d" = { |
| 11 | required = true |
| 12 | value = "$device$" |
| 13 | } |
| 14 | "-ucfgj" = { |
| 15 | required = false |
| 16 | value = "$smart_attributes_ucfgj$" |
| 17 | description = "Path to smart attributes override configuration." |
| 18 | } |
| 19 | } |
| 20 | } |