Sunday, June 26, 2016

Zabbix HipChat Alerts

I've posted a Zabbix HipChat script over on GitHub. It uses the new HipChat cards. This requires using the v2 API so you will need to generate a user API token in order for it to work. The alerts within HipChat look like this.
And when you click on them you can expand them to show more information and relavant links.

The code and instructions are all posted over on my GitHub.
Check it out. https://github.com/prestonr83/zbx-hipchat

Tuesday, April 26, 2016

IIS FTP HA Cluster

Using Clustering for IIS is not ideal as you should really be using NLB but when you are using IIS on a cluster you cannot have both NLB and clustering setup on the same servers. So Microsoft does offer a way to do this via the generic script option within the cluster manager. Microsoft provides the documentation and script templates for both IIS Websites and FTP Sites. However, the script they provide for FTP simply starts and stop the FTP service and does not allow you to control individual FTP sites. For my needs, I needed to be able to failover different FTP sites that used different IP Bindings. The only scripting language supported by clustering is VBScript and documentation on how to work with IIS with VBScript is little to none. It took me a few hours to piece together the following via trial an error but the following script will allow you to control an individual FTP site. Just create one per site and attach to your cluster roles as needed. You could add more health checks this just simply checks to make sure the site is started within IIS and that the FTP service is running.