Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DFM mail notification condition up

Status
Not open for further replies.

hajduk

Technical User
Oct 19, 2001
1
0
0
HR
Hello.
We have dfm e-mail notification (Cworks2000 CDone LAN solution), which makes notifications about network events. We don't know how we can get notification, when network problems dissapear (port comes up,...).
Thanks in ahead for your help.
 
Look in the smarts/rules directory mailFilter_Notify.conf

At the bottom of the file is a section to omit clear events. You can comment out the section or just change
currentEvent->dropThis=TRUE
to be
currentEvent->dropThis=FALSE

--Guyute
 
Ok here is a down and dirty way of setting up syslog messages to e-mail you.

First go to the following directory location.
Resource Managers Essentials>Administration>Syslog Analysis>Define Automated Action

From there you will want to "add" and select the appropriate message types for what you are looking for. Name the action and enable it.

Then at the bottom in the Command line input the following string with your appropriate information.

c:\progra~1\CSCOpx\bin\perl c:\progra~1\CSCOpx\cgi-bin\sysloga\sampleEmailScript.pl -text_message $M -email_ids (((someone@somewhere.com))) -subject "(((A Subject Line here)))" -from (((CiscoWorks2000 server e-mail address.com))) -smtp (((e-mail server IP or DNS name here)))

Change everything within the (((_))) fields with your information and remove the (((_))) brackets. This should work as long as the information is valid. and you are allowing syslog messages to CiscoWorks. To add more recepients just add a comma after the name and add to the same field. I hope this helped.
 
That will work, but is very complex when the functionality is already there and all you need to do is add an if statement and use the glob() function on the current event in the ASL to get it to only send clears for the notifications you want.

--Guyute
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top