-
Notifications
You must be signed in to change notification settings - Fork 20
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 issue #3
Comments
You are on the right path. Try to comment out the entire line:
|
Defaults:zabbix !requiretty -> this actually means do not require tty for user zabbix |
odd... What distro version are you running this zabbix agent on? |
Zabbix agent runs under zabbix user: zabbix 30980 0.0 0.2 76888 1348 ? S Dec30 0:00 zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf Distro: |
Sorry, wanted to check on the same server ... but none of them run zabbix with sudo enabled. |
Do you have selinux enabled? |
selinux in permissive mode. |
were you able to resolve this issue? |
Unfortunately, no. Had to use a different, more primitive solution. |
I found RHEL 6.5 where i can test it, give me some time. |
well when I am trying to import the template for zabbix 2.4 its not getting imported |
Hi linuxsquad, |
Hi There,
This script does not seem to be working in RHEL or it's just me :)
When I have the following setting (with SUDO) in zabbix_agentd.conf:
UserParameter=mdraid[*], sudo /usr/local/bin/zabbix_mdraid.sh -m'$1' -$2'$3'
UserParameter=mdraid.discovery, sudo /usr/local/bin/zabbix_mdraid.sh -D
And execute the following from Zabbix proxy:
zabbix_get -s HOSTNAME -k mdraid[/dev/md0,d,1]
I am getting the following error ("sorry, you must have a tty to run sudo") in zabbix_agentd.log:
25547:20141229:090259.961 Requested [mdraid[/dev/md0,d,1]]
25547:20141229:090259.961 In zbx_popen() command:' sudo /usr/local/bin/zabbix_mdraid.sh -m'/dev/md0' -d'1''
25547:20141229:090259.962 End of zbx_popen():7
25552:20141229:090259.962 zbx_popen(): executing script
sudo 25546:20141229:090259.970 listener #1 [processing request]
25546:20141229:090259.970 Requested [system.cpu.util[,steal]]
25546:20141229:090259.970 Sending back [0.000000]
25546:20141229:090259.970 listener #1 [waiting for connection]
: sorry, you must have a tty to run sudo
Yes, I have already tweaked /etc/sudoers file:
/etc/sudoers:
zabbix ALL=(ALL) NOPASSWD: ALL
Defaults:zabbix !requiretty
Any ideas how to make this work?
The text was updated successfully, but these errors were encountered: