Answer the question
In order to leave comments, you need to log in
How to run a command via SSH in Zabbix?
Good afternoon, comrades-gentlemen-colleagues!
For the second week I have been struggling with the question - how to force Zabbix to restart the service on the Zimbra mail server.
This is how I set it up:
When the trigger fires, nothing happens, and the following entry appears on the events.
But if you simply run the command
"$ ssh [email protected] zmmailboxdctl restart" on the zabbix server in the console, then the service on the remote server is restarted.
Why is this happening I don't understand?
Answer the question
In order to leave comments, you need to log in
Thanks everyone for the advice and replies. The problem was in the settings of the ssh server on Zimbra, I added the useDNS no parameter to the ssh config, which allowed it to work normally through the IP address without being tied to the DNS host name. BUT zabbix still writes an authorization error as in the second screen. So the problem was not completely resolved - I will write about it on the Zabbix forum.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question