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_virtual_mem" {
        command = [ "/daten/vnag/plugins/virtual_mem/check_virtual_mem" ]

        arguments = {
                "-w" = {
                        value = "$vnag_virtual_mem_warn$"
                        description = "absoluteKB or relative% (Warning range)"
                }
                "-c" = {
                        value = "$vnag_virtual_mem_crit$"
                        description = "absoluteKB or relative% (Critical range)"
                }
        }
}

// Example usage:
//
// apply Service "example_server1_virtual_mem" {
//      import "generic-service"
//      check_command = "vnag_virtual_mem"
//
//      vars = {
//              vnag_virtual_mem_warn = "10GB"
//              vnag_virtual_mem_crit = "4GB"
//      }
//
//      assign where host.name == NodeName
// }