0,0 → 1,46 |
// 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_ipfm" { |
command = [ "/daten/vnag/plugins/ipfm/check_ipfm" ] |
|
arguments = { |
"-w" = { |
value = "$vnag_ipfm_currentWarn$,$vnag_ipfm_expectedWarn$" |
description = "<currentTraffic>GB,<expectedTraffic>GB (Warning range)" |
} |
"-c" = { |
value = "$vnag_ipfm_currentCrit$,$vnag_ipfm_expectedCrit$" |
description = "<currentTraffic>GB,<expectedTraffic>GB (Critical range)" |
} |
"-l" = { |
value = "$vnag_ipfm_limit$" |
description = "The monthly limit of your provider (just for optical measurement)" |
} |
"-L" = { |
value = "$vnag_ipfm_logDir$" |
description = "Directory of the ipfm log files (default /var/log/ipfm)" |
} |
} |
} |
|
// Example usage: |
// |
// apply Service "example_eth0_ipfm" { |
// import "generic-service" |
// check_command = "vnag_ipfm" |
// vars = { |
// vnag_ipfm_currentWarn = "6TB" |
// vnag_ipfm_currentCrit = "8TB" |
// vnag_ipfm_expectedWarn = "8TB" |
// vnag_ipfm_expectedCrit = "15TB" |
// vnag_ipfm_limit = "10TB" |
// vnag_ipfm_logDir = "/var/log/ipfm" |
// } |
// assign where host.name == NodeName |
// } |