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_phpmyadmin_version" {
        command = [ "/daten/vnag/plugins/phpmyadmin_version/check_phpmyadmin_version" ]

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

// Example usage:
//
// apply Service "example_website1_phpmyadmin_version" {
//      import "generic-service"
//      check_command = "vnag_phpmyadmin_version"
//      vars = {
//              vnag_phpmyadmin_version_dir = "/var/www/website1/phpmyadmin/"
//      }
//      assign where host.name == NodeName
// }
//
// apply Service "example_website2_phpmyadmin_version" {
//      import "generic-service"
//      check_command = "vnag_phpmyadmin_version"
//      vars = {
//              vnag_phpmyadmin_version_dir = "/var/www/website2/phpmyadmin/"
//      }
//      assign where host.name == NodeName
// }
//
// apply Service "example_website3_phpmyadmin_version" {
//      import "generic-service"
//      check_command = "vnag_phpmyadmin_version"
//      vars = {
//              vnag_phpmyadmin_version_dir = "/var/www/website3/phpmyadmin/"
//      }
//      assign where host.name == NodeName
// }