Subversion Repositories vnag

Rev

Rev 35 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
// Put this file in /etc/icinga2/conf.d/...
2
 
3
// VNag - Nagios Framework for PHP
4
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
5
// Licensed under the terms of the Apache 2.0 license
6
//
50 daniel-mar 7
// Revision 2022-05-12
2 daniel-mar 8
 
9
object CheckCommand "vnag_smart" {
35 daniel-mar 10
	// PLEASE ADJUST THIS PATH
2 daniel-mar 11
	command = [ "/daten/vnag/plugins/smart/check_smart" ]
12
 
13
	arguments = {
14
		"-v" = {
15
			set_if = "$vnag_smart_verbose$"
16
			description = "Additionally list drives which are OK, not just the drives which have failed."
17
		}
50 daniel-mar 18
		"-T" = {
19
			set_if = "$vnag_smart_type$"
20
			description = "Explicit drive type e.g. for RAID devices 'sat+cciss,0' for drive 0."
21
		}
2 daniel-mar 22
	}
23
}
24
 
25
// Example usage:
26
//
27
// apply Service "example_smart" {
28
//	import "generic-service"
29
//	check_command = "vnag_smart"
30
//	vars = {
31
//		vnag_smart_verbose = false
32
//	}
33
//	assign where host.name == NodeName
34
// }
50 daniel-mar 35
//
36
// apply Service "example_smart_raid" {
37
//	import "generic-service"
38
//	check_command = "vnag_smart"
39
//	vars = {
40
//		vnag_smart_verbose = false
41
//		vnag_smart_type = "sat+cciss,0"
42
//	}
43
//	assign where host.name == NodeName
44
// }