Im attempting to create table within a dashboard that checks if services are running. THe way I would normally do this is by running the Command:
“Get-Process -Name ”
When I try to run this command within the dashboard script, I get the following errors:
Minified React error #31; visit Minified React error #31 – React for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Please see the code below and if you are able to point me in the right direction I would be appreciative.
Hi @Neer94 just second what @guy said, welcome to the universal dashboard forums. Hope this first post is not your last post…I been on this forum since it opened and have seen this question asked quite a few times…so not saying in anyway shape or form I can beat @guy answer, but instead of re-inventing the wheel I will post you to a tasty cookbook recipe cooked up by the one and only @adam it’s right here:-
There are also a lot of other posts, but I know your question got answered, but just to show how nice we are in here this is my help and advice…I would also recommend visiting poshud as @adam has once again provided neat examples:- https://poshud.com/New-UDTable
Peace
Although @BoSen29 beat me to the buzzer this time, I see that neither of you looked at using the MACHINENAME output from get-service so you would of had a massive list of computer services not having a clue to which computer they related too…thats why it took me that little bit longer than @BoSen29
I hope both these examples help you complete this dashboard
@BoSen29 bro it’s 8pm see you at 9pm UK still has crappy internet…especially in my shed so you had an hour headstart on me…told you it was a timezone thing
It’s really worth hanging about on this forum I have learnt so much by the code people are willing to share, and the questions being asked, and how they are answered…for example this just got posted by @wsl2001 who has good skills in the UD area look at this juicy script he kindly uploaded:-
Scroll right to the bottom but it’s there, only really pointing you to this as using the same colouring on the service, but @wsl2001 has also given it steroids so his dashboard here is monitoring lots of things…this is for one computer…however if you piped your computer list into a select list, then sync’d all the components on the page to the UD selection, you could monitor a load more things than just services for a computer.
I did this to monitor all of our severs, which then displays Ironman Software Marketplace - ud-bginfo
for the server I select from the drop down list
Hope this gives you some ideas for some of the cool things you can do with UD. Peace
So here is how I am currently monitoring any given server in my environment…please note I used a tabbed menu for this dashboard, and this is ONE of many tabs…
Hey Adam i was testing your monitoring good above but am running into an issue i hope you have a answer.
the issue is related to -values @(“server1”,“server2”,“server3”) , if i put the the servers names like you did everything works fine but if i tried to pull the servers objects from a variable it wont work and i see err::abort 500 a lot in chrome dev tools.
my servers are located in aws and am pulling the instances names thru powershell and save them in a variable like $servers = (array of objects)
I think this overloaded my machine…personally now I would probably look at using that new-udselector component I did. Maybe could look at re-writing it…?