This one is a quick and dirty, just to help those who are trying to push the Telegraf agent from the vROPS / Aria Operations UI but are getting an error. This is likely because the account doesn’t have passwordless sudo so lets set this up!

Create the following file if missing /etc/sudoers.d/vmware-arc and add the following content.

Defaults:arcuser !requiretty
Cmnd_Alias VAPCOMMANDS=/usr/bin/systemctl * ucp-telegraf.service, !/usr/bin/sys>

arcuser ALL=(ALL) NOPASSWD: VAPCOMMANDS

Update the permissions on the file with the following command

sudo chmod 440 /etc/sudoers.d/vmware-arc

Then try to deploy the agent again via the UI.

Hope this was helpful

vMan