Unsolved
This post is more than 5 years old
1 Message
0
501
October 30th, 2007 09:00
Testing hook script...
I am trying to test a hook script before putting it in place. What is the best way to accomplish this? Setting it as a server tool and executing it via the right click menu in the notification log does not work, I get:
InternalError: main did not receive NotificationName!
What is the correct context?
Thanks in advance.
InternalError: main did not receive NotificationName!
What is the correct context?
Thanks in advance.
No Events found!
FredericMeunier_0588be
143 Posts
0
October 31st, 2007 07:00
using the hook script as a server tool won't work "as is" because it doesn't define (by default) the notification you select. Also, the hook script is really in between the DM and SAM, so depending of what you are doing (acceding SAM using self-> or acceding the DM) it won't work.
In order to test a hook script using the production notifications, you can start a new SAM on a dev/test server (different broker) and subscribe (ics.conf) to the production DM using : / syntax. It will receive the notificationss from the DM and apply your hook script (if you configure so in the dev/test ics.conf server).
Hope this helps,
--Fred
Frederic Meunier
Solutions Watch4Net Inc
APG & Smarts InCharge integration
http://www.watch4net.com