Subversion Repositories vnag

Rev

Rev 70 | 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_webreader" {
35 daniel-mar 10
	// PLEASE ADJUST THIS PATH
79 daniel-mar 11
	command = [ "/daten/vnag/bin/webreader.phar" ]
2 daniel-mar 12
 
13
	arguments = {
14
		"-u" = {
15
			value = "$vnag_webreader_url$"
16
			description = "The URI of the page that contains an embedded machine readable VNag output"
17
			required = true
18
		}
19
		"-i" = {
20
			value = "$vnag_webreader_id$"
21
			description = "The ID (serial or individual name) of the embedded Nagios output. Usually '0' if only one monitor is used without individual names"
22
		}
23
		"-b" = {
24
			value = "$vnag_webreader_basicAuth$"
25
			description = "In case the target website requires Basic Auth, please pass username and password, divided by double-colon, into this argument"
26
		}
27
		"-p" = {
28
			value = "$vnag_webreader_password$"
29
			description = "In case the machine readable VNag output is encrypted, enter the password here"
30
		}
31
		"-k" = {
32
			value = "$vnag_webreader_signPubKey$"
33
			description = "In case the machine readable VNag output is signed, enter the filename of the public key (PEM) file here, to verify the signature of the output"
34
		}
35
	}
36
}
37
 
38
// Example usage:
39
//
40
// apply Service "example_remote_ipfm" {
41
//	import "generic-service"
42
//	check_command = "vnag_webreader"
43
//	vars = {
44
//		vnag_webreader_url = "https://www.example.com/vnag/ipfm/"
45
//	}
46
//	assign where host.name == NodeName
47
// }