summaryrefslogtreecommitdiffstats
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Server side plugin for self-healSahina Bose2014-04-292-1/+22
| | | | | | | | Server side plugin to check the volume self heal status Change-Id: Ia1ee3fb653913360edb1b54b42cce3ed105bdb79 Signed-off-by: Sahina Bose <sabose@redhat.com>
* autoconf: use host name for host configRamesh Nachimuthu2014-04-291-2/+2
| | | | | | | | Discover the host name configured for the gluster node and use the same as host_name in nagios host configuration. Change-Id: Ib9eb8b3f3a1a03d1be28fa2faba44c2fc81fa0cf Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* snmp: Fix conf file name and permissionKanagaraj M2014-04-292-1/+1
| | | | | | | | | | | Renamed the file to snmpmanagers.conf, as .cfg files nagios specific files. Changed the permission to nagios:nagios, as trapgenerater fails otherwise. Change-Id: I2fbc4404c7177ee3bcaeab3151cbcba8e062772a Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* volume status: event handler for brick statusRamesh Nachimuthu2014-04-292-0/+6
| | | | | | | | | Adding an event handler for brick status services. It will reschedule the volume status service to determine the current status of volume after any brick state change Change-Id: I94fa018e5aed15be53f45506f1a38efd698eca79 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* SNMP Trap Support : SNMP notification on status changeNishanth Thomas2014-04-297-9/+759
| | | | | | | | | | | These plugins will generate SNMP traps when there is a host or service state change in Nagios. Plugged into the Nagios Notification mechanism and uses netsnmp utils to generate SNMP traps Addressed the review comments Change-Id: I42c4d1968a48bc80e767f6fbc24d1637a92d21b0 Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
* Cluster Status: Plugin to display the overall status of clusterNishanth Thomas2014-04-293-1/+6
| | | | | | | | | This plugin use mk-livestatus to retrieve the status of the all the volumes and provide aggregrate status of the cluster Addressed review comments Change-Id: Ia83b41cfdc6dcfc1f379c024ba6ea33f9ccfe598 Signed-off-by: Nishanth Thomas <nthomas@redhat.com>
* config: added passive checks for gluster quota daemonTimothy Asir2014-04-292-1/+9
| | | | | | | Added passive check service entry for quotad Change-Id: I276ee017a3938aa211f683f589918966f40d9e38 Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
* plugins: Added quota NRPE to volume statusSahina Bose2014-04-292-0/+21
| | | | | | | | | | Added a way to query for quota status to the check_vol_server plugin This will poll for quota status only if the service status for quota returns non-OK status Change-Id: I6260042ef54308a1f4f7b6d482a2b58a4682d36c Signed-off-by: Sahina Bose <sabose@redhat.com>
* Server-addons: Server-side plugin for volume status.ndarshan2014-04-292-1/+21
| | | | | | | | | | | Modified the existing volume utilization server plugin to include status information as well. Refactored the plugin with an argument -o|--option to get the specific volume status. Change-Id: I2b6f8612e32390fb20917098a255de1ee6b3a170 Signed-off-by: ndarshan <dnarayan@redhat.com> Signed-off-by: Sahina Bose <sabose@redhat.com>
* config: added passive checks for gluster processes/bricksKanagaraj M2014-04-294-4/+55
| | | | | | | | | | | | | | | | | | Added passive check service entry for the following. Gluster Management Daemon Gluster NFS Daemon Gluster Self-Heal Daemon Brick Status And renamed the service_description of Brick Brick Utilization - host_ip:brick_dir Brick Status - host_ip:brick_dir display_name for host/service is not being used by nagios according to the documentation, so removed from the conf. Change-Id: Iab66c1a9a07a04ac4e8b8dac76cac30cd5b02365 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* autoconf: refactoring auto confRamesh Nachimuthu2014-04-291-1/+1
| | | | | | | | | | | | | | Following small changes have been made in auto conf. 1. Create Cluster utilization service only when there is atleast one volume in the cluster. 2. Change the auto config to use the same host given during manual run for further auto syncing. 3. Change the "gluster_auto_discovery" command to passss the cluster name to auto discovery using $HOSTNAME$ macro Change-Id: Id30e0794d98ada4a0276af0c17781f8742dc14e5 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* AutoDiscovery: Auto discovery for gluster entitiesRamesh Nachimuthu2014-04-293-0/+40
| | | | | | | | | | Basic plugin which will discover all the basic gluster entities and creates nagios configuration. Change-Id: I71f05dec9bcce74969db300393f7f7c178161dba Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/22100 Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins: Fixing template, commands and vol utilizationSahina Bose2014-04-292-0/+40
| | | | | | | | | | Fixed the template, commands and vol utilization plugin Change-Id: I11eb562f6f563d066938110f730512ae0b772eaf Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/66 Reviewed-by: Nishanth Thomas <nishusemail@gmail.com>
* config: fix for event handler pathRamesh Nachimuthu2014-04-291-2/+2
| | | | | | | | | | | All event handlers are moved to gluster folder under plugins folder. Hence command has to be changed accordingly. Change-Id: I0b094cf05246b622b1c58277105e855a21350e2e Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/59 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* plugins: Definitions for brick usageSahina Bose2014-04-294-0/+77
| | | | | | | | | | | | Added nagios command definitions for brick usage Also added a sample file to be used as reference to configure a gluster cluster in Nagios Change-Id: I3db0ce05de997460589b40fd684fff6a4e023fb6 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/51 Reviewed-by: Ramesh N <rnachimu@redhat.com>
* nagios-server-addons: Corrected service list fileShubhendu Tripathi2014-04-291-8/+1
| | | | | | | | | | | | Corrected the issue with service list file Change-Id: Id850da21688a46d7439b0927efec0a57e5e3528d Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/56 Reviewed-by: darshan n <dnarayan@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Tested-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-server-addons: Check remote host pluginShubhendu Tripathi2014-04-292-0/+9
| | | | | | | | | | Plugins to ckeck the remote host status based on various services. Change-Id: I1e260829901aa8dd831f0ca1d58609addb9bcf1b Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/9 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* plugins: Plugin to check the cluster utilizationSahina Bose2014-04-291-0/+6
| | | | | | | | | | | | | | | This plugin sums up the volume utilization outputs in a cluster Added a utils livestatus for common code related to mk_livestatus Added constants for livestatussocket path Change-Id: Id665ad3aaa1140e54c831d721ee874421ae84fa3 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/10 Reviewed-by: Bala FA <barumuga@redhat.com>
* Notification: Notification handler for ovirt notificationRamesh Nachimuthu2014-04-294-18/+63
| | | | | | | | | | | | | | | | | | | | | | Added a new notification handler to notify nagios events to ovirt. A new contact ovirt is added with the handler which can sent events/alerts to ovirt engine using Rest API. By default all gluster related configuration entities like host, volume, gluster, bricks will have this contact. By default contact ovirt will have some default values for ovirt engie rest api and user fields. User has to fill the right values in ovirt contact defined in gluster-contacts.cfg file. Ovirt password has to be configured as a user variable $USER3$ in file /etc/nagios/private/resource.cfg. User variable $USER3$ used in command to pass the password to the handler. Change-Id: I19074af6ae1ee4a8c16d8821b10a1c3a345f321a Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/8 Reviewed-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* all: import plugins/templates/config from githubv0.1.0Bala.FA2014-04-296-0/+153
All plugins/templates/config are imported from https://github.com/gluster-rhsc/nagios-plugin.git Change-Id: Icbbf23c0595e2b36548015489341d9ff823bac50 Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/6