I made some customized checks using system.run
e.g. get ServiceTag of servers, by this command:
sudo /usr/sbin/dmidecode -s system-serial-number
After I added the sudo settings to /etc/sudoers, this item works well on erery server except the zabbix server itself.
Then I added this action to the administration - scripts, then I got a ERROR "Remote commands are not enabled" when executing it on zabbix server, but I'd already set EnableRemoteCommand to 1 in zabbix_agentd.conf and restarted the zabbix_agentd.
SLES 11 SP3 x86_64, Zabbix-2.4.5, and this is my zabbix_agentd.conf on Host zabbix server:
Any help, please?
e.g. get ServiceTag of servers, by this command:
sudo /usr/sbin/dmidecode -s system-serial-number
After I added the sudo settings to /etc/sudoers, this item works well on erery server except the zabbix server itself.
Then I added this action to the administration - scripts, then I got a ERROR "Remote commands are not enabled" when executing it on zabbix server, but I'd already set EnableRemoteCommand to 1 in zabbix_agentd.conf and restarted the zabbix_agentd.
SLES 11 SP3 x86_64, Zabbix-2.4.5, and this is my zabbix_agentd.conf on Host zabbix server:
# cat /usr/local/zabbix/etc/zabbix_agentd.conf|grep -v -E '(^#|^$)'
LogFile=/tmp/zabbix_agentd.log
EnableRemoteCommands=1
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix Server
LogFile=/tmp/zabbix_agentd.log
EnableRemoteCommands=1
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=Zabbix Server
Any help, please?

Comment