Subversion Repositories vnag

Rev

Go to most recent revision | Details | 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
//
7
// Revision 2018-11-04
8
 
9
object CheckCommand "vnag_disk_running" {
10
	command = [ "/daten/vnag/plugins/disk_running/check_disk_running" ]
11
 
12
	arguments = {
13
		"-d" = {
14
			value = "$vnag_disk_running_disks$"
15
			description = "Disks to be monitored; can be comma separated, e.g. 'sda,sdb'"
16
			required = true
17
		}
18
		"-v" = {
19
			set_if = "$vnag_disk_running_verbose$"
20
			description = "Additionally list drives which are OK, not just the drives which are offline."
21
		}
22
	}
23
}
24
 
25
// Example usage:
26
//
27
// apply Service "example_disk_running" {
28
//	import "generic-service"
29
//	check_command = "vnag_disk_running"
30
//	vars = {
31
//		vnag_disk_running_disks = "sda,sdb"
32
//		vnag_disk_running_verbose = false
33
//	}
34
//	assign where host.name == NodeName
35
// }