Add LogFilter match string for the subject line of the e-mail notification
Hello
On the LogFilter alerts, I add the matching string in the subject line of the e-mail logfilter alert notification. I followed KB 75058 for this requirement. But I'm getting other data also with the match string. Please find the attached screenshot. The chain is marked in yellow. I don't need data which is marke red din. Can you let me know if a setting can be done in the script that retrieves the hitstring so that only the histstring appear
FMS: 5.6.4
Kind regards
Roshan.
Additional accessories:
Hi Roshan
We do something similar. We have configured a Message appropriate for each matching string user:
Then, in the rule Condition, I created an expression UserError containing the following:
def controls = checkObservationAlarms (#LogFilter_ErrorVerbose to 1ms #,)
{the entry->
If (entry.get ("Severity") == "WARNING") {}
return 2;
}
If (entry.get ("Severity") == 'CRITICAL') {}
return 3;
}
If (entry.get ("Severity") == "FATAL") {}
return 4;
}
return 0;
},
{entry, severity-> {switch (severity)}
case 2:
Return entry.get ("User_Message");
case 3:
return "" + entry.get ("User_Message") + "";
case 4:
return "" + entry.get ("User_Message") + "";
by default:
Return ' ';
}}, @foglight_rule_id);
If (checks.size () > 0) {}
return checks [0] [1];
} else {}
Return ' ';
}
By referencing @UserError in the subject line, I get the Message to the appropriate user.
I also do a similar thing for the severity of error appropriate in my subject line.
Hope this helps
Brian
Tags: Dell Tech
Similar Questions
-
Hello
We test the automatic configuration of alerts by email of all the alarms of 54 by default since version 5.0 of the device of vCenter.
Since this is something that we intend to do on all the installations/upgrades, it can be a time-consuming task having to manually set each alarm set on each vCenter so I indicated to an article in the blog of VMpros which appears to address a similar task and who suggests using PowerCLI script to take care of this:
http://blog.vmpros.nl/2011/07/04/VMware-change-alarm-actions-with-PowerCLI/
I fixed the script from its original version because it shouldn't change certain actions of alarm to send alarm notifications at a different e-mail once a week. Instead, we will propose a one-time activity.
After configuring vCenter server connection information and change the e-mail addresses, I have successfully tested the custom script to add notifications by e-mail to a test alarm (named "Test alarm") to a simple action, that I had created earlier (turn on/off a virtual computer in our laboratory). The added script notifications by e-mail to our alarm test as expected without error.
Before you change the script to add e-mail notifications to all 54 defect detectors as needed, I decided to test the custom script against one of the predefined alarms (named 'Host the status of material power'). While the script added notifications by e-mail to the alarm 'Material receiving power status' as expected, he finished with errors.
I just want to make sure that our custom script contains no script errors before using it on all the installations/upgrades (any suggestion or criticism is welcome).
I pasted the error resulting from the prompt of Windows PowerShell commands below.
Thank you and best regards,
Massimiliano
==================================================
PowerCLI D:\ >.\Change_Alarm_Datacenter.ps1
Action Type Trigger
----------- -------
SendEmail...
SendEmail...
SendEmail...
New-AlarmActionTrigger: 21/05/2012-16:35:11 new-AlarmActionTrigger A
specified parameter was incorrect.
D:\Change_Alarm_Datacenter.ps1:37 car: 82
+ Get-AlarmDefinition-name '$actAlarm1 ' | Get-AlarmAction | New-AlarmActionTri
walking landing < < < < - StartStatus 'green' - EndStatus "yellow."
+ CategoryInfo: NotSpecified: (:)) [-AlarmActionTrigger] new, Inva)
lidArgument
+ FullyQualifiedErrorId: Client20_AlarmServiceImpl_NewAlarmActionTrigger_
ViError, VMware.VimAutomation.ViCore.Cmdlets.Commands.Alarm.NewAlarmActionT
rigger
UID: /VIServer=administrator@vcenter5:443/Alarm=Alarm-alarm-17/SendEma
ilAction = 1508771755/AlarmTriggeringActionTransitionSpec =-83030421
6.
StartStatus: Green
EndStatus: yellow
Repeat: false
AlarmAction: SendEmail
UID: /VIServer=administrator@vcenter5:443/Alarm=Alarm-alarm-17/SendEma
ilAction =-1903891658/AlarmTriggeringActionTransitionSpec =-8303042
16.
StartStatus: Green
EndStatus: yellow
Repeat: false
AlarmAction: SendEmail
UID: /VIServer=administrator@vcenter5:443/Alarm=Alarm-alarm-17/SendEma
ilAction =-1765994019/AlarmTriggeringActionTransitionSpec =-8303042
16.
StartStatus: Green
EndStatus: yellow
Repeat: false
AlarmAction: SendEmail
==================================================
Okay, I think I found the problem.
You set 3 actions on this alarm (3 x Email).
This means that it
Get-AlarmDefinition -Name "$actAlarm1" | Get-AlarmAction
Returns 3 objects (one for each action).
Unfortunately, the New-AlarmActionTrigger cmdlet wants 1 as input Action, not a table object.
The solution is to select the Action of explictely for which you want to change the trigger.
Something like that
Get-AlarmDefinition -Name "$actAlarm1" | Get-AlarmAction | Select -Index 0 | New-AlarmActionTrigger -StartStatus "Green" -EndStatus "Yellow" Get-AlarmDefinition -Name "$actAlarm1" | Get-AlarmAction | Select -Index 1 | New-AlarmActionTrigger -StartStatus "Red" -EndStatus "Yellow" Get-AlarmDefinition -Name "$actAlarm1" | Get-AlarmAction | Select -Index 2 | New-AlarmActionTrigger -StartStatus "Yellow" -EndStatus "Green"
Beware, the script does not remove the old triggers, so you will end up having several triggers for actions.
First use the remove-AlarmActionTrigger to remove any existing triggers.
-
How do I opt for the e-mail notification when someone responds
How do I opt for email notification when someone answers one of my questions?
I see now that the email notice enter my btinternet spam box. You can see that they go to my Inbox. Thank you.
-
The new AOL E-mail look, which yesterday began a quarter of the screen is blank on the right side, thus reducing the space for the e-mail subject line, which limits its usefulness. Resize attempts do not work on the right side, so I can't expand the e-mail subject line? Running XP pro and Mozilla Firefox 5. No problem with I.E.
Thank you, these settings were already in place. AOL said now erase the cache, cookies and history... to solve, which worked. (I deleted the cache and a story time.)
-
How can I add a separate apple for the iphone and ipad wife id
How can I add a separate apple for the iphone and ipad wife id
Hi, are the measures already implemented? If they are, you need to configure them again and establish a Apple ID at this time.
-
Add sync/google account for the purpose of email
I tried to add to my Google (g-mail account) for the metro mail application in windows 8 and sync all my mail, but it does simply not work despite being given an option to add a Google account. How can I go about it? Help, please
Hi Dachy,
Google has stopped supporting new links to service Regional (Exchange ActiveSync) in some cases. The EAS is a technology that allows you to synchronize your email, calendar and contacts between multiple devices (like your desktop, laptop and tablet).
For more information, see the link.
How to sync Google services with Windows
Hope this information helps. If you have any questions, please let us know.
-
I try to add an image map for the first time using Dreamweaver CC
I am trying to add an image map for the first time using Dreamweaver CC in an html site.
I can get map controls is displayed when I select the image in the code, and I can select the rectangle tool.
However, when I try to select the area of the image disappears from the section of the map of the properties viewer and I can't select the area for my hyperlink.
What I am I missing videos online are it seems so simple, but something with my page is not allowing me to withdraw this.
This is the code section and the image that I'm trying to add the link.
< side class = "sidebar" >
< img src = "images/flowchart.jpg" alt ="product dev. Flowchart">
< / side >
Please help or give me any advice... There might be something to do with the fact that my site is "sensitive"?
Hello
You could just add links to each box, but a better solution would be to use svg for this. Unfortunately, it is easier for me to write for someone who does not know svg to do.
If you have Adobe Illustrator create your svg using this program, then it would be a case to add links manually to each box created in the svg code. SVG is an xml-based language and not a real image, even if this is how a browser will display the it.
PZ
-
How do you add a google calendar for the web site of muse, the updates are synchronized
How do you add a google calendar for the web site of muse, the updates are synchronized?
You can add Google Calendar using iframe which Google provides if you go to calendar settings.
Once you insert this code into the page of Muse by object > insert HTML, the calendar will be displayed on the page.
https://support.Google.com/calendar/answer/41207?hl=en
Thank you
Sanjit
-
Is there a unique ID for the e-mail messages in the Inbox
Hello
Is there a unique ID for the e-mail messages in the Inbox as a ToDo
do we read the ID unique to
String UniqueID = todo.getString (ToDo.UID, ToDo.ATTR_NONE); where todo is a ToDo
getMessageID?
-
How can I change the filter settings for the e-mail account of my child?
How can I change the filter settings for the e-mail account of my child?
Hi Schaefle,
May I know if you refer to web filtering? If Yes please visit this link to learn how to change the filter settings.
Note: for to work in web filtering settings, you must install and configure the filter of family security on each computer your child uses.
For more information on parental controls, please visit http://windows.microsoft.com/en-US/windows-live/essentials-help-center
Thank you!
-
remote desktop hang at 'Please wait for the system event notification' during logoff
When I disconnect a remote connection, sometimes the GET logoff screen stuck at "Please wait for the system event notification" next time I try to open a session.
This can also happen if that I disconnect the user, but the user seems to weigh on this same screen as well.There is a particular difficulty for this? I can connect as long as administrator to another account, I can't kill connection attached somehow to be registered in the next time?
Thank you
Hello
I suggest you to take a look at the answer in this thread and check if it helps.
Hope this helps,
-
I bought adobe illustrator and waiting for the e-mail so I can download it but it does not appear
I bought adobe illustrator and waiting for the e-mail so I can download it but it does not appear
Hello
I don't see no active membership/registration under the Adobe Id on the forums.
Please confirm if there is any other Adobe Id in which you may have subscribed.
Kind regards
Sheena
-
How do I just get messages from the Inbox to show the new mail notification?
I install Thunderbird with Gmail and it works like a charm. The only complaint I have is that the new mail notification seems to grasp a selection of emails unread from different folders and often it does not show the new relevant emails in my Inbox. ESP. the all mail folder seems to provoke the doubling of message notifications, but this isn't the only one.
All I want is my Inbox for new e-mail notifications. Is there anyway to change the current behavior?
And there is no solution to limit the mail in a particular folder Inbox or other, so I suggest ur stuck.
This add-on could help https://addons.mozilla.org/en-US/thunderbird/addon/xnotifier/?src=search , but I have really no idea.
-
Where can I use the following script for the definition of notification by email
BEGIN() DBMS_SCHEDULER.add_job_email_notification
job_name = > 'SCH_UPDATE ',.
recipients = > ' [email protected] ',
events = > "job_failed"
filter_condition = > ': event.error_code <>20001 OR EXTRACT (HOUR OF THE CAST (: event.event_timestamp TIMESTAMP)) > 6');
END;
/
The email can not be filtered by the condition clause and show the error msg
filter_condition ": event.error_code <>20001 OR EXTRACT (HOUR OF THE CAST (: event.event_timestamp TIMESTAMP)) > 6"failed with the error-1008.
ORA-01008: not all variables
However, the scripts will work if I separate two condition, two of them run without errorsBEGIN
() DBMS_SCHEDULER.add_job_email_notification
job_name = > 'SCH_UPDATE ',.
recipients = > ' [email protected] ',
events = > "job_failed"
filter_condition = > ': event.error_code <>20001');
END;
/
BEGIN
() DBMS_SCHEDULER.add_job_email_notification
job_name = > 'SCH_UPDATE ',.
recipients = > ' [email protected] ',
events = > "job_failed"
filter_condition = > ' EXTRACT (HOUR OF THE CAST (: event.event_timestamp TIMESTAMP)) > 6');
END;
/
My workplace DB is 11.2.0.4
Does anyone have the same problem? Is there a any restriction on the use of the object of event binding?Hello
Filter_condition parameter can contain only 1 condition, not multiple ones. This is explained in the following note:
Filter_Condition in DBMS_SCHEDULER. ADD_JOB_EMAIL_NOTIFICATION does not (Doc ID 1592124.1)
The documentation is confusing but, to, looks like you can have a GOLD of the example described condition.
-
The name of the file is not part of any form field. The name of the file will be also unique whenever the form is used. I also want the name of the file that will be followed by the expression 'evidence' returned by the customer, as in:
Topic: Proof of Papa Murphys SALEM 8 - 30.pdf returned by the customer
Here is my existing script, but I need to know the syntax to get the PDF file name added in the subject line.
this.mailDoc ({bUI: true, cTo: "[email protected]", bassujetti: "proof returned by the customer", CMSG: "attached is the signed evidence.}) Please send to the graphics dept '});
I'm not very familiar with Javascript so have tried to reconstitute it.
Unfortunately, there is only so much you can google to get a working solution, I would suggest that you get at least a little familiar with JavaScript (there are a lot of good tutorials and books available). If you want an introduction to Acrobat JavaScript, have a look here: Beginning JavaScript for Adobe Acrobat
There is a property of the document object that returns the name of the file. You can read the property of Doc.documentFileName here: DC Acrobat SDK Documentation
In the simplest implementation, you can use this to enter the file name in the subject line:
this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: this.documentFileName, cMsg: "Attached is the signed proof. Please forward to the graphics dept"});
If you want to add more information that just the file name, you will need to assemble your subject line by using variable elements and string constants. Something like this works:
this.mailDoc({bUI: true, cTo: "[email protected]", cSubject: "The filename is " + this.documentFileName, cMsg: "Attached is the signed proof. Please forward to the graphics dept"});
Maybe you are looking for
-
HP Elitebook 8460p: hp elitebook 8460p gpu upgrade
I have a hp elitebook 8460p/8 GB ddr3 ram / windows 7 pro 64-bit/intel core i7 2720QM 2.20 - 3.30 ghz and amd radeon hd 6470 M 1 GB... .i want to upgrade my graphics card to nvidia geforce gtx 900 m 2 to 4 GB for increase the performance of my laptop
-
How can I change admisistrater on XP
Have a new computer and I want to change myself admin rights. How can I do this
-
Error: 'USB port malfunctioned.
Original title: I have windows xp my mouse will stop working on and everything freezes. I got an error message that says that a port msb had malfunctioned. Any suggestions The mouse on my computer will just freeze and not move for hours at a time. Th
-
my computer got a nasty bug and I need to wipe it off and re - install everythingI can't get anything to run now
-
Does not print unless I refresh the web page of the printer
Photosmart Premium CN503A with iMac OS 10.7.2. Driver deleted and reinstalled through system preferences > print and scan. The printer made a kind of upgrade software wireless this week. (However, the problem before this event). The printer, close