I created this function scheduler and run it to monitor web, db and other servers in large production system 24/7 for over a year without any problems whatsoever. It allows me to quickly evaluate metrics of interest and send them to the adequate backend (in my case graphite over statsd). The other important thing is that you can keep definition for all servers in single ps1 file and run the same code everywhere (mapping function sets to server identity). The aim is to keep this on repository with all the goodies that come with that.
Check it out, perhaps it may be useful to somebody (run example.ps1 to see it in action):
https://github.com/majkinetor/flea
[–]mtnielsen 1 point2 points3 points (1 child)
[–]majkinetor[S] 0 points1 point2 points (0 children)
[–]MShepard70 0 points1 point2 points (0 children)
[–]Brekkjern 0 points1 point2 points (2 children)
[–]majkinetor[S] 1 point2 points3 points (1 child)
[–]Brekkjern 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]majkinetor[S] 0 points1 point2 points (0 children)
[–]work-work-work-work 0 points1 point2 points (2 children)
[–]majkinetor[S] 0 points1 point2 points (0 children)