Specified action not running for an event
-
I am new to this NetXMS and I have set an action as shown in ACTION IMG attached.
Action is to "Execute command on management server" and command is "ping 172.20.100.1". The reason for pinging is, if this ping works then I would call a sql query to execute (query to connect to a different database and insert data).
I specified this Action in Event column, but it is not executed even when the event becomes TRUE!


-
Hi!
How did you check the results of the ping? As it configured now, server will just execute ping command - you only will be able to notice thos pings by capturing packets or looking at server's debug output.
Best regards,
Victor -
@victor said in Specified action not running for an event:
Hi!
How did you check the results of the ping? As it configured now, server will just execute ping command - you only will be able to notice thos pings by capturing packets or looking at server's debug output.
Best regards,
VictorThanks for your reply.

I modified the action like 'del c:\ok\ok.txt', just to ensure that the action is running. But even when the event is triggered, this specific action is not running. Can't we not run commands like these? -
Hi!
In case of del c:\ok\ok.txt, the problem is that \ is an escape character (it is escape character in all event-related text strings: event message, alarm key, etc.). So you have to specify it as del c:\\ok\\ok.txt.
Best regards,
Victor -
Man, great thanks to you. It works well.
Now I would write a sql script to connect to my another database and insert required data.Thanks to You!
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