If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Note: The hostname cannot be a fully qualified one, it doesn't match the reg expression in the code. So if you defined hosts fully qualified you need to change it.
Also make sure you update the agent on the host you want to run the command on. A system.run command is run on the agent and this is not supported prior to 1.1beta8.
I can successfully add a remote command action however i don't think the command is executing. FYI, I am using zabbix 1.1beta8 on all my test machines.
Here is my remote command "amon01:service sendmail start" -- starts my sendmail
First off, i stopped my sendmail service so when the action is fired it starts my service sendmail, thus i am able to check if the remote command works.
Assigning a trigger that when fired sends a email and remote command, i get the email but when i check my sendmail status it has not started.
One other thing is that if a remote command action is fired, does it show up in the "history of actions page"?
If it does not show you're probably running the wrong agent or the script/command is not executable.
You're right about it not showing in the actions history - even when it works
Just had another thought - what you are doing won't work as the script will run as zabbix and a service command will need to run as root. So unless you're doing a setuid on the service command, you'll need to use sudo or create a wrapper script that you setuid. Maybe do the wrapper first and direct output to a log somewhere.
So ... can you help me?
How i can add remote command execution with web-frontend?
1. Put EnableRemoteCommands=1 in agentd.conf
2. Add some item and trigger with web-frontend
3. But when i'm trying to add action:
-------------------------------------
host.domain.ru:whoami | mail [email protected]
-------------------------------------
Web-frontend say me:
[ERROR:Cannot add action]
incorrect command: 'host.domain.ru:mail [email protected]'
Comment