Rev 79 | Blame | Compare with Previous | 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 2023-10-14
object CheckCommand "vnag_virtual_mem" {
// PLEASE ADJUST THIS PATH
command = [ "/daten/vnag/bin/virtual_mem.phar" ]
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
// }