Search Results

Auto restart IIS when service unavailable

A bit crude but it works.  Make a schedule task for this batch file: del testsql1.asp C:\wget\wget.exe –timeout=30 –tries=1 http://www.website.com/testsql1.asp find /C “SQLServer Test Code 1″ testscript.asp IF ERRORLEVEL 1 IISRESET /RESTART /TIMEOUT:120 /REBOOTONERROR

AppLocker blocking Logon scripts

I ran into an issue today on Windows Server 2012R2 where AppLocker was blocking logon & logoff scripts despite the sysvol folder being in the allowed policy. The documentation indicates that allowing the following folder should be enough: \\domain.com\sysvol\domain.com\policies\* This isnt the case, you actually need the NETLOGON folder too: \\domain.com\NETLOGON\* And in my instance […]

Distributed Monitoring in Nagios with check_mk multisite

For some time now, I’ve been exploring the best ways of configuring a distributed Nagios setup. With the “federated” configuration that Nagios recommend, you can pass data from remote Nagios instances back to a central Nagios server with the use of passive checks combined with NSCA or NRDP. Whilst this works well, the duplicate configuration […]

Configuring ESXi network coredump settings

Its useful to configure your VCSA as a network dump collector for when your ESXi hosts experience a PSOD, just make sure that the “ESXi Dump Collector” service is running on your VCSA.  The host configuration via ESXCLI is as follows: esxcli system coredump network set –interface-name vmk0 –server-ipv4 xx.xx.xx.xx –server-port 6500 esxcli system coredump […]

Moving from SysV to Systemd

Goodbye initd, systemd is here!  Systemd brings a lot of benefits such as parallel startups and enhanced troubleshooting but sure does takes some getting used to when you have been working in a completely different way for your entire Linux life!  Systemd is now shipping with CentOS7 and most of the other major distros, so […]

Server 2012 R2 – Failover Cluster error

So I was installing SQL2008R2 (In 2015? I know not my choice, it was for a legacy application) into a Windows Server 2012 R2 Failover Cluster. I hit the following error during the SQL install: “Rule Cluster Service Verification Failed. The SQL Server failover cluster services is not online”. It turns out that some cluster […]

Restart ESXi management agent

ESXi 5.x /etc/init.d/hostd restart /etc/init.d/vpxa restart ESXi 4.x /etc/init.d/hostd restart service vmware-vpxa restart ESX: service mgmt-vmware restart service vmware-vpxa restart

Load Balanced Linux Web Cluster

Another example of a load balanced apache cluster, this time active-active using Pacemaker/Corosync/ldirectord. This example is using CentOS. 10.11.1.40 – fixed IP of server1 10.11.1.41 – fixed IP of server 2 10.11.1.80 – apache site 1 (virtual IP) 10.11.1.50 – apache site 1 server 1 10.11.1.51 – apache site 1 server 2 10.11.1.90 – apache […]

High Availability Linux Web Server Example

Just a quick example of setting up a Linux HA failover environment for an Apache/MySQL web server. This runs through a Ubuntu installation, however RedHat shouldn’t vary too much. 2.11.1.24 – fixed IP of server1 2.11.1.25 – fixed IP of server2 2.11.1.30 – apache site1 (virtual IP) 2.11.1.31 – apache site2 (virtual IP) Make sure […]

Some NFS Notes

A few notes on configuring NFS on RedHat or Ubuntu The server packages to install are: Ubuntu: apt-get-install nfs-kernel-server nfs-common quota RedHat: yum install nfs-utils nfs-utils-lib quota The client Packages are: Ubuntu: apt-get install nfs-common RedHat: yum install nfs-utils nfs-utils-lib A few things to configure on the server: /etc/hosts.allow Any hosts listed here will be […]