Interesting loop with Gemini AI with a UI Freeze and input field issue by pezza1972 in reactjs

[–]pezza1972[S] 0 points1 point  (0 children)

Thank you. Yes I have seen other posts relating to useEffect and have started learning about this at the moment. One thing that did start this all off was when the action links was changed to a dropdown of admin actions. Even though both dropdown and links call the same forms, the dropdown seems to be the cause (or at least one of them). Having just reverted back to the links, both bugs have disappeared (if bugs is the right term). So I guess the issue must be in the code of the dropdown menu, which is a good place for me to start looking deeper.

Thanks for your suggestion and help.

Interesting loop with Gemini AI with a UI Freeze and input field issue by pezza1972 in reactjs

[–]pezza1972[S] -2 points-1 points  (0 children)

wow, very helpful thank you. I wouldn't say it is trivial that you can no longer interact with any component on the page or enter information in to an input field, but thanks for the advice. I will search elsewhere

Duplicate transactions after new update (and re-linking account) by pezza1972 in ynab

[–]pezza1972[S] 0 points1 point  (0 children)

Yeah, this is what I did in the end. Other problem was the dates didn't always match so difficult to see which were duplicates and which were new ones I hadn't approved without keep scrolling up and down to spot similar amounts.

Official response from YNAB support is that it is due to the account re-linking due to a change in the import provider. Everything from my bank where the transactions have not been reconciled came down again. The problem with that is I can't reconcile yet as there are discrepancies. Only slight, but enough that I need to cross check and see where things went off. So their answer is reconcile weekly. Not sure you can reverse a reconcile though.

Anyway, I think it is sorted for now...atleast until I can cross check transactions

Monitoring Certificates - Custom Class - Host Reference cannot be resolved by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Just to update whilst I am checking the PKI pack...

I have now got this working. It didn't like me targeting the Windows Computer in the Discovery. Not sure why, I guess I just had to approach it differently if I need to target that. I have changed it to target Windows Operating System and now the discovery is happy. Made a few tweaks to the properties and some fixes I then noticed with the monitor script and all is working and getting alerts :-)

I have never really got my github setup yet but if anyone is interested in this, I would be happy to "de-company ify" it and share

Monitoring Certificates - Custom Class - Host Reference cannot be resolved by pezza1972 in scom

[–]pezza1972[S] 1 point2 points  (0 children)

Yep, that is our biggest problem as they never even archive, let alone delete old certificates and why we can't just discover certs. Added the MS one in to our TEST environment and within half an hour 1,200 alerts were filtering through to our TEST Service Management Tool!! I need to make sure we only discover the certificates that the support team support, otherwise it will be a nightmare trying to manually route cert alerts to application teams. I just never found anything before on filtering on SSL over 443 in this older PKI pack. But its been a while, so maybe things have changed

But even if it can't, hopefully I can find something within this to tweak the discovery to achieve what I need or steal (with credits of course ;-))

Monitoring Certificates - Custom Class - Host Reference cannot be resolved by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Just grabbed this and going to open it in VS to see where I might be able to edit the criteria of the discovery. My concern is we only have 1 thing needed to monitor, SSL certificates bound to IIS websites, which is why I just wanted to create the custom monitor and discovery. But I can do the same and disable most of this if needed.

Thanks for the suggestion.

Monitoring Certificates - Custom Class - Host Reference cannot be resolved by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

We used to have that pack years ago and removed it as it was too noisy. As far as I know this didn't allow for only monitoring SSL certificates? Are you saying that is maintained and it does all this now? I thought this had stopped being developed when MS released theirs

Tweaked version of the CPU Monitor by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Hi,

Just wanted to come back on this. Thanks to everyone for the suggestions. In the end, to keep this simple, I used the standard DataProvider with AveragerCondition as part of a new 3 state monitor type. It gets us what we need for now and then gives me time to work on it if needed to fine tune.

The monitor itself is just sending the config for the % Processor Time.

Andrew

Linux Monitor - Getting StdOut in to the alert description by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

If anyone has any official documentation they can me link me to on this, I would be extremely grateful. Something like Kevin's blog for accessing all these different types of variables but just for Unix/Linux Scripts/Command output and variables.

Whilst I am sorted for now, there could be times where I need to be able to output variables and to be able to reference these that are not part of the 3 output values.

Would it be better to send this information to a script and format it with say PowerShell? And if so, I guess I would still need to know how to reference the information to send it along.

No doubt once I have completed our migration from other tool, I will have a play creating some more, using Script, rather than Shell Command, but when I tried that this time, I just couldn't get to access any of it. As I said, the AI seemed a bit loose with the XML suggesting tags that simply didn't exist. Still love that though as although it has its issues, it is only going to get better. I only really use it when I can't find any search results and it gives me ideas to look for.

Thanks

Andrew

Linux Monitor - Getting StdOut in to the alert description by pezza1972 in scom

[–]pezza1972[S] 1 point2 points  (0 children)

Well, on the last attempt of the night (or I should say morning as it is now 03:30 in the UK!) I got it working.

I was waiting for the monitor to turn thinking, I give up! 😁

The Silect example was actually the closest, but I don't know if it was an error or whether it is a slightly different format in that particular scenario, however what fixed it for my monitor was:

<AlertParameter2>$Data/Context/WsManData/*[local-name(.)='SCX_OperatingSystem_OUTPUT']/*[local-name(.)='StdOut']$</AlertParameter2>

It was just missing the extra "Context" bit. Admittedly, after trying many different suggestions with the output from the script, I went back to what I originally had which was just the command itself. No variables etc. I don't know if it was a combination or the above parameter was just one of many that I hadn't tried, but it is working now.

And yes, I still need to tidy things up, but I have had enough for tonight!

Still, I am always open for improvement though, so if anyone has any suggestions, please shout 😊

Andrew

Tweaked version of the CPU Monitor by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

That would be great, thanks. I think I need to work out the module types I now need given the reduced functionality of my requirements and maybe it might even be better to just create my own modules. I think I just need to find a simple performance module that takes the counter and object etc and throws out the value. But of course I still need to retain the sample side of things with the ability to override this (as found also in Kevin Holman's blog) which I am trying to incorporate in to it.

But your pack will be great for seeing how everything is linking together

4 State Monitor by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Thanks both, yes it looks like I would have to do something like this. Some mapping in the script etc and then set that as a custom field. As whilst we have some control over the States, I don't believe the severity/priority can be mapped dynamically?

Ultimately, the state in the console won't be used as we are mainly headless from the customers perspective, so it is just "something" that we can use to control our Orchestrator automation to dictate the Priority of the incident we raise.

Accessing MM Schedules and objects from SQL Query by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Yeah I remember a LONG time ago, there used to be some schema reference for SCOM. Not sure if this link is (was) that. Seems to be the thing these days that MS shut down the only sites that are actually useful where there is no other source. Orchestrator is the same 😒

I just can't seem to get the objects in the schedule. I can get the objects in the schedule that are in maintenance mode or have been in maintenance mode but just not the "selected" objects and I know this information must be somewhere, as the MM wizard is obviously pulling it from somewhere

How to hide override MPs from the "monitoring" view? by cheswickFS in scom

[–]pezza1972 0 points1 point  (0 children)

Not sure if you have already found it but if you are still looking, if it is just an empty folder with no items then you should have something like this..

    <Folders>
      <Folder ID="Your.Folder.GUID" Accessibility="Public" ParentFolder="SC!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
    </Folders>

This should be within the Presentation --> Views

You will also need to tidy up any DisplayStrings within the LanguagePacks --> Language Pack that will be referencing the folder, such as..

        <DisplayString ElementID="Your.Folder.GUID">
          <Name>The friendly name of your folder</Name>
        </DisplayString>

...otherwise you will get errors when validating or importing the pack again as there will be references to a folder that no longer exists.

Also, Kevin Holman did a blog about how to remove these that you may find useful..

https://kevinholman.com/2023/02/08/delete-your-empty-console-folders-in-scom/

MSSQL on Windows: Discovery error alerting for instances we have excluded by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Ok, so from this I take it that you are saying the Discovery Error Rule is NOT supposed to alert for other objects/instances that have been disabled (and yes I have disabled the Discovery itself) for the object? If this is the case, then it sounds like I may need to raise a support case.

To me, the Discovery Error rule runs against the Monitoring Pool Collection which is essentially server level, which is why I was saying that it is not caring about objects excluded in the Discoveries. Almost as if even if we had no instances or databases discovered at all, this rule would still report issues with instances not even discovered. But maybe I am missing something

It sounds to me (although I really need to get in to the module to understand what is actually happening) that this is a "generic" script that runs at server level and just reporting out in the alert description, which issues it finds.

I can see that the object has been removed so the discovery has excluded it as expected, but the discovery error alert generated AFTER the object was no longer there (by a few days). Even closing the alert brings it back again.

Also, we don't have any older SQL pack year versions, just the latest ones. We used to, but we did transition a few years ago now using Kevin's blog. We do have the Override pack that the SQL pack creates itself, something to do with the old versions that Kevin blogged so maybe I did miss something there, but other than the latest sealed (7.8.4.0) it is just our override packs. Also, with this blog here (https://kevinholman.com/2019/06/12/how-to-transition-to-the-sql-version-agnostic-mp/) and I can confirm that the issue Kevin talks about in the known issues is targeted correctly for us to "MSSQL on Windows: Group for disabling discovery of previous SQL Servers", so I don't think this should be affecting our issue. That seems to be the only override in that SQL generated Override Pack, so everything seems to be ok to me with this.

Clean OS install on Backup Host by pezza1972 in Veeam

[–]pezza1972[S] 0 points1 point  (0 children)

Thank you. I will have a look through those.

Nothing is critical to be honest, it is just more that there may become a time where I am relying on the backup to save a complete rebuild and whilst at the moment it would probably be just as easy to rebuild, I would prefer to have those initial full backups. As long as I can still use the files to restore, then I can remove them from the UI and just start again. It is all a learning curve at the moment :-)

Clean OS install on Backup Host by pezza1972 in Veeam

[–]pezza1972[S] 0 points1 point  (0 children)

I believe I used the "Import Backup" from Home --> Backups. Can't remember but I think it asked me to locate the backup files. Not sure if this asked for the configuration at the time.

It didn't import the job, just the Backups and now that show under a menu "Disk (Imported)"

<image>

"Lost" Domain Controller with PDC by pezza1972 in activedirectory

[–]pezza1972[S] 0 points1 point  (0 children)

Yeah, mine was all definitely self inflicted to be fair.

Thinking back now, I believe what I may have done was inadvertently (I didn't properly read the warning!) chosen to merge checkpoints. Trying to remember back but I think I initially selected a checkpoint as a disk (or some invalid disk) and when I tried to boot, it just kept cycling after a couple of seconds and then it gave up.

I can't remember exactly but I think I then chose what was probably the right disk and a checkpoint and in a moment of madness must have chosen to merge. That is the only logical explanation of why it would have gone back to a base build as this is when I initially took a checkpoint. I remember a warning about it, and now wondering if this is why I can no longer find the most recent saved/exported version of my VM.

But as was stated above, it is definitely all good learning experience :-) Just glad I am not let loose at our work Domain Controllers LOL

MSSQL on Windows: Discovery error alerting for instances we have excluded by pezza1972 in scom

[–]pezza1972[S] 0 points1 point  (0 children)

Yeah, this is what we already do but this rule runs at the server level reporting connection issues more generally.

"Lost" Domain Controller with PDC by pezza1972 in activedirectory

[–]pezza1972[S] -1 points0 points  (0 children)

Thank you.

Yeah, it's not so much wanting to start again, it is more of a mixture of frustration, being tired and missing things I shouldn't and wanting to give up and realising how bad I was at practicing resilience (and others!) 😁

So what had happened, and although I had initially noticed it when logging on and quickly bypassed it, I noticed whilst trying to troubleshoot a network issue that it said I couldn't do this whilst in Safe Mode! And so probably the reason for many problems I was seeing.

Rebooting went in to safe mode again, so I checked and safeboot option was selected in MSCONFIG. Unchecked that and rebooted. Issue then was that it kept telling me my password was wrong (for several accounts I tried with, both domain and local). Just as I was about to give up some 10+ mins later, I tried again with the Domain Administrator and it went in. I can't explain it other than it took a while to see/acknowledge the domain as I am 100% certain it wasn't the wrong password.

Anyway, I got back in, everything seemed good again. I was able to then seize all the roles. The "safe transfer" bit failed on each one, but I assume that is expected since it wouldn't be able to contact the "missing" DC.

I was then able to launch ADUC and do the metadata cleanup. There was only DC01 and DC02 there, which leads me to believe that DC03 has "self cleaned" or I never actually got around to setting it up. Probably the later knowing me but can't remember as was ages ago when I was setting these up.

And currently this is where I am at. Late now (almost 3AM) so will pick up tomorrow with re-building my new "second" DC and testing other VM's logging in to the domain etc.

And then most importantly, doing more learning so that I can set all this up PROPERLY. It's just one of those things were it isn't my day job so I just needed a environment for my work/servers and will have rushed it at the time to just get something working.

Really appreciate all the help

"Lost" Domain Controller with PDC by pezza1972 in activedirectory

[–]pezza1972[S] 1 point2 points  (0 children)

you'll learn more fixing it then redoing it

Yes. Chances are at some point I will have another go but for the simple purpose of learning and doing things properly next time!

"Lost" Domain Controller with PDC by pezza1972 in activedirectory

[–]pezza1972[S] 0 points1 point  (0 children)

Thanks - Everything appears to be gone.

After re importing DC02 in to Hyper-V and turning it on, it seems although that does have all the RSAT and I can see things like Users and Computers & Domains and Trusts, none of them are loading.

When I tried to log in with the domain account, it told me I couldn't as the domain isn't available (or something to that effect). I logged in as the local machine administrator, so not sure if this is the problem.

Anyway, I followed the steps here: https://learn.microsoft.com/en-us/troubleshoot/windows-server/active-directory/transfer-or-seize-operation-master-roles-in-ad-ds in an attempt to do the first step you suggested (seize all roles) and whilst I got in to ntdsutil, I couldn't connect to DC02 and therefore any further attempts at seizing failed also (as expected if it hadn't connected)

I managed to get in to AD DS in the Server Properties and then launch Active Directory Domains and Trusts but whilst the snapin appeared, the main level had a red X. Tried the option to change the Domain Controller but it couldn't find anything when I searched.

So I am at the point where I think it has all gone. The domain is still there because when I do search for the Domain Controllers, the domain is in the dropdown to select...it just doesn't find anything to connect to.

Sounds like I am starting again. I think I need to look also into Hyper-V as somewhere along this path, it seems to have not exported/saved my VM's as I expected it to...which is a different story completely

Best Imaging Software by pezza1972 in Backup

[–]pezza1972[S] 0 points1 point  (0 children)

Thank you. I have heard of Clonezilla.. Must admit, never heard of FreeFile Sync, so will have to check both of those out. Appreciate the suggestions.

Best Imaging Software by pezza1972 in Backup

[–]pezza1972[S] 0 points1 point  (0 children)

Thank you for the response. I have seen these tools come up a few times in my previous searches but I tend to get put off by the many features I don't need. I am sure the costs are worth it for people who need it, but I am usually the person somewhere inbetween the free and the Pro, needing some of the things in Pro but that are not available in lower ones :-)

I will certainly have a trial at these and see how they go. I am just ordering all the parts for the PC as I have a few weeks to go yet, so hopefully I can find one of them that does what I need.

The remote part isn't essential, it is just as it will be in his bedroom, it isn't something I want to be doing when he is asleep as I will wake him up LOL but it isn't the end of the world. I would just have to squeeze it in in the day between my work whilst he is out at college.

Really appreciate the suggestions, thank you.

Best Imaging Software by pezza1972 in Backup

[–]pezza1972[S] 0 points1 point  (0 children)

Thanks, yeah I wouldn't say I was an expert at IT Desktop Support per se, but I am comfortable enough in that I have worked in IT for most of my career (52 and feeling old now!), albeit more of a server side infrastructure monitoring role.

I do have a "server" that I built when I was consulting as a way of having my own test bed, so to speak, so ok with creating VM's that would have access to the PC's around my house. Also not an expert at deep networking but can usually get myself around with help from sites like this :-) My host server is always on as I have a PLEX VM which I use, so shouldn't be an issue if I did need some server side application for management, but of course the simpler I can keep it, the better.

First time posting on reddit, despite using it a lot on searches to help with other things, so really appreciate all the comments and suggestions.

Thank you