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
			
			
			
				Quote from: Victor Kirhenshtein on August 23, 2010, 11:56:47 AM
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
Thanks 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!