File: smart-attributes.conf

package info (click to toggle)
icinga2 2.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,992 kB
  • sloc: cpp: 97,383; sql: 3,261; cs: 1,636; yacc: 1,584; sh: 1,009; ansic: 890; lex: 420; python: 80; makefile: 62; javascript: 12
file content (24 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* 
 * Icinga2 CheckCommand definition for the SMART Attributes Monitoring Plugin
 */

object CheckCommand "smart-attributes" {
	import "plugin-check-command"

	command = [ PluginContribDir + "/check_smart_attributes" ]

	arguments = {
		"-dbj" = {
			required = true
			value = "$smart_attributes_config_path$"
			description = "Path to the smart attributes config file (e.g. check_smartdb.json)"
		}
		"-d" = {
			required = true
			value = "$smart_attributes_device$"
			description = "Insert the device name (e.g. /dev/sda) to monitor"
		}
	}

	vars.smart_attributes_config_path = ConfigDir + "/plugins-config/check_smartdb.json"
}