Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo messages #142

Open
Jancs-E opened this issue Jul 5, 2020 · 0 comments
Open

sudo messages #142

Jancs-E opened this issue Jul 5, 2020 · 0 comments

Comments

@Jancs-E
Copy link

Jancs-E commented Jul 5, 2020

Hi!
I have to note each time I try to install your srcipts it is some kind of woodoo process, this time too -
I have Zabbix 5 server/agent and I try to start SMART monitoring using your latest script (template 3.4)

On the server using CLI, everything works:
sudo -u zabbix /usr/sbin/smartctl -i -H -A -l error -l background /dev/sda -d sat || true
returns the expected results (with -u zabbixagent, too), detection works, but getting smart parameters in the expected automated process - no. I get such "spam" for each of the detected devices:

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

What specific agent setting are required for it to run? Allow to run as root? suid smartctl? what else? may be this "true" also shuold be sudo-ed?

How can I test what is wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant