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-07-15
8
 
9
object CheckCommand "vnag_phpmyadmin_version" {
10
	command = [ "/daten/vnag/plugins/phpmyadmin_version/check_phpmyadmin_version" ]
11
 
12
	arguments = {
13
		"-d" = {
14
			value = "$vnag_phpmyadmin_version_dir$"
15
			description = "Location where the phpMyAdmin installation is located"
16
			required = true
17
		}
18
	}
19
}
20
 
21
// Example usage:
22
//
23
// apply Service "example_website1_phpmyadmin_version" {
24
//	import "generic-service"
25
//	check_command = "vnag_phpmyadmin_version"
26
//	vars = {
27
//		vnag_phpmyadmin_version_dir = "/var/www/website1/phpmyadmin/"
28
//	}
29
//	assign where host.name == NodeName
30
// }
31
//
32
// apply Service "example_website2_phpmyadmin_version" {
33
//	import "generic-service"
34
//	check_command = "vnag_phpmyadmin_version"
35
//	vars = {
36
//		vnag_phpmyadmin_version_dir = "/var/www/website2/phpmyadmin/"
37
//	}
38
//	assign where host.name == NodeName
39
// }
40
//
41
// apply Service "example_website3_phpmyadmin_version" {
42
//	import "generic-service"
43
//	check_command = "vnag_phpmyadmin_version"
44
//	vars = {
45
//		vnag_phpmyadmin_version_dir = "/var/www/website3/phpmyadmin/"
46
//	}
47
//	assign where host.name == NodeName
48
// }