cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
513
Views
0
Helpful
3
Replies

Email Messages from SYslog

londint
Level 1
Level 1

I have edited all the neccessary configs to receive syslog messages by email. In the %NMSROOT% file, I can see the message configured under %SYS-5-CONFIG_I as a test and done the banner testing.

he following has also been edited appropriately

drive: \%NMSROOT%\cgi-bin\sysloga\sampleEmailScript.pl -text_message $M -email_ids your e-mail address -subject "testing" -from your name -smtp your smtp server name

But it is still not working. I do not receive email. What else can I do or check. ?

Thanks

3 Replies 3

andrea.meconi
Level 2
Level 2

Hi,

try with

drive:\%NMSROOT%\bin\perl drive:\%NMSROOT%\cgi-bin\sysloga\sampleEmailScript.pl.

Check the SyslogAnalyzer.log file!

Andrea.

Thanks

No this did not work. Tried running the command from the command line but it came up with the error

Cannot locate CRM.pm in @INC (@INC contains: .) at SampleEmailScript.pl line 32.

Any ideas why?

Thanks

Hi,

CRM is an external object from perl library used by SampleEmailScript.pl.

Please verify your system environment: NMSROOT=C:\CISCOW~1\CSCOpx

with this into your action

c:\CISCOW~1\CSCOpx\bin\perl c:\CISCOW~1\CSCOpx\cgi-bin\sysloga\ConfigChange.pl -text_message $M -email_ids your_mail_add -subject "subject..." -smtp mail_server.

You can try this from command line.

Andrea.