This file is indexed.

/usr/share/icinga2/include/plugins-contrib.d/smart-attributes.conf is in icinga2-common 2.8.1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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 = [ PluginDir + "/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 = SysconfDir + "/icinga2/plugins-config/check_smartdb.json"
}