Hello
When using service template :
OS-Linux-Cpu-Centreon-Monitoring-Agent -> Generic-Passive-CMA-Service-custom -> Generic-Passive-CMA-Service
check command is set to :
/usr/lib/centreon/plugins//centreon_linux_local.pl --plugin='os::linux::local::plugin' --mode='cpu' --warning-core='' --critical-core='' --warning-average='' --critical-average='' --statefile-dir=''
but when --statefile-dir=’’, plugin tries to write in /, which results in :
UNKNOWN: Cannot write statefile '/cache_linux_local_me_cpu_a181a603769c1f98ad927e7367c7aa51'. Need write/exec permissions on directory.
=> the flag --statefile-dir=’’ should be removed from the default command / template
