Custom ACC plugin

Michal9
Tera Contributor

Hello everyone, I'm exploring ACC module to gather data but I've hit a wall. I'm trying to create custom plugin to test out gathering different data from clients or adjust/transform the data coming in and populate them into different fields than out of the box configuration.

I created check type, check instance, check definition, policy and plugin where I uploaded the plugin directory signed with certificate. It runs as I see logs from my check type but I'm getting 2 errors. 

 

1.

OSQUERY-I-OK CI found *redacted pc name* content: "error getting assets for check: couldn't verify asset (skipped fetching certificates and retrying): could not verify file C:\\Users\\SERVIC~1\\AppData\\Local\\Temp\\sensu-asset3473500859\\OSQueryGeneric.tar.gz with input certificates"

 

2.

OSQUERY-I-OK Custom OSQuery result recieved: {"command":"C:\\ProgramData\\ServiceNow\\agent-client-collector\\cache\\osquery\\bin\\osqueryi --logger_min_status 1 --json \"{{.labels.params_query}}\"","name":"policy: OSQuery generic policy, check: Generic OSQuery check","interval":120,"timeout":60,"output":"error getting assets for check: couldn't verify asset (skipped fetching certificates and retrying): could not verify file C:\\Users\\SERVIC~1\\AppData\\Local\\Temp\\sensu-asset3473500859\\OSQueryGeneric.tar.gz with input certificates","status":"3","check_instance_id":"47fb3f0983d58b106b4c9ec0deaad3fa","check_type_id":"2e78193f3be48b10d17b030c95e45a1c","params_background":"false","is_silenced":false,"disable_token_replacement":"false","exec_mode":"execv","ci_id":"bc2a50c982288b1c0c7e17a44f7a131d","params_last_updated":"2026-06-04 13:25:38","send_results":"event_severity_changes","params_query":"select * from os_version","send_protocol":"ecc_queue","error_code":"ACC-1500","check_definition_id":"6f0415f73be48b10d17b030c95e45abf"}

 

I have added the certificate to my own PC and the signed certificate to the plugin record. Any idea what I'm missing?

 

0 REPLIES 0