I searched for threads with solutions but I'm not having any luck...
I have set up the following test scenario where I check for SSH running when I manually stop SSH, Zabbix does its thing and emails the right people then attempts to run a remote command to restart the SSH service. I have done the following in the sudoers file (very liberal rights):
zabbix ALL=(ALL) NOPASSWD:ALL
Then I made sure I had the right command in zabbix for the action:
ServerName:sudo /etc/rc.d/sshd restart
It is still not working and when on the host when I try to run sudo -u zabbix /etc/rc.d/sshd restart I get an error that says "cannot read proc/9711/exe permission denied.
Any help would be greatly appreciated.... I really want to use the remote commands.
And yes... with Debug level 4 the command is actually getting executed on the host.
Dave
I have set up the following test scenario where I check for SSH running when I manually stop SSH, Zabbix does its thing and emails the right people then attempts to run a remote command to restart the SSH service. I have done the following in the sudoers file (very liberal rights):
zabbix ALL=(ALL) NOPASSWD:ALL
Then I made sure I had the right command in zabbix for the action:
ServerName:sudo /etc/rc.d/sshd restart
It is still not working and when on the host when I try to run sudo -u zabbix /etc/rc.d/sshd restart I get an error that says "cannot read proc/9711/exe permission denied.
Any help would be greatly appreciated.... I really want to use the remote commands.
And yes... with Debug level 4 the command is actually getting executed on the host.
Dave
Comment