Subversion Repositories vnag

Rev

Go to most recent revision | 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 2018-07-15

object CheckCommand "vnag_nocc_version" {
        command = [ "/daten/vnag/plugins/nocc_version/check_nocc_version" ]

        arguments = {
                "-d" = {
                        value = "$vnag_nocc_version_dir$"
                        description = "Location where the NOCC installation is located"
                        required = true
                }
        }
}

// Example usage:
//
// apply Service "example_website1_nocc_version" {
//      import "generic-service"
//      check_command = "vnag_nocc_version"
//      vars = {
//              vnag_nocc_version_dir = "/var/www/website1/nocc/"
//      }
//      assign where host.name == NodeName
// }
//
// apply Service "example_website2_nocc_version" {
//      import "generic-service"
//      check_command = "vnag_nocc_version"
//      vars = {
//              vnag_nocc_version_dir = "/var/www/website2/nocc/"
//      }
//      assign where host.name == NodeName
// }
//
// apply Service "example_website3_nocc_version" {
//      import "generic-service"
//      check_command = "vnag_nocc_version"
//      vars = {
//              vnag_nocc_version_dir = "/var/www/website3/nocc/"
//      }
//      assign where host.name == NodeName
// }