01-22-2007 02:21 PM
I can't find instructions on how to do this. There's an automated action for e-mail but not for forwarding syslog messages. Poked around the forum and found a topic regarding this but it was on Solaris. My server is on Windows and I am programming challenged. By the way I am using LMS2.6.
Thanks.
01-22-2007 03:08 PM
Have a look at this link for Windows and remote syslog collector:
01-22-2007 05:12 PM
Thanks for the link.
That requires installing CS which requires Win2k/2k3 to run. Unfortunately I plan on installing this on a monitoring workstation thats running XP.
This seems to be what I am looking for;
A script that runs as an automated action. Does anyone have the Windows "version" of that script?
Thanks.
01-22-2007 05:24 PM
This script will work on Windows.
01-23-2007 11:54 AM
Sorry but I am coding challenged.
here's what I did.
Created a .bat file with this inside
#!D:\Progra~1\CSCOpx\bin\perl
use strict;
use Sys::Syslog qw(:DEFAULT setlogsock);
my $msg = $ARGV[0];
setlogsock('inet');
$Sys::Syslog::host = 'xxx.xxx.xxx.xxx';
syslog('info|local7', $msg);
closelog;
Created an automated action in RME to run the script. Syslog messages are not being forwarded although I can see new messages in syslog.log .
Thanks.
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