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_mdstat" {
        command = [ "/daten/vnag/plugins/mdstat/check_mdstat" ]

        arguments = {
                "-v" = {
                        set_if = "$vnag_mdstat_verbose$"
                        description = "Additionally list drives which are OK, not just the drives which have failed."
                }
        }
}

// Example usage:
//
// apply Service "example_mdstat" {
//      import "generic-service"
//      check_command = "vnag_mdstat"
//      vars = {
//              vnag_mdstat_verbose = false
//      }
//      assign where host.name == NodeName
// }