But because this was a complicated setup I was forced to use a bash script under the “/sbin/ifup”.
The script looked like this:
DMZ_INTERFACE=”eth0″ #we should have an IP address on this network – 188.8.131.52/24
LAN_INTERFACE_1=”eth1″ #we should have an IP address on this network – 10.12.0.0/24
EXTIPADDR=”184.108.40.206″ #an dmz gateway
INTIPADDR=”10.12.0.254″ #all the internal traffic
This is one of the cases where the passive check of the Nagios monitoring system comes in handy as we need to be informed immediately when the Keepalived changes state. So you will need an NSCA system implemented with your Nagios configuration.
Studying the Keepalived configuration we found that the authors have implemented the option to run a script that when the state of the VRRP changes. The script I’m referring to is run under the “notify” option.
This is a sketch article in which I want to do a brief description of how to install a Windows WMI proxy and do the checks via WMI in your windows network.
The WMI Proxy is basically a Windows Server / Workstation that has NRPE_NT or NSClient++ (you need to change a bit the configurations) installed and from which with an administrative user can do checks to the windows network via the WMI.
WMI is also used as a check for some other products including but not limited to: SCCM, SCOM, Spiceworks, etc.
You will need first to check the SNMP OID’s with your systems (see the UPS tutorial ) and enable on CCM hosts the SNMP string and checks. All the checks that I have done for this tutorial are from the file CISCO-CCM-MIB.my
I have inserted my first plug-in (you can get it from here) in this tutorial with the help of which we will check things like voltage in or the time that remains until the battery is finished.
Before you start this tutorial please make sure that your network responds to the same OID as here and that you have configured all the UPS-s to work with the snmp (note down your snmp community string). In my tests I used the standard powernet395.mib from APC and the rfc1628.mib for AROS.