Передача параметров из Action в скрипт
-
-
Возможно. Делаем action например так:
В конфиге агента:
ActionShellExec = MyAction:my_script $1В настройках action на сервере делаем remote action, в поле action пишем
MyAction "[i]текст[/i]"В тексте можно использовать макросы описанные в документации в разделе 8.6 (https://www.netxms.org/documentation/netxms_user_manual.pdf).
Например если я хочу передать имя хоста и текст сообщения то можно написатьMyAction "%n %m"И вызываем этот action в event processing policy для нужных событий.
-
-
-
-
-
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login