Geeks With Blogs

Alex Hildyard March 2017 Entries
AppDynamics Disk Space Alert Extension: Windows support
I've added a Powershell port of this shell script to support Windows servers, and Derrek has merged the PR back into the trunk:https://github.com/Ap... port is pretty faithful to the original shell script, uses the same configuration file and reports and alerts in the same way. So all you need to do is swap in the Powershell rather than than Bash script to monitor your Windows-based estate. Hope you find it useful ......

Posted On Friday, March 24, 2017 11:41 AM

Using Measure-Object to sum file sizes in Powershell
Be aware that this line: gci -r "C:\temp\test" | measure-object -property length -sum will throw an error if it encounters a folder whose only contents is another (empty) folder; this is because measure-object tries in this case to measure an object which does not have a “length” property defined: PS C:\Projects> Get-ChildItem -Recurse "C:\temp\test" | measure-object -property length -sum measure-object : The property "length" cannot be found in the input for any objects. At line:1 char:42 + ... ......

Posted On Wednesday, March 15, 2017 3:56 PM

Counting pages in Confluence
We're currently migrating our Confluence installation, and I was looking around for resources to provide some basic metrics, eg. the total number of (non-private) pages we are currently hosting. It appears that the simplest way to get this information is simply to connect directly to the database and run a query:# Get count of all pages in all global spaces (each page is counted as a single version)select count(*)from SPACES as Ainner join CONTENT as Bon A.SPACEID = B.SPACEIDwhere A.SPACETYPE='global'and ......

Posted On Friday, March 10, 2017 2:05 PM

Copyright © Alex Hildyard | Powered by: GeeksWithBlogs.net