tests: add nose unit test framework

This patch enables nose unit test framework highly inspired by vdsm.
Below is the same unit test code

from testrunner import AddonTestCase as TestCaseBase

class TestHello(TestCaseBase):

    def test1_world(self):
        self.assertEqual(1, 1)

    def test2_world(self):
        self.assertEqual(1, 2)

Signed-off-by: Bala.FA <barumuga@redhat.com>
Enhanced gluster_nagios spec file to have blank node config file

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Merge pull request #2 from balamurugana/master

tests: add nose unit test framework
Added unit test for parsing xml in sadf plugin

Signed-off-by: ndarshan <dnarayan@redhat.com>
Add test case for disk_and_inode_usage plugin

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Add plugin to watch /boot /var /root along with lvm disks

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Modified xml to dict converter in sadf.py to
work properly in python 2.6

Signed-off-by: ndarshan <dnarayan@redhat.com>
Added the UT for check_host_status plugin

Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
Enhanced spec files and build script

1) Add iptable rule
2) add mk_livestatus dependency in gluster-nagios spec
3) add sysstat dependency in gluster-nrpe spec
4) add crond configuration

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Added  broker_module configuration for check_mklivestatus

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Fix iptable configuration issue in spec files

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Updated iptable entries in the spec file

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Fixed iptable rule config issue

fixed type and changed the order in iptable rule

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Changed port no for iptable node config

Signed-off-by: Timothy Asir <tim.gluster@gmail.com>
Nagios event handlers for gluster services

  Adding gluster specific nagios event handlers which
can handle the gluster events from nagios.

 Master event handler is the one which will be
called by nagios to whenever a state change happens.
Internally this master event handler will call all
other gluster event handlers depending on the gluster
entity/service which is changing the state.

Added Ovirt Engine event handler to notify
nagios events to Ovirt Engine.

Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>