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_roundcube_version" {
        command = [ "/daten/vnag/plugins/roundcube_version/check_roundcube_version" ]

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

// Example usage:
//
// apply Service "example_website1_roundcube_version" {
//      import "generic-service"
//      check_command = "vnag_roundcube_version"
//      vars = {
//              vnag_roundcube_version_dir = "/var/www/website1/roundcube/"
//      }
//      assign where host.name == NodeName
// }
//
// apply Service "example_website2_roundcube_version" {
//      import "generic-service"
//      check_command = "vnag_roundcube_version"
//      vars = {
//              vnag_roundcube_version_dir = "/var/www/website2/roundcube/"
//      }
//      assign where host.name == NodeName
// }
//
// apply Service "example_website3_roundcube_version" {
//      import "generic-service"
//      check_command = "vnag_roundcube_version"
//      vars = {
//              vnag_roundcube_version_dir = "/var/www/website3/roundcube/"
//      }
//      assign where host.name == NodeName
// }