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_virtual_mem" {
10
	command = [ "/daten/vnag/plugins/virtual_mem/check_virtual_mem" ]
11
 
12
	arguments = {
13
		"-w" = {
14
			value = "$vnag_virtual_mem_warn$"
15
			description = "absoluteKB or relative% (Warning range)"
16
		}
17
		"-c" = {
18
			value = "$vnag_virtual_mem_crit$"
19
			description = "absoluteKB or relative% (Critical range)"
20
		}
21
	}
22
}
23
 
24
// Example usage:
25
//
26
// apply Service "example_server1_virtual_mem" {
27
//	import "generic-service"
28
//	check_command = "vnag_virtual_mem"
29
//
30
//	vars = {
31
//		vnag_virtual_mem_warn = "10GB"
32
//		vnag_virtual_mem_crit = "4GB"
33
//	}
34
//
35
//	assign where host.name == NodeName
36
// }