Go to most recent revision | Details | 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 | // |
||
7 | // Revision 2018-07-15 |
||
8 | |||
9 | object CheckCommand "vnag_mdstat" { |
||
10 | command = [ "/daten/vnag/plugins/mdstat/check_mdstat" ] |
||
11 | |||
12 | arguments = { |
||
13 | "-v" = { |
||
14 | set_if = "$vnag_mdstat_verbose$" |
||
15 | description = "Additionally list drives which are OK, not just the drives which have failed." |
||
16 | } |
||
17 | } |
||
18 | } |
||
19 | |||
20 | // Example usage: |
||
21 | // |
||
22 | // apply Service "example_mdstat" { |
||
23 | // import "generic-service" |
||
24 | // check_command = "vnag_mdstat" |
||
25 | // vars = { |
||
26 | // vnag_mdstat_verbose = false |
||
27 | // } |
||
28 | // assign where host.name == NodeName |
||
29 | // } |