Rev 35 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | // Put this file in /etc/icinga2/conf.d/... |
2 | |||
3 | // VNag - Nagios Framework for PHP |
||
4 | // Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com> |
||
5 | // Licensed under the terms of the Apache 2.0 license |
||
6 | // |
||
79 | daniel-mar | 7 | // Revision 2023-10-14 |
2 | daniel-mar | 8 | |
9 | object CheckCommand "vnag_virtual_mem" { |
||
35 | daniel-mar | 10 | // PLEASE ADJUST THIS PATH |
79 | daniel-mar | 11 | command = [ "/daten/vnag/bin/virtual_mem.phar" ] |
2 | daniel-mar | 12 | |
13 | arguments = { |
||
14 | "-w" = { |
||
15 | value = "$vnag_virtual_mem_warn$" |
||
16 | description = "absoluteKB or relative% (Warning range)" |
||
17 | } |
||
18 | "-c" = { |
||
19 | value = "$vnag_virtual_mem_crit$" |
||
20 | description = "absoluteKB or relative% (Critical range)" |
||
21 | } |
||
22 | } |
||
23 | } |
||
24 | |||
25 | // Example usage: |
||
26 | // |
||
27 | // apply Service "example_server1_virtual_mem" { |
||
28 | // import "generic-service" |
||
29 | // check_command = "vnag_virtual_mem" |
||
30 | // |
||
31 | // vars = { |
||
32 | // vnag_virtual_mem_warn = "10GB" |
||
33 | // vnag_virtual_mem_crit = "4GB" |
||
34 | // } |
||
35 | // |
||
36 | // assign where host.name == NodeName |
||
37 | // } |