summaryrefslogtreecommitdiffstats
path: root/gluster-nagios-addons.spec.in
Commit message (Collapse)AuthorAgeFilesLines
* gluster-nagios-addons: Removed iptables modification.ndarshan2014-07-011-11/+0
| | | | | | | | | | | | | Removed addition of nrpe port to iptables and restarting of iptables from spec file as Its better to leave this task to sys admin. Change-Id: I3e86c1af6d5aefd7fed99a00c02ce7d5534e83ce Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1110719 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/8212 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* rpm: fix service restart on postBala.FA2014-06-201-4/+9
| | | | | | | | | | | | | Currently iptables and other services are restarted without checking current state. This patch fixes this issue by doing conditional restart. Change-Id: I6149af00aae7ba7acda9e0f5f6295b9f78363631 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1110719 Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: http://review.gluster.org/8112 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
* Remove python-psutil dependencyTimothy Asir2014-06-161-1/+0
| | | | | | | | | Change-Id: I6267242de480f4c7a572eeac7a74472bf7ab9226 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1103759 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/8037 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add status information to show disk usageTimothy Asir2014-06-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | This will show the status like: for critical usage: CRITICAL: 4% used (4GB out of 100GB):mounts: (CRITICAL : <critical list> followed by WARNING if any followed by OK for disk status "WARNING": WARNING: 4% used (4GB out of 100GB):mounts: (WARNING if any followed by OK for disk status "OK": OK: 4% used (4GB out of 100GB):mounts:(<mounts>) Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1081495 Change-Id: I9dbda7a5d6ea992ba73acce2174e6d66f2e16066 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7936 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add sudo configuration for nrpe users for specific pathTimothy Asir2014-06-051-0/+1
| | | | | | | | Change-Id: Ib0a25a13423fa3020f55bfddc831e2b653d4c9ea Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7808 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* gluster-nagois-addon: setting interval option for sadf plugins.ndarshan2014-05-201-4/+4
| | | | | | | | | | | | | | | | Setting interval option for memory,swap,network,cpy plugins to 2 minutes. This interval is used for checking if the data retrived from sadf command is old. Before data from sadf older than a minute was considred as stale and hence state was moved to unknown, now its relaxed to two minutes. Change-Id: I237d04ffba8d2dd128ae1c9b2248425460143b8c Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1081953 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://review.gluster.org/7754 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com> Reviewed-by: Bala FA <barumuga@redhat.com>
* nagios-addons: fix issue during upgrade of nagios-addonsRamesh Nachimuthu2014-05-201-12/+13
| | | | | | | | | | | | | | | | Updating gluster-nagios-addons removes few NRPE commands in the nrpe.cfg. Its because of the way how upgrade works. Normally upgrade works by installing the latest rpms first and then un-installing the older version. So during upgarde we should not delete any configuration. Only during un-installation all the NRPE commands should be deleted. Bug-Url: https://bugzilla.redhat.com/1098393 Change-Id: I4f9f256ad0f7aec5ef85dc42976a7da5fe9799cd Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7795 Reviewed-by: Bala FA <barumuga@redhat.com>
* Enhance brick usage plugin config to return percentage wise usageTimothy Asir2014-05-121-1/+1
| | | | | | | | Change-Id: I46e79a20f1077e9ea3d893af6dde4c747fd493a6 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7692 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* nagios-addons: Add NRPE command for gluster processesRamesh Nachimuthu2014-05-071-0/+2
| | | | | | | | | | | | | | | | | | | | | Adding NRPE command for all process related services. We already have passive checks through NSCA for all these services and bricks. But passive checks are submitted only when there is a state change and Nagios may miss those check results if those services are not cofigured when we submit passive checks. So, we should have active checks running atleast for the first time to determine the initial status of the service Command 'check_proc_status' helps to check the status of all gluster related process Command 'check_brick_status' helps to check the status of bricks in the host. Change-Id: I1f442c0c1e54d606576bc0814044f2f149bca220 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7694 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Run check gluster process status as a daemonTimothy Asir2014-05-021-2/+8
| | | | | | | | | | | | Enhanced to send specific gluster related process status only when there is a change detected in a service status or for any critical status to avoid too many logs in the nagios service side. Change-Id: I26e389ae2d1ccba1b5ccadc45d202d3b5219c74a Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7602 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Timothy Asir <tim.gluster@gmail.com>
* autoconf: discover volume list and info separatelyRamesh Nachimuthu2014-05-021-1/+2
| | | | | | | | | | | | | | | | | | | | NRPE doesn't support transfering large junk of data as a result. Hence we have to discover the volume details one by one. Added two NRPE commands 'discover_volume_list' and 'discover_volume_info'. 'discover_volume_list' returns the list of volume names with volume type. 'discover_volume_info' returns the bricks details of a given volume. Change-Id: I753be5e407fe14988f23ca77007b3a585537b360 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7630 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins: Fixed vol_status nrpe command argumentsSahina Bose2014-05-011-4/+1
| | | | | | | | | | | Fixed the check_vol_status nrpe plugin to take arguments instead of defining multiple commands Change-Id: I8d12848e4bbb2394c018b4968baa8df69ce7793a Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7637 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com>
* plugins: Added geo-rep status to volume_statusSahina Bose2014-05-011-0/+1
| | | | | | | | | | | Added option to get the geo rep status to check_volume_status plugin Change-Id: I32d2a0240e3888505c54fdce9a3fb731b9300e38 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7591 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* autoconf: Add NRPE command to configure NSCARamesh Nachimuthu2014-04-291-0/+1
| | | | | | | | | | Adding a new NRPE command 'configure_gluster_node' to configure gluster nodes to send passive check results using NSCA. Change-Id: I1993eefab112f9fb5ba7764593cebca9923b4aba Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7595 Reviewed-by: Sahina Bose <sabose@redhat.com>
* spec: fix dependencies issues in spec fileKanagaraj M2014-04-291-0/+7
| | | | | | | Adding BuildRequires for the required packages. Change-Id: Iacfe1e09610b4801548cc56f703ee12ba294ec24 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* autoconf: adding sudo in nrpe commandsRamesh Nachimuthu2014-04-291-2/+2
| | | | | | | Adding sudo in nrpe commands to use clustercli. Change-Id: I3ad29d942def0969489c2ff7c17065546b0a1427 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* plugins: Added self heal status optionSahina Bose2014-04-291-4/+5
| | | | | | | | Added self-heal status option to the check_volume_status plugin Change-Id: Ia48f7baa3b6e4f0091be2116ab058ab48f1e5a29 Signed-off-by: Sahina Bose <sabose@redhat.com>
* autoconf: use host name for host config - node sideRamesh Nachimuthu2014-04-291-0/+1
| | | | | | | | adding the NRPE command 'discoverhostparams' to find the host name to use it host configuration. Change-Id: Ic80ac487059566f62afad83a5880922f8b5eb4cd Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* Add gluster process monitoring pluginTimothy Asir2014-04-291-0/+3
| | | | | | | | | This helps monitoring gluster related process such as glusterd, glusterfsd, gluster self heal process, nfs and also helps to monitor other running services Change-Id: I8c6f252270a847e7ff007c358125a9310525f201 Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
* autoconf: use glustercli to run volume info commandRamesh Nachimuthu2014-04-291-2/+2
| | | | | | | | Using the glustercli.volumeInfo() from common to get the volume info. It makes the discovery logic very simple Change-Id: Iacf319eb3b3b39805a483cbe43b02496802316a7 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com>
* plugins: Fixed errors in syslog pluginSahina Bose2014-04-291-0/+1
| | | | | | | | Added a requires on nsca and fixed the errors on calling syslog plugin Change-Id: I310a6a8aa64042a290d45207f78cf1d1d2b3b09b Signed-off-by: Sahina Bose <sabose@redhat.com>
* spec: python-cpopen >= 1.3Kanagaraj M2014-04-291-1/+1
| | | | | | | Updated the spec file with required python-cpopen version. Change-Id: I156ecf072297538186f0d4c5851f24d9ea90ba88 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com>
* plugins: Plugin to act on syslog messageSahina Bose2014-04-291-0/+3
| | | | | | | | | | | | This plugin integrates with syslog messages and sends the output to Nagios server using NSCA Refactored code to separate out common NSCA related code to nscautils Change-Id: I6a874da7f2296310060742acb6b1cd6562f5d0f0 Signed-off-by: Sahina Bose <sabose@redhat.com>
* plugins: Enhanced volume status with quota statusSahina Bose2014-04-291-1/+4
| | | | | | | | | Added an optional parameter to query quota status Added command to nrpe.cfg Change-Id: I9f60ed1a98cb2ca59b799cf9c09e3621b7bd8c0c Signed-off-by: Sahina Bose <sabose@redhat.com>
* rhs-nagios-addons: Plugin for volume statusndarshan2014-04-291-0/+1
| | | | | | | | This patch adds a plugin for volume status, it makes use of gluster command "gluster volume info". Signed-off-by: ndarshan <dnarayan@redhat.com> Change-Id: I6984d52c998bf1b832654b99abc3e2843b54f5ac
* Added the plugins for discovering the gluster componentsNishanth Thomas2014-04-291-0/+3
| | | | | | | | | | Modified the code to address the review comments Change-Id: Iaf18745920ec1177622b5f8a667a2e77f89796da Signed-off-by: Nishanth Thomas <nthomas@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/22345 Tested-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-by: Kanagaraj Mayilsamy <kmayilsa@redhat.com>
* rhs-nagios-addon: Added nagios-plugins-ide_smart dependencyShubhendu Tripathi2014-04-291-0/+1
| | | | | | | | | | | Added the nagios-plugins-ide_smart dependency to be installed Change-Id: I7fa05fcac6a769a9cdc253f3fe55b2b4f8e72fd5 Signed-off-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-on: https://code.engineering.redhat.com/gerrit/21956 Reviewed-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-by: Darshan Narayana Murthy <dnarayan@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add command entry for check_vol_utilization in the spec file.Timothy Asir2014-04-291-0/+1
| | | | | | | Change-Id: I726478c9a36674c24ef4dbecdea6f0f6a1f432f2 Signed-off-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/67 Reviewed-by: Sahina Bose <sabose@redhat.com>
* Add python-cpopen requires dependency in the spec file.Timothy Asir2014-04-291-0/+1
| | | | | | | Change-Id: I41d4f611c9e2cde12eae802476684c13b82f5c3f Signed-off-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/60 Reviewed-by: Sahina Bose <sabose@redhat.com>
* Enhanced check_disk_and_inode pluginTimothy Asir2014-04-291-1/+6
| | | | | | | | | | | Add option to include / exclude disk Add option to get disk usage without inode usage Add unit test Change-Id: Ifa8c13033269fea184d2dedc720dba4239770336 Signed-off-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/18 Reviewed-by: Sahina Bose <sabose@redhat.com>
* Plugin: Fix for wrong argument for network plugin in spec.ndarshan2014-04-291-1/+1
| | | | | | | | | | | Modified the argument for network plugin to be a string, in spec file. Change-Id: Ia4bb1c113f1117a9e06cf81e7bb78a11b7b4c048 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/52 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* plugins:Fix to handle sadf not accepting time range, test case additionndarshan2014-04-291-5/+5
| | | | | | | | | | | | | This patch handles the issue of sadf not accepting time range when used with -x (xml output) option(seen in version 9.0.4). Added unit-test for memory, cpu, swap, network plugins and refactored them. Change-Id: Ie7c2ecfbb38060f236a6faed606bce0aedd27d7a Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/14 Reviewed-by: Bala FA <barumuga@redhat.com> Tested-by: Bala FA <barumuga@redhat.com>
* build: update spec and build filesBala.FA2014-04-291-4/+73
| | | | | | | | | This update fixes spec and autotools file to match https://github.com/gluster-rhsc/nagios-plugin.git Change-Id: Ia49e3ac41254dd6937d60aaa26fdd3764cef398d Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/5
* plugins: import plugins from githubBala.FA2014-04-291-0/+2
| | | | | | | | | All plugins are imported from https://github.com/gluster-rhsc/nagios-plugin.git Change-Id: I9880becafccc79280873039e317b4afde747806c Signed-off-by: Bala.FA <barumuga@redhat.com> Reviewed-on: https://cuckoo.blr.redhat.com:8443/4
* Initial commitv0.1.0Bala.FA2014-04-291-0/+79
Change-Id: I45f91b2017ed59b057d21de52fd94c5c83fcf86f Signed-off-by: Bala.FA <barumuga@redhat.com>