We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

issue trying to use "Run Command on Agent" from Agent Client Collector Spoke

Daniel Braga
Tera Expert

Hello all,

I am trying to use the Agent Client Collector Spoke to create some alert remediations. However, i have problems running commands that need root access (sudo)

I have added the command to "check-allow-list" json file and the action completes with success, however i get a log message: "no tty present and no askpass program specified and the action is not completed"

 

Do you know of a way circunvent that problem?

1 REPLY 1

Severin Launiau
Giga Guru

@Daniel Braga: there is likely something missing in the sudo configuration for that user. Notice the NOPASSWD in the default sudoers file from https://www.servicenow.com/docs/bundle/xanadu-it-operations-management/page/product/agent-client-col.... You can confirm the current configuration using "sudo -l -U servicenow" and make sure this command is listed with NOPASSWD.