For item 1, have you considered a generic check_disk command, with exclusions?

My nrpe commands below, they've worked well with very little tweaking so far 
(I'm planning to use this on a Solaris 8 VCS cluster soon).  You may want to 
turn off performance data on the nodes, in case PnP (or whatever grapher you 
use) gets annoyed about the number of data points changing.

--TSK
Tim Kimball
http://sungak.net


Solaris
-------
command[check_disk]=/usr/local/icinga/libexec/check_disk -w 15% -c 5% -A -L -e 
-I 'ctfs|proc|mnttab|swap|objfs|sharefs|cdrom|\/platform|fd|\/lib'

Linux
-----
command[check_disk]=/usr/local/icinga/libexec/check_disk -w 15% -c 5% -A -L -e 
-I 'ctfs|proc|mnttab|swap|objfs|sharefs|cdrom|\/platform|fd'
(Yes its an older version of my Solaris list.  No complaints so leaving it 
there.  Temp/swap is actively monitored as a backup, but I could filter shm if 
needed.)



-----Original Message-----
From: Dennis Birkholz [mailto:icinga-us...@dennis.birkholz.biz] 
Sent: Friday, June 15, 2012 11:41 PM
To: icinga-users@lists.sourceforge.net
Subject: [icinga-users] Monitoring a HA-Setup

Hello together,

I would like to monitor a setup that exists of two "backend" servers
ServerA and ServerB which are hosting virtual machines VM1, VM2, ...

We have two DRBDs disk1 and disk2 where disk1 is primary on ServerA
(containing the data for VM1) and disk2 is primary on ServerB
(containing the data for VM2).

If one server fails, the DRBD is switch to the other server and the VMs
are restarted there.

I have a few problems for setting up a proper monitoring:

1. I want to check the free disk space of the mounted DRBDs but I do not
know on which server the DRBD is currently the primary.

2. I want to monitor VM1 and VM2 and make then dependent on the
backends. If ServerA crashes it is obvious that VM1 is away until it is
taken over to ServerB so I do not need warnings there.

My ideas for solving look like this:

I have a service "drbd_disk1_is_primary" for ServerA and ServerB which
is OK if the DRBD is primary, warning otherwise. The disk space checker
is now dependent on this service to check the free disk space but I have
this ugly "drbd_disk1_is_primary"-warning for ServerB and
"drbd_disk2_is_primary"-warning for ServerA. Any idea to avoid this?

The idea for the VM-dependency is a "virtual" host that has as a
check_command the check_cluster combining the results of
drbd_disk1_is_primary from both Servers and the VM1 is depending on that
virtual host.

Is it possible to create a conditional dependency or is this "virtual"
host the only way?

Thanks for your suggestions!

Greets,
Dennis

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to