I've written this service for check_ide_smart plugin:
apply Service "smarttest" {
import "generic-service"
check_command = "check_ide_smart"
vars.device = "/dev/sdh"
assign where host.name == NodeName
}
but icingaweb2 gives me this message:
Plugin Output
CRITICAL - Couldn't open device /dev/sdh: Permission denied
I've also added user nagios to sudo, but it didn't help either... On this host I have icinga2 version: r2.7.1-1 running on Debian Jessie, and my master node runs version: r2.6.3-1
Also I have set the service on the client not master.
is there anything that I'm doing wrong? any help/suggestions would be appreciated.
Thanks,