Hi - thanks for that - perfectly described how to do it!
Hi - thanks for that - perfectly described how to do it!
Dirk:
Can we add additional fields of information to the log? Like, Resolution State? Recipients who have received this notification? That would make this very valuable as an auditing point. Where and How can we add additional fields? I am at a loss as to how SCOM 2012 pulls SMTP outgoing mail for notifications and there is now internal log (within SCOM) to verify who has received notifications. Thanks in advance.
what am I missing? I want to create a test subscription to notify ONLY when a specific event occurs in a log. However, when I create the Subscription, there seems (to me) to be no way to remove the line "Notify on all alerts" from the Subscription Criteria... am I missing something?
I have been trying to raise notification via Command channel using powershell script in SCOM 2012
we currently have this working in SCOM2007 at the moment a simple script
get-date >> C:\Temp\SimpleTest.txt
will run interactively on my servers but once I feed it in to command notification channel fails with not trace in the logs I see the script launch by Opsmgr but not complete , nor record of its failure ?
be carefull you are unable to run any scruipt until you enable them in powershell. try this:
Set-ExecutionPolicy remotesigned
Hi Fesiro,
Thanks for the article. It is very helpful. I am a newbie to SvcMgr and OpsMgr and I am trying to do the following and would appreciate any help. The following is what I am trying to do:
1) Monitor Servers using SCOM
2) When one of the monitored server's HDD has a pre-determined amount of disk space left or a service that has stopped, raise an alert in SCOM.
3) With that alert, raise an incident in SvcMgr.
4) Using Orchestrator, remediate the issue and change the alert status in SvcMgr.
I believe the following is the approach I need to achieve this:
1) SCOM monitors the servers and raises the alerts
2) Using the diagnostic and recovery task in SCOM, the service gets restarted / the file gets deleted
the PS produces the customised resolution state of that alert
3) Modify the incidence list is SM that whenever that particular type of incidence comes in to from SCOM, it gets marked in a particular way
4) Once the specific incidence is created in SM, the orchestrator runbook is triggered and it goes and marks it as resolved.
I have a question to ask in regards to this. I believe I can create a command channel to change the nature of the alert in SCOM. Say for example I want to rename all critical alerts coming from a particular server for disk space/service stopping, I want to change all critical alerts to say "Assign to SvcMgr". Is there a way I can achieve that? I am really a newbie and have not got a lot of experience with powershell. Would you be able to direct me towards anything similar? Any help will be greatly appreciated.
Thanks in advance.
Hi Fesiro
I also forgot to mention that I have created a custom alert state in SCOM in Administration-->Alerts-->New with an ID of 19. Ideally I would want to convert all the new alerts of the type that I want into alerts of this type.
Do you perhaps have a script to send out sms's with a modem?