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
//
79 daniel-mar 7
// Revision 2023-10-14
2 daniel-mar 8
 
9
object CheckCommand "vnag_nocc_version" {
35 daniel-mar 10
	// PLEASE ADJUST THIS PATH
79 daniel-mar 11
	command = [ "/daten/vnag/bin/nocc_version.phar" ]
2 daniel-mar 12
 
13
	arguments = {
14
		"-d" = {
15
			value = "$vnag_nocc_version_dir$"
16
			description = "Location where the NOCC installation is located"
17
			required = true
18
		}
19
	}
20
}
21
 
22
// Example usage:
23
//
24
// apply Service "example_website1_nocc_version" {
25
//	import "generic-service"
26
//	check_command = "vnag_nocc_version"
27
//	vars = {
28
//		vnag_nocc_version_dir = "/var/www/website1/nocc/"
29
//	}
30
//	assign where host.name == NodeName
31
// }
32
//
33
// apply Service "example_website2_nocc_version" {
34
//	import "generic-service"
35
//	check_command = "vnag_nocc_version"
36
//	vars = {
37
//		vnag_nocc_version_dir = "/var/www/website2/nocc/"
38
//	}
39
//	assign where host.name == NodeName
40
// }
41
//
42
// apply Service "example_website3_nocc_version" {
43
//	import "generic-service"
44
//	check_command = "vnag_nocc_version"
45
//	vars = {
46
//		vnag_nocc_version_dir = "/var/www/website3/nocc/"
47
//	}
48
//	assign where host.name == NodeName
49
// }