Subversion Repositories vnag

Rev

Rev 17 | Blame | Last modification | View Log | RSS feed

// Put this file in /etc/icinga2/conf.d/...

// VNag - Nagios Framework for PHP
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
// Licensed under the terms of the Apache 2.0 license
//
// Revision 2020-03-07

object CheckCommand "vnag_openbugbounty" {
        // PLEASE ADJUST THIS PATH
        command = [ "/daten/vnag/plugins/openbugbounty/check_openbugbounty" ]

        arguments = {
                "-d" = {
                        value = "$vnag_openbugbounty_domain$"
                        description = "Domain(s) or subdomain(s), separated by comma, to be checked or a file containing the domain names"
                        required = false  // Note: either "-d" or "-p" is required
                }
                "-p" = {
                        value = "$vnag_openbugbounty_privateapi$"
                        description = "Private API URL (cannot be used together with domain-argument)"
                        required = false  // Note: either "-d" or "-p" is required
                }

                "-i" = {
                        value = "$vnag_openbugbounty_ignoredids$"
                        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...)"
                        required = false
                }

                "-v" = {
                        set_if = "$vnag_openbugbounty_verbose$"
                        description = "When checking multiple domains, also show details about domains which have 0 unfixed issues."
                }
        }
}

// Example usage:
//
// apply Service "example_website1_openbugbounty" {
//      import "generic-service"
//      check_command = "vnag_openbugbounty"
//      vars = {
//              vnag_openbugbounty_domain = "example.org"
//      }
//      assign where host.name == NodeName
// }
// apply Service "example_websites_openbugbounty" {
//      import "generic-service"
//      check_command = "vnag_openbugbounty"
//      vars = {
//              vnag_openbugbounty_privateapi = "https://www.openbugbounty.org/api/2/.../"
//              vnag_openbugbounty_ignoredids = "12345,98765,555555"
//      }
//      assign where host.name == NodeName
// }