Subversion Repositories vnag

Rev

Rev 44 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
44 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
44 daniel-mar 8
 
9
object CheckCommand "vnag_aastra_430_voicemail" {
10
	// PLEASE ADJUST THIS PATH
79 daniel-mar 11
	command = [ "/daten/vnag/bin/aastra_430_voicemail.phar" ]
44 daniel-mar 12
 
13
	arguments = {
14
		"-H" = {
15
			value = "$vnag_aastra_430_voicemail_ftphostname$"
16
			description = "The FTP hostname"
17
			required = true
18
		}
19
		"-u" = {
20
			value = "$vnag_aastra_430_voicemail_ftpusername$"
21
			description = "The FTP username (usually 'admin')"
22
		}
23
		"-p" = {
24
			value = "$vnag_aastra_430_voicemail_ftppassword$"
25
			description = "The FTP password"
26
			required = true
27
		}
28
	}
29
}
30
 
31
// Example usage:
32
//
33
// apply Service "example_voicemail" {
34
//	import "generic-service"
35
//	check_command = "vnag_aastra_430_voicemail"
36
//	vars = {
37
//		vnag_aastra_430_voicemail_ftphostname = ""
38
//		vnag_aastra_430_voicemail_ftpusername = ""
39
//		vnag_aastra_430_voicemail_ftppassword = ""
40
//	}
41
//	assign where host.name == NodeName
42
// }