01-14-2003 03:00 AM - edited 03-02-2019 04:10 AM
Hi!
I have CW2k 4th ed. with RME 3.3.
In the Syslog Analysis i've been trying to create an Automated Action that runs a perl script. The problem is that nothing happens!
The filter i specify is *-*-*-* which should trigger on all mesages? I've also tried a filter with SYS-*-5-CONFIG_I which should trigger on all the config changes.
The syslog messages is inserted in the syslog.log file, but the action is not triggered.
The command line i specify is "perl x:\script\test.pl"
Can anyone help me?
Tommy Walderhaug
01-14-2003 07:09 AM
Include the entire path for perl too and make sure the action is enabled
01-14-2003 11:46 PM
Tried that. Still not working. Also tried to run the script manually from a command line and that works fine.
01-15-2003 04:43 AM
Here's one that works for me. I had to add the specific path for the script because it didn't work with a path variable when called from CW2k:
perl d:\progra~1\cscopx\cgi-bin\sysloga\sampleEmailScript.pl -text_message Test -email_ids xxx@x.x,xxx@x.x -subject "testing" -from cwks@xxx.com -sender cwks@xxx.com -smtp x.x.x.x
I also had to add the "-sender" field because qmail refused to forward, and bounced it, without it...our email police said something about rfc compliance.
01-15-2003 04:49 AM
I'm also using RME 3.4. While none of this may help you, I thought showing one that "does" work might.
01-15-2003 07:50 AM
Try something besides perl to eliminate that first. Try a script/batch file that creates a file or "dir > c:\test.txt".
If you find the file, you know the event is being triggered, and you can work on the balance of the problem (perl script, pathing, etc).
I'm assuming you can see the events you are trying to trigger on coming in to CW2k and the \CSCOpx\log\syslog.log log file, right?
01-15-2003 11:12 PM
I did try to run a batch file, but nothing happens. The syslog.log file is updated with the correct events.
As far as I can see, the problem is the trigger/filter. I have also tried to disable and enable the actions, and restarted the sysloganalyzer.
01-17-2003 07:41 AM
In addtion to being in the syslog.log, is there an entry in RME syslog analyzer for that device/message?
Resource Manager Essentials->Syslog Analysis->Standard Reports
select device you are getting messages from, and generate the report. Does the syslog message show up in that report?
01-19-2003 11:38 PM
Yes, everything seems normal except that the action is not triggered.
Tommy
01-16-2003 04:16 AM
Hi Tommy,
What OS do you use? I suppose it is Win2k. TAC has confirmed to me that there are problems with automatic actions on Win2k as the environment is not passed on properly. So some things run, others don't.
Cheers
Georg
01-16-2003 04:30 AM
Thanks!
Yes, I use w2k. Do you have more information about this? Do you have a example of something that does work?
Regards
Tommy
01-16-2003 04:51 AM
Here's 3 that work for me. Two for catalyst, one for websense not responding to pix.
SYS-*-3-PORT_COLLDIS-*
MGMT-*-5-PORT_ERRDISABLE-*
PIX-*-3-304006-*
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide