Subversion Repositories vnag

Rev

Rev 35 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 50
Line 2... Line 2...
2
 
2
 
3
// VNag - Nagios Framework for PHP
3
// VNag - Nagios Framework for PHP
4
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
4
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
5
// Licensed under the terms of the Apache 2.0 license
5
// Licensed under the terms of the Apache 2.0 license
6
//
6
//
7
// Revision 2018-07-15
7
// Revision 2022-05-12
8
 
8
 
9
object CheckCommand "vnag_smart" {
9
object CheckCommand "vnag_smart" {
10
	// PLEASE ADJUST THIS PATH
10
	// PLEASE ADJUST THIS PATH
11
	command = [ "/daten/vnag/plugins/smart/check_smart" ]
11
	command = [ "/daten/vnag/plugins/smart/check_smart" ]
12
 
12
 
13
	arguments = {
13
	arguments = {
14
		"-v" = {
14
		"-v" = {
15
			set_if = "$vnag_smart_verbose$"
15
			set_if = "$vnag_smart_verbose$"
16
			description = "Additionally list drives which are OK, not just the drives which have failed."
16
			description = "Additionally list drives which are OK, not just the drives which have failed."
17
		}
17
		}
-
 
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
		}
18
	}
22
	}
19
}
23
}
20
 
24
 
21
// Example usage:
25
// Example usage:
22
//
26
//
Line 26... Line 30...
26
//	vars = {
30
//	vars = {
27
//		vnag_smart_verbose = false
31
//		vnag_smart_verbose = false
28
//	}
32
//	}
29
//	assign where host.name == NodeName
33
//	assign where host.name == NodeName
30
// }
34
// }
-
 
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
// }