Posts

Showing posts from March, 2024

Skate

Image
Purchases September 2023. Healesville. September 2023. Yarra Glen. February 2023. Box Hill. January 2019. Manly. January 2019. Woolloomooloo. April 2017. Brisbane. May 2017. Kuruby, Brisbane. May 2017. RampAttak, Brisbane. August 2015. Venice Beach. April 2012. Bondi. Purchases Date Price Description 28/3/2024 $16.95 Fasttimes Highpoint. Thunder bushing reuild kit 100A urethane. Feb 2024 NA Started using Spitfire Formula-4 56mm 99DU wheels, 159 Indys and REAL deck.

On demand registry discovery

I got onto this when I was doing the Tenable (add link) management pack. I wanted to be able to run the Tenable agent discovery on demand, instead of having to wait for the schedule. This turned out to be pretty tricky and I'm still not sure how it works. The ability to do this isn't very common with the intershizzle returning little, so I ended up looking at an old IIS mp (version 7.0.10249.2 for Windows Server 2012) and found a registry discovery that used a separate data source. The discovery is called Microsoft.Windows.InternetInformationServices.6.2.ServerRole.Discovery.Rule and it uses a data source called Microsoft.Windows.Server.IIS.6.2.Discovery.DataSource, which in turn uses a data source called Microsoft.Windows.Server.IIS.6.2.RoleCheck.DataSource. Anyway it works a treat. To use it you need to run the Trigger On Demand Discovery task which is available here: Agents Operations Manager > Agent Details > Agent Health State > Agent State. Gateways Operations

Slab

Kit Big pot (yes that one). Mid-size pot Ingredients 1 large onion. 1 pack bacon. 800 gm tomatoes. 400 gm pasta. 20 gm butter. Salt, pepper. 4 pinches of sugar. 1 Tbsp basil. Cheese in sauce (150 gm fat boy, 100 gm skinny boy). Cheese on top (350 gm fat boy, 200 gm skinny boy). Method Pre-heat oven to 180 C. Chop bacon, onion and butter into large pieces and add to smaller pot. Kick off pasta water. Add tomato and rinse can(s) and bring to boil. Remove from heat. Add salt, pepper and basil simmer 20 mins. During that time cook pasta. After 10 mins simmer, add cheese to sauce. Drain pasta water into blue jug. Add pasta to sauce and add ~200 gm pasta water to pot. Cook 30 mins @ 180 C.

DIY

Image
Keep all notes on DIY here. Replace triple switch light in hallway The hallway light button was making buzzing noises. I bought a DETA White Triple Switch from Bunnings for $16. Replacing was easy, just put wires in same spot but do a thorough check that they match up first. Fix tiles on porch March 2024. For the tiles I used this: For the grout I used the same primer and grout that I used for the shower. If you want to use the primer (think it gives a better bond) it's a 1:1 ratio to mix with water. So if you need 60gm water it's 30gm water and 30gm primer. Shower repair Did a full repair on this bastard September 2023. Grout Base paint Silicon I removed all old silicon. The silicone remove was crap, don't use again. Cleaned out old silicon from mixer section. The circular tube in the pic below unscrews. Below that, we want to replace the cartridge, the copper thing also unscrews, you'll need a shifter. Used these: Replacement mixer thin

Poached chicken

2 x cloves garlic, halved 1 ltr water (add chicken stock if you want) Put water, stock, garlic in a large saucepan over medium-high heat. Bring to the boil. Add chicken. Return to the boil. Reduce heat to low. Simmer, covered, for 15 minutes or until chicken is just cooked through. Remove from heat. Stand chicken in liquid for 5 minutes.

Sourdough starter

General notes on making and maintaining a sourdough starter. Making If making a new starter, follow Jack process. It's important to maintain the temperature or it won't work. When it's cold I used the heat mat constantly (set to 22 C, min is 20 C). Always use 35 C water. Maintenance If the starter hasn't been used for ~2 weeks, a normal feed should bring it back to life. If it's older than that, I have found it isn't airy even after a multiple feeds. To fix this, give it a feed then discard the next day then feed it again, it should be looking better. Use your judgement, the golden rule is:  if the starter isn't airy it will affect the rise. When storing the starter make sure the lid is sealed. Some people say you don't have too but I lost a few starters in the beginning and can only blame it on oxygen. As soon as I started sealing them they survived. Good to know I once left the starter for 2-3 weeks and it smelt like old gym socks (which is OK). I fed

Recalculate health

The Recalculate Health button in SCOM is notoriously useless. After many years working with SCOM I have finally figured out how to add the code to get it working in some of my custom monitors. I hope to add different ones in the future. I'm writing this blog so they are easy to find and you don't need to sift through management packs. It's important to understand how these link together because there's quite a bit going on - maybe that's why most don't work, because it's more work/too hard. In general, start with the unit monitor then look at the monitor type. Within that you'll see the probe action it calls - it will only be a few lines - then look at the code for the probe. Monitors with this feature The monitors listed below have the ability to do on-demand health recalculation. Notice the different probes used and the type of data output. For now I have 3 types: SQL query. PowerShell script. Registry query. Awesome huh! This opens a lot of doors to m

Management pack structure

Use this as a reference when building management packs to get naming correct. Management packs Vendor.Product.Sub-product.Monitoring/Views Note:  Product  and  Sub-product  may not be used if it's not appropriate. Example: Microsoft.Intune.ConfigurationManager.Monitoring. Microsoft.ActiveDirectory.Monitoring. Citrix.Monitoring. Elements Vendor.Product.Sub-product.Class/Group/ Discovery/Rule/Monitor/Diagnostic/Recovery.ShortDescription Note:  Product  and  Sub-product  may not be used if it's not appropriate. Example: Microsoft.Intune.ConfigurationManager.Class.ServerSeed. Citrix.Monitor.BrokerService. Certificate.Monitor.CheckExpiry. VMware.CarbonBlack.Group.Agents Management pack elements Good link that explains elements and naming convention  here . Make sure you get these elements in the right order or the the mp won't import. <ManagementPack> <Manifest/> <TypeDefinitions> <EntityTypes>…</EntityTypes> <DataTypes>…</DataTyp

Event IDs

Useful event IDs - not just SCOM stuff. ID Log Source Level Description Explanation 26 System Application Popup Information Application popup: MOMCertImport.exe - Application Error : The application was unable to start correctly (0xc000007b). Click OK to close the application. If you run MOMCertImport on a gateway install but haven't installed the gateway component yet, you'll get this error. 1201 Operations Manager HealthService Information Example: New Management Pack with id:"Microsoft.Intune.ConfigurationManager.Monitoring", version:"2024.3.19.0" received. When the agent has successfully downloaded a management pack. 1217 Operations Manager HealthService Informat

HSLockdown breaks agent on domain controllers

This applies to SCOM 2016 but likely affects any later versions too. When you install the agent on a DC it breaks communication to the management group. Kev explains it here  but you need to do this on the affected agent. To show current permissions: cd C:\Program Files\Microsoft Monitoring Agent\Agent HSLockdown.exe /L To grant permission: HSLockdown.exe /A "NT AUTHORITY\SYSTEM" net stop healthservice & net start healthservice

Noisy monitors

Here's some good queries to identify noisy monitors. Got them from Kev. Run against Ops db. Noisiest monitors in the last 7 days SELECT DISTINCT TOP 50 count(sce.StateId) as StateChanges,    m.DisplayName as MonitorName,    m.Name as MonitorId,    mt.typename AS TargetClass  FROM StateChangeEvent sce with (nolock)  join state s with (nolock) on sce.StateId = s.StateId  join monitorview m with (nolock) on s.MonitorId = m.Id  join managedtype mt with (nolock) on m.TargetMonitoringClassId = mt.ManagedTypeId  where m.IsUnitMonitor = 1    -- Scoped to within last 7 days  AND sce.TimeGenerated > dateadd(dd,-7,getutcdate())  group by m.DisplayName, m.Name,mt.typename  order by StateChanges desc Noisiest monitor per object/computer in the last 7 days select distinct top 50 count(sce.StateId) as NumStateChanges,  bme.DisplayName AS ObjectName,  bme.Path,  m.DisplayName as MonitorDisplayName,  m.Name as MonitorIdName,  mt.typename AS TargetClass  from StateChangeEvent sce with (nolock)  j

Configuration Manager management pack

Image
Disclaimer Use this management pack at your own risk. I accept no responsibility if it causes damage. Intro A simple little management pack to help you monitor Microsoft Configuration Manager. Version numbers in Config Manager are notoriously complex, mainly on the server side. For that reason I kept it simple and just grabbed it from locations that seemed to make sense. I'm not sure how useful server version info is anyway. The agent side is good. Elements Classes Microsoft.Intune.ConfigurationManager.Class.Client Microsoft.Intune.ConfigurationManager.Class.DistributionPoint Microsoft.Intune.ConfigurationManager.Class.ManagementPoint Microsoft.Int

Ciabatta

Makes 2. Takes 2 days. 🔒 It's typically ready by 5 pm and u ses a poolish. If you need the loaves ready earlier, do the poolish early in the morning, then do Day 2 steps 1-2 at night then step 4  is to leave it overnight - I haven't tested this though. Kit 2 scrapers. Blue lid glass bowl. Metal bowl. Ingredients 400 gm water. 500 gm flour. 1 gm yeast (1/4 tsp). 7 gm salt. Method Day 1 - Make poolish Take this from ingredients above. Warm 182 gm water to 35 C, add to glass bowl. Add all the yeast to glass bowl. Mix and leave 10 mins to dissolve. Add 182 gm flour to glass bowl and mix well. Cover and leave out overnight. Day 2 Warm remaining water (218 gm) to 35 C and add to poolish. Stir it in. Add remaining flour (318 gm) Add salt (7 gm) and mix well. Rest 3 hours. Or leave overnight if you need loaves earlier. Oil up metal bowl, add dough and rest 45 mins. Give it some slap and fold and rest 45 mins. Repeat step 5 two more times. Use big oven tray and flour couche well. Flou

White loaf

Makes 1 loaf (big tin). Takes 1or 2 days. 🔒 This is my go-to for a soft white loaf. I have done this in 1 day and it was fine but start early. Ready by 4pm. 90% hydration. This is -30% of original recipe. YT video here . Ingredients Tangzhong 132 gm water 21 gm flour Method Add water and flour to pan and heat on low, stir constantly for 10 mins. Put in Pyrex container, fridge overnight. Dough Original recipe had sugar. 344 gm water 9 gm yeast 506 gm flour 10 gm salt 35 gm butter Method Room temp butter (1 hour). Add flour, yeast and salt to bowl and mix. Warm to 35 C and add to bowl. (40 C if cold). Knead until well combined (~2 mins) then add butter. Knead 5 mins until butter is mixed well. Add tangzhong and knead 5 mins. Wet hands and shape into ball, back in bowl. Ferment @ 25-27 C or until doubled. Flour bench, divide into 4 and shape into  loose  balls  (don't flatten),  rest 30 mins. Flour bench, rolling pin into oval, fold in sides. Rest 30 mins. Rolling pin each one,

VMware Carbon Black management pack

Image
Disclaimer Use this management pack at your own risk. I accept no responsibility if it causes damage. Intro A simple little management pack to help you monitor VMware Carbon Black. Elements Classes VMware.CB.Class.Agent VMware.CB.Class.CBACServer VMware.CB.Group.CBLinuxProcess VMware.CB.Group.CBWebConsole Module Types VMware.CB.DataSource.AgentDiscovery VMware.CB.DataSource.AgentStatus VMware.CB.ProbeAction.AgentStatus Monitor Types VMware.CB.MonitorType.AgentStatus Discoveries All discoveries are enabled by default and run once a day. VMware.CB.Discovery.CBACServer VMware.CB.Discovery.CBAgent VMware.CB.Discovery.CBLinuxProcess VMware.CB.Discovery.CBWebConsole Monitors VMware.CB.Monitor.AgentStatus VMware.Monitor.CarbonBlackService VMware.Monitor.ParityReporterService VMware.Monitor.ParityServerService Recoveries All recoveries are enabled by default. VMware.Recovery.CarbonBlackService VMware.Recovery.ParityReporterService VMware.Recovery.ParityServerService Groups VMware.CB.Group.CBWe

Amnesia

Image
Apps Config Manager Cooking Disable taskbar thumbnails Disable User Account Control Excel Percentages SCOM Software registry key VSCode Apps Metronome As of October 2023, Natural Metronome by Single Minded Productions works well. Sportractive Free running app for mobile that tracks distance. Make ISOs Google cdburnerxp or  https://cdburnerxp.se/en/home  (working April 2017) Make a bootable USB key or wipe it: Google rufus usb or  https://rufus.akeo.ie / (working July 2017) Config Manager The tool to view logs is CMTrace.exe and it's in C:\Windows and C:\Windows\CCM. A useful log for agent problems is C:\Windows\CCM\Logs\CcmExec.log Cooking Recipes to try Rice absorption Brown 1 cup brown rice needs 2 cups water. Takes about 5 mins t

Manage processes from CMD

I use these when PowerShell isn't an option. List stuff tasklist /fi "imagename eq notepad.exe" tasklist /fi "services eq adsync" tasklist /fi "status ne running" /fi "services eq adsync" Kill stuff Force kill a PID taskkill /pid 11596 /f Force kill all notepad.exe processes taskkill /fi "imagename eq notepad.exe" /f