6,9 → 6,20 |
// |
// Revision 2022-05-12 |
|
// ATTENTION! |
// To make this work, you need to add following to /etc/sudoers (adjust the paths) |
// nagios ALL=(root) NOPASSWD:/daten/vnag/plugins/smart/check_smart |
// You MUST make sure that the script check_hp_smartarray and all other VNag scripts are |
// owned by root, otherwise the owner could change the code, and it would be executed with |
// root privileges! |
|
object CheckCommand "vnag_smart" { |
command = [ |
"/usr/bin/sudo", |
|
// PLEASE ADJUST THIS PATH |
command = [ "/daten/vnag/plugins/smart/check_smart" ] |
"/daten/vnag/plugins/smart/check_smart" |
] |
|
arguments = { |
"-v" = { |