I´m using the nscp_api check to get values from remote windows hosts. Till now all windows hosts could gather cpu, memory and disk values via NSClient. Since the latest icinga update there seems to be problem at check_cpu for all new hosts and I don´t know why. I´m getting:
UNKNOWN - Cannot parse JSON response body '403 Your not allowed', error: [json.exception.parse_error.101] parse error at line 1, column 5: syntax error while parsing value - invalid literal; last read: '403 Y'; expected end of input
I´ve tried to execute the check at my command line manually and it works perfectly:
/usr/lib/nagios/plugins# ./check_nscp_api -H lrl-nba-srv.xy.de --password gsdgsdgfsdg342 --query check_cpu check_cpu OK: CPU load is ok. | 'total 5m'=2%;80;90 'total 1m'=2%;80;90 'total 5s'=1%;80;90
So I don´t know why icinga is displaying this error when the check manually succeeds? Also I´m using icinga2 director for all windows hosts, so the service definition and the field variables (nscp_api password) are the same at all hosts. I don´t think there could be a configuration problem. All hosts are using the same host and service template.
Is there anything I could debug further?