R
R
rbs972022-01-17 18:46:51
linux
rbs97, 2022-01-17 18:46:51

How to run a command on a remote machine?

How to execute a command on a remote machine, and if the condition is true, print the trigger in the Zabbix monitoring system?

For example, run the command:
cat /tmp/file | grep {parametr}
And if parametr equals the given value, output an alarm.

I would be grateful for any answers and links to resources related to this issue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2022-01-17
@rbs97

on the side of the remote machine in the zabbix agent, there must be a config with the prescribed command: https://www.zabbix.com/documentation/5.0/en/manual...
on the side of the zabbix server, the polled host must have an item
https:// www.zabbix.com/documentation/5.0/en/manual...
as well as a trigger that will fire if item = something there
https://www.zabbix.com/documentation/5.0/en/manual...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question