My response to that is "ewww". :) Individual CPU monitoring is "interesting" to me but customers should understand why they do this in the first place.
Normally - we monitor the CPU as a total of all cores - total cpu utilization. When that is saturated - the box is impacted. Makes sense, right? The whole point of discovering individual CPU's - would be to monitor and detect when a SINGLE processor was saturated. This is only beneficial to do - when trying to detect single threaded run-away applications, which consume 100% of "Processor 0" or a single core. While I couldn't call this a "rare" condition to look for, it is something that most customers I speak with don't understand. So when I ask them "why did you enable individual CPU discovery?" .... I get blank stares, shrugged shoulders, and people looking at each other. This is the kind of behavior that will cripple a monitoring system. Everything you monitor should be intentional, and understood. Or it should be turned off. :) To add insult to injury - for years this didn't even work right. SCOM didn't always discover cores - it would discover sockets, which didn't align to the perf counter instances. Then we Windows changed from "Processor" object to using "Processor Information" object - we updated part of the MP to cover this but didn't change the discovery of the perfmon instance discovery - so these weren't aligned and monitoring didn't even work.... this was overlooked because it was an optional discovery that not many customers us. Even in the latest MP's, this doesn't work 100%. We do discover individual cores, but the discovered perfmon instance actually isn't correct in multi-socket boxes (I just discovered this looking into it now) Now - your issue was more about not wanting CPU alerts during certain periods, without putting the whole box into Maintenance mode. Since we cannot put "monitors" into maintenance mode - the best we can do is place instances of specific classes into MM. For the total CPU monitor - you have to put instances of "Windows Server Operating System" into MM. That's not the whole box - but that will include rules and monitors targeting the OS. If you want to put JUST the individual processors in MM during backups (which honestly, is REALLY weird) AND the goal is to NOT get ANY cpu alerts during backups - you'd have to make sure the "total" CPU monitor is disabled that targets the OS.... since that instance won't be in MM. Every request for help - should start with a BIG step back - and say "this is what I am trying to accomplish" and then include any specific customizations you have made from the default. That helps others make sure they aren't helping you shoot yourself in the foot.... but to understand the big goal, and then discuss ways to accomplish it. From: listsadmin@lists.myitforum.com [mailto:listsadmin@lists.myitforum.com] On Behalf Of Pete Hakesley Sent: Friday, April 29, 2016 9:04 AM To: ms...@lists.myitforum.com Subject: [msmom] RE: SCOM 2012 R2 Powershell Actually you were correct. Classes are once the Discover CPU's are ernabled. Microsoft.Windows.2008.Processor Microsoft.Windows.2003.Processor Microost.Windows.6.2.Processor (windows 2012) Thanks again. Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre Services t: +44(0)845 155 6556 ext: 4006 e: phakes...@sccis.net<mailto:phakes...@sccis.net> | w: www.scc.com<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.scc.com%2f&data=01%7c01%7ckevin.holman%40microsoft.com%7cc0e404838de3488ccc2408d37037e870%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=k8J%2fA5QHF5rOYxWzunYQ94sM6uz1021ELt84xigJbSI%3d> a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ From: listsadmin@lists.myitforum.com<mailto:listsadmin@lists.myitforum.com> [mailto:listsadmin@lists.myitforum.com] On Behalf Of Henrik Andersen Sent: 29/April/2016 14:47 To: ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com> Subject: [msmom] SV: SCOM 2012 R2 Powershell OK If you want something to be put in maintenance, you must have a class representing that. While there are classes representing CPU's and disks, there are no class discovered that represents memory. To obtain what you want, I'll think you either have to do a lot of custom made monitoring or put the the operatingsystem class in maintenance or do something with temporary overrides(I remember a company that has made a system where you can schedule overrides or you can build something with powershell). Venlig hilsen / Henrik Fra: listsadmin@lists.myitforum.com<mailto:listsadmin@lists.myitforum.com> [mailto:listsadmin@lists.myitforum.com] På vegne af Pete Hakesley Sendt: 29. april 2016 15:22 Til: ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com> Emne: [msmom] RE: SCOM 2012 R2 Powershell Henrik, Thanks for the prompt response. I had already looked into this and this does not give me what I need. I can put the whole machine in MM easily but I won't to ensure only the CPU, Disk and maybe Memory are placed into MM while NetBackup is running. I will keep looking - thanks. Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre Services t: +44(0)845 155 6556 ext: 4006 e: phakes...@sccis.net<mailto:phakes...@sccis.net> | w: www.scc.com<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.scc.com%2f&data=01%7c01%7ckevin.holman%40microsoft.com%7cc0e404838de3488ccc2408d37037e870%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=k8J%2fA5QHF5rOYxWzunYQ94sM6uz1021ELt84xigJbSI%3d> a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ From: listsadmin@lists.myitforum.com<mailto:listsadmin@lists.myitforum.com> [mailto:listsadmin@lists.myitforum.com] On Behalf Of Henrik Andersen Sent: 29/April/2016 12:47 To: ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com> Subject: [msmom] SV: SCOM 2012 R2 Powershell Hi!, With the out-of-the-box there Is no separate class for processor. You can enable a discovery for that: [cid:image001.png@01D1A1FA.C4132520] But I don't know it will be to any for help for you, because the CPU monitor is targeted at the at instance of the operating system: [cid:image002.png@01D1A1FA.C4132520] So if it is because you want to suppress cpu alerts, that's the class you will have to use. Venlig hilsen Henrik Andersen Tools Direkte +4563636158 Mobile +4521579037 h...@jndata.dk<mailto:h...@jndata.dk> [cid:image001.gif@01D1A21A.F81A2F10] JN Data A/S · Havsteensvej 4 · 4000 Roskilde Telefon 63 63 63 63/ Fax 63 63 63 64 www.jndata.dk<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.jndata.dk&data=01%7c01%7ckevin.holman%40microsoft.com%7cc0e404838de3488ccc2408d37037e870%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=u65CLxBrLpemYQX6Oj1HyIcfdPS%2fpzDHok8OxZL2WJs%3d> [cid:image002.gif@01D1A21A.F81A2F10] Fra: listsadmin@lists.myitforum.com<mailto:listsadmin@lists.myitforum.com> [mailto:listsadmin@lists.myitforum.com] På vegne af Pete Hakesley Sendt: 29. april 2016 13:10 Til: MSMOM (ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com>) <ms...@lists.myitforum.com<mailto:ms...@lists.myitforum.com>> Emne: [msmom] SCOM 2012 R2 Powershell My System SCOM 2012 R2 UR9 I am working on a PowerShell script to be used later for maintenance mode start/stop based on Backups running. The requirement is to identify the disks and the CPU and place these into MM. So far I have $Node = "<Name of a Windows Server>" $MonClass = get-SCOMClass | where-object {$_.Name -eq "Microsoft.Windows.LogicalDisk"} $ObjPool1 = get-SCOMClassInstance -Class $MonClass | where-object {$_.Path -match $Node} This works fine Example Output HealthState InMaintenance DisplayName ----------- ------------- ----------- Success False M: Success False C: Success False D: However I cannot find the corresponding class for the Windows CPU e.g. I want all the CPU's on a server. I have tried Microsoft.Windows.Server.2012.R2.OperatingSystem Microsoft.Windows.OperatingSystem And others but I cannot find the class that has the CPU objects within. Can anyone help please Peter Hakesley | Monitoring & Automation Technical Lead Engineer, Data Centre Services t: +44(0)845 155 6556 ext: 4006 e: phakes...@sccis.net<mailto:phakes...@sccis.net> | w: www.scc.com<https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.scc.com%2f&data=01%7c01%7ckevin.holman%40microsoft.com%7cc0e404838de3488ccc2408d37037e870%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=k8J%2fA5QHF5rOYxWzunYQ94sM6uz1021ELt84xigJbSI%3d> a: SCC, CV1, Cole Valley, 20 Westwood Avenue, Tyseley, Birmingham B11 3RZ