Subversion Repositories vnag

Compare Revisions

Regard whitespace Rev 52 → Rev 53

/trunk/plugins/smart/icinga2.conf
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" = {