Missing metrics from ACC agent

KonstantinK
Kilo Contributor

I've installed and configured test MID server and a ACC agent, enabled "Linux* and PostgreSQL*" policies.

MID server and ACC agent are "green" in ServiceNow, discovery works, Linux & PostgreSQL instance configuration items have been discovered successfully.

 

But I see no metrics in Insight explorer on these CIs.


I see the following errors on MID server:

ERROR (Extension Container: com.service_now.metric.SimpleBatcherTask) [BaseInstanceRestClient:213] (241) com
.service_now.metric.rest.client.InstanceRestClient - Failed to send metric data: Bad Request

(Extension Container: com.service_now.metric.SimpleBatcherTask) [InstanceRestClient:401] (241) com.service_now.metric.rest.client.InstanceRestClient - Failed to send data to instance, urlSuffix: api/now/v1/clotho/put, Max Attempts: 2, Attempted: 1, Exception Message: AnalyticsException: Failed to send metric data, Response Code: 400

 

I see the following errors in ACC agent logs:

check:<command:"metrics-logged-users.rb " interval:60 timeout:60 executed:1742883565 metadata:<name:"51b58b9597f3b5506cd43dc3f153afd6_bb3621a8dba8661076ba1f18448f9efd" namespace:"default" labels:<key:"check_full_name" value:"policy: Linux OS Metrics, check: os.linux.metrics-logged-users" > labels:<key:"check_instance_id" value:"51b58b9597f3b5506cd43dc3f153afd6" > labels:<key:"check_type_id" value:"8bc00b53532a330034b8ddeeff7b12a1" > labels:<key:"ci_id" value:"bb3621a8dba8661076ba1f18448f9efd" > labels:<key:"disable_token_replacement" value:"false" > labels:<key:"error_code" value:"ACC-2005" > labels:<key:"exec_mode" value:"shell" > labels:<key:"mid_script" value:"MonitorMetricParser" > labels:<key:"params_background" value:"false" > labels:<key:"params_last_updated" value:"2024-04-04 05:49:04" > > > metadata:<namespace:"default" > Sequence:734 ] check command denied by the agent allow list. Context: Unable to find an allow list entry with shell mode enabled.

 
Can you please help with troubleshooting these issues? Thanks in advance!

 

Below is the installation plan:

1. Install MID server on some host: https://www.servicenow.com/docs/bundle/yokohama-servicenow-platform/page/product/mid-server/concept/...
1.1 Verify MID server is up and running: https://devXXXservice-now.com/now/nav/ui/classic/params/target/ecc_agent.do
1.2. Validate MID server: https://devXXX.service-now.com/now/nav/ui/classic/params/target/ecc_agent.do
Set timezone to America/LosAngeles on the MID server: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0696701
Open the MID server and click validate.
1.3 Open the MID server and click "Setup ACC Listener", enter port 1026
1.4 Open the MID server and click "Setup ACC Monitoring"
1.5. Generate MID server Web API KEY: https://devXXX.service-now.com/now/nav/ui/classic/params/target/mid_webserver_api_key_credentials_li...
2. Install "ITOM Health" application to the ServiceNow instance: https://devXXX.service-now.com/now/app-manager/home/product/source/store/id/bacc0ab31b9cf9507fb9db91...
3. Enable policies "Linux OS*" and "PostgreSQL-*".
https://devXXX5.service-now.com/now/nav/ui/classic/params/target/sn_agent_policy_list.do
4. Install the Agent client collector: https://devXXX.service-now.com/now/nav/ui/classic/params/target/sn_agent_agent_downloads.do
4.1 Verify agent is up and running: https://devXXX.service-now.com/now/nav/ui/classic/params/target/sn_agent_cmdb_ci_agent_list.do
5. Go to Insights Explorer, verify metrics on CIs with types "Linux" and "PostgreSQL Instance".

0 REPLIES 0