Answered by:
Parameter value in Alert Name field

Question
-
Hi all
I've made a script based monitor in a custom management pack, that isn't sealed. The monitor calculates the available memory in percentage. The monitor is working fine. So now I want the percentage value in the Alert Name field and not in the description. I tried it with the following line:
Memory Available Percentage $Data/Context/Property[@Name='percentage']$
I set the 'percentage' in the script like that:
Call oBag.AddValue("percentage",mem_avper)
Call oAPI.Return (oBag)But in the SCOM Console the alert is looking like that:
Memory Available Percentage $Data/Context/Property[@Name='percentage']$
Can anybody help me?
Thanks kammlu
- Moved by Vivian Xing Wednesday, June 30, 2010 6:50 AM (From:General)
Tuesday, June 29, 2010 6:40 AM
Answers
-
Here is the link that confirms that it can't be done:
Good Luck
Graham
View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/- Proposed as answer by Graham Davies Wednesday, June 30, 2010 8:19 PM
- Marked as answer by Vivian Xing Monday, July 5, 2010 9:18 AM
Wednesday, June 30, 2010 10:52 AM
All replies
-
Hi
You can't do parameter replacement in this way for the Alert Name - hence you are seeing precisely what you typed. You might be able to leverage the SDK to do this or run powershell scripts to retrospectively set the alert name but you're more likely to get help on that approach in the extensibility forum:
http://social.technet.microsoft.com/Forums/en-US/operationsmanagerextensibility/threads
Good Luck
Graham
View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/Tuesday, June 29, 2010 7:05 AM -
Hi Graham
Thanks for your fast answer.
Is it possible to move it in the extensibility forum or should I write it again there?
Thanks
kammlu
Tuesday, June 29, 2010 8:33 AM -
Hi kammlu,
Does any information on the following link help:
http://wiki.slothx.net/index.php?title=SCOM_2007:Alerts_Powershell_Examples
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.Wednesday, June 30, 2010 6:51 AM -
Here is the link that confirms that it can't be done:
Good Luck
Graham
View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/- Proposed as answer by Graham Davies Wednesday, June 30, 2010 8:19 PM
- Marked as answer by Vivian Xing Monday, July 5, 2010 9:18 AM
Wednesday, June 30, 2010 10:52 AM