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
8 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
8 daniel-mar 8
 
9
object CheckCommand "vnag_openbugbounty" {
35 daniel-mar 10
	// PLEASE ADJUST THIS PATH
79 daniel-mar 11
	command = [ "/daten/vnag/bin/openbugbounty.phar" ]
8 daniel-mar 12
 
13
	arguments = {
14
		"-d" = {
15
			value = "$vnag_openbugbounty_domain$"
9 daniel-mar 16
			description = "Domain(s) or subdomain(s), separated by comma, to be checked or a file containing the domain names"
15 daniel-mar 17
			required = false  // Note: either "-d" or "-p" is required
8 daniel-mar 18
		}
15 daniel-mar 19
		"-p" = {
20
			value = "$vnag_openbugbounty_privateapi$"
21
			description = "Private API URL (cannot be used together with domain-argument)"
22
			required = false  // Note: either "-d" or "-p" is required
23
		}
17 daniel-mar 24
 
25
		"-i" = {
26
			value = "$vnag_openbugbounty_ignoredids$"
27
			description = "Comma separated list of submission IDs that shall be defined as fixed (because OpenBugBounty often does not mark fixed bugs as fixed, even if you tell them that you have fixed them...)"
28
			required = false
29
		}
30
 
8 daniel-mar 31
		"-v" = {
32
			set_if = "$vnag_openbugbounty_verbose$"
33
			description = "When checking multiple domains, also show details about domains which have 0 unfixed issues."
34
		}
35
	}
36
}
37
 
38
// Example usage:
39
//
40
// apply Service "example_website1_openbugbounty" {
41
//	import "generic-service"
42
//	check_command = "vnag_openbugbounty"
43
//	vars = {
44
//		vnag_openbugbounty_domain = "example.org"
45
//	}
46
//	assign where host.name == NodeName
47
// }
15 daniel-mar 48
// apply Service "example_websites_openbugbounty" {
49
//	import "generic-service"
50
//	check_command = "vnag_openbugbounty"
51
//	vars = {
52
//		vnag_openbugbounty_privateapi = "https://www.openbugbounty.org/api/2/.../"
17 daniel-mar 53
//		vnag_openbugbounty_ignoredids = "12345,98765,555555"
15 daniel-mar 54
//	}
55
//	assign where host.name == NodeName
56
// }