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…?
have you tried forcing your object into an array? [array]$servers I’m sure if it was recognised as an array it should work
I’ve recently used that new-udselector a lot for allowing multiple selection, which I am seeing would work in this scenario, of choosing a various servers which is populated via a CSV, SQL, NET VIEW, what-ever once it is in the list you can easily pass those values selected onto other commands.
Was thinking this would be a handy tool for monitoring remote computers:-
If I get the time at work tomorrow, I could do with a monitoring tool again, one which won’t kill my computers’ CPU when I run it…so I will try to build something…but added a load more tasks on the gantt chart which I am using to monitor all my tasks, so got a lot on at the moment.
@augustin.ziegler hope you have a great time in Croatia, I had some spare time on my hands tonight as all my kids went to bed without issues tonight so I managed to put this working example together:-
This is the code behind the component keeping it consistent with the other google charting components:-
Will do my best to chuck this on the powershell gallery and universaldashboard marketplace over the weekend. You could monitor anything with this gauge chart just need a label and a value to pass to the component via the sub function New-UDGaugeData @wsl2001 thinking this would be good to get stats back from local and remote computers and seems to work well in UD
Sure man no worries, I will create a github repository for this and stick it all on there…close to mid-night now where I am…and I don’t want to turn into a pumpkin so I need to get to bed soon…I will do a new topic for this so people know a new component is out there as this thread has gone off the original topic a bit and it has given birth to a new component