issue trying to use "Run Command on Agent" from Agent Client Collector Spoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā12-27-2024 06:03 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-08-2025 07:54 PM
@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.