NetXMS Support Forum

English Support => General Support => Topic started by: mrkolle on October 14, 2014, 03:07:46 PM

Title: Action is not taken (executed)?
Post by: mrkolle on October 14, 2014, 03:07:46 PM
Hello,
I have trouble getting actions to work.
I cannot find any log why my action is not executed.

My goal simple - I need to execute a script on management server (send SMS) whenever a node goes down.

(http://img217.imagevenue.com/loc981/th_286917601_1_122_981lo.jpg) (http://img217.imagevenue.com/img.php?image=286917601_1_122_981lo.jpg)

(http://img108.imagevenue.com/loc350/th_286918670_2_122_350lo.jpg) (http://img108.imagevenue.com/img.php?image=286918670_2_122_350lo.jpg)
     
Title: Re: Action is not taken (executed)?
Post by: Victor Kirhenshtein on October 14, 2014, 03:27:01 PM
Hi,

try to set debug level to at least 4 (add DebugLevel = 4 to netxmsd.conf) and check server's log. If you have logging set to event log, I suggest to change it to file first.

Best regards,
Victor
Title: Re: Action is not taken (executed)?
Post by: mrkolle on October 16, 2014, 06:17:04 PM
Quote from: Victor Kirhenshtein on October 14, 2014, 03:27:01 PMtry to set debug level to at least 4 (add DebugLevel = 4 to netxmsd.conf) and check server's log.
Thanks, I can see clearly that script was executed but actually it was not because I had a typo in command line.
I think return value (of cmd.exe /c) in log file would be a help.