Rev 38 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 38 | Rev 79 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
3 | // VNag - Nagios Framework for PHP |
3 | // VNag - Nagios Framework for PHP |
4 | // Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com> |
4 | // Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com> |
5 | // Licensed under the terms of the Apache 2.0 license |
5 | // Licensed under the terms of the Apache 2.0 license |
6 | // |
6 | // |
7 | // Revision 2021-08-08 |
7 | // Revision 2023-10-14 |
8 | 8 | ||
9 | // ATTENTION! |
9 | // ATTENTION! |
10 | // To make this work, you need to add following to /etc/sudoers (adjust the paths) |
10 | // To make this work, you need to add following to /etc/sudoers (adjust the paths) |
11 | // nagios ALL=(root) NOPASSWD:/daten/vnag/plugins/hp_smartarray/check_hp_smartarray |
11 | // nagios ALL=(root) NOPASSWD:/daten/vnag/bin/hp_smartarray.phar |
12 | // You MUST make sure that the script check_hp_smartarray and all other VNag scripts are |
12 | // You MUST make sure that the script check_hp_smartarray and all other VNag scripts are |
13 | // owned by root, otherwise the owner could change the code, and it would be executed with |
13 | // owned by root, otherwise the owner could change the code, and it would be executed with |
14 | // root privileges! |
14 | // root privileges! |
15 | 15 | ||
16 | object CheckCommand "vnag_hp_smartarray" { |
16 | object CheckCommand "vnag_hp_smartarray" { |
17 | command = [ |
17 | command = [ |
18 | "/usr/bin/sudo", |
18 | "/usr/bin/sudo", |
19 | 19 | ||
20 | // PLEASE ADJUST THIS PATH |
20 | // PLEASE ADJUST THIS PATH |
21 | "/daten/vnag/plugins/hp_smartarray/check_hp_smartarray" |
21 | "/daten/vnag/bin/hp_smartarray.phar" |
22 | ] |
22 | ] |
23 | 23 | ||
24 | arguments = { |
24 | arguments = { |
25 | "-s" = { |
25 | "-s" = { |
26 | value = "$vnag_hp_smartarray_slot$" |
26 | value = "$vnag_hp_smartarray_slot$" |