04 Aug 2015
Microsoft has released APIs you can use to download Azure resource usage and prices (RateCard) programmatically. The API is very useful and quite easy to use. For me the problem was to figure out how to authenticate an API request from Powershell. For now they have only published code examples in C#. As Powershell is .NET based, too, I knew there had to be a solution.
22 Dec 2014
A script I have created to run as a Daily Safety Check (as a Script check). It uses WMI and information gathered by the MAXfocus agent asset scan to determine if any checks needs to be added. On agents configured for Server monitoring the script will add Drive Space Checks and Drive Space Change checks to local fixed drived. If the device has any hard drives that supports S.M.A.R.T. the script will add the Disk Health Check. It will add checks for new and/or unmonitored Windows services, according to the options you specify. It can also add Performance Checks, Backup Checks and Antivirus checks. The script is hosted on GitHub, so you can download it and begin using it immediately. You can find the script here.
10 Dec 2014
MAXfocus includes more than 300 predefined SNMP checks you can use with your clients. But knowing which checks are valid in any particular case can be difficult. You also have to add each individual check one by one, something that can be a chore if you have many agents to configure. To help with our own monitoring of server hardware agents in particular I have made a powershell script that automates this task as much as possible.
19 Sep 2014
I think this must be one of the best tips I can give you if you are working on a powershell script: Download and install PowerGUI. It is free and the object explorer is invaluable when you are trying to figure out what your script has done and what went wrong. Seriously. Try it.
19 Sep 2014
(Updated and superseded by a new version.)