summaryrefslogtreecommitdiffstats
path: root/plugins/check_proc_util.py
Commit message (Collapse)AuthorAgeFilesLines
* gluster-nagios: detect .pid files under /var/run/gluster/vols/HEADmasterNiels de Vos2017-10-161-3/+16
| | | | | | | | | | | | | | | New versions of Gluster place .pid files for volumes under /var/run/gluster/vols/ instead of the previous /var/lib/glusterd/vols/ directory. In order to support both variants, look for the .pid file in both locations. BUG: 1498112 Change-Id: I605c611d792cfe29c212bb2eb9d14df2e589502c Reported-by: Pamela Ousley <pousley@redhat.com> Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: https://review.gluster.org/18425 Reviewed-by: Sahina Bose <sabose@redhat.com> Tested-by: Sahina Bose <sabose@redhat.com>
* nagios-plugins: Return status for glusterd service checkSahina Bose2015-06-111-6/+7
| | | | | | | | | | | | Corrected the nagios plugin return status based on the service return status Change-Id: I14e89645a0b2eacc016c9c5abb21a0bd0b85c9b3 Bug-Url: https://bugzilla.redhat.com/1177129 Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/11161 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Timothy Asir
* Enhance plugin to display smb statusTimothy Asir Jeyasingh2015-05-141-0/+7
| | | | | | | | | | | | | | Plugin will be changed to look at chkconfig status of SMB. If turned off, plugin will report SMB service status as "Not Configured". Change-Id: I227b1215eb12066cf6367ce41388a133332e2be2 Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1178765 Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/10423 Tested-by: Timothy Asir Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* fix glusterd service status issueTimothy Asir Jeyasingh2015-05-061-2/+5
| | | | | | | | | | | | | | | | This patch fixes glusterd service status issue in nagios when glusterd is hung on the node. Currently it checks the status thru pid and return the status as 'running' when it finds any pid for glusterd process. Change-Id: Ia5045cae7ef1f28d3f8bb558039f47bcbe5d101b Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1177129 Signed-off-by: Timothy Asir Jeyasingh <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/10246 Tested-by: Timothy Asir Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Fix bug:1119273 - invalid ctdb status message on ctdb service stopTimothy Asir2014-11-171-0/+8
| | | | | | | | | | | | | | | | This patch check for if CTDB process is not running and ctdb chkconfig status is on: then it will return "CTDB is not running", CRITICAL level and if the CTDB process is not running and the chkconfig status is off: then it will return "CTDB not configured", Unknown Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1119273 Change-Id: I13c586ceefc86978acd154f9c641a9cc0ffb443b Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/9124 Reviewed-by: Ramesh N <rnachimu@redhat.com> Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* Remove python-psutil dependencyTimothy Asir2014-06-161-12/+25
| | | | | | | | | 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>
* plugins: ignore offline volumes in smb/quotad monitoringKanagaraj M2014-06-051-5/+9
| | | | | | | | | | Volumes which are not ONLINE will be ignored. Change-Id: I36eade96be36b39f436852b1a9570c27965d29a0 Bug-Url: https://bugzilla.redhat.com/1104490 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7968 Reviewed-by: Sahina Bose <sabose@redhat.com>
* procstat: fix status information to show appropriate messages.Timothy Asir2014-05-291-6/+9
| | | | | | | | | | | | This patch fixes status information to show appropriate message when the process is already running. Change-Id: I82e8cb76bdbc3b2e6ee7f6e3f15fc3633a3792bc Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1089705 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7826 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* plugins: Fixing issue in SMB status pluginRamesh Nachimuthu2014-05-231-3/+3
| | | | | | | | | | | | SMB is enabled by default. So even if there is no option specified in volume options, we have to consider that SMB is enabled. Also if either SMB or CIFS is disabled, it means that SMB is disabled. Change-Id: Ie1aca2ac51308ba3ae33c767a217188e82570a33 Bug-Url: https://bugzilla.redhat.com/1099334 Signed-off-by: Ramesh Nachimuthu <rnachimu@redhat.com> Reviewed-on: http://review.gluster.org/7847 Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* brickstat: fix brick status informationTimothy Asir2014-05-221-1/+1
| | | | | | | | | | | | | Status Information for brick status service will have a proper message like "ok: brick <brickpath> is up" when the brick is up. Bug-url: https://bugzilla.redhat.com/show_bug.cgi?id=1090864 Change-Id: Id03c70d0e4d3b79a7cfc12552047f6905ec74fc9 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7827 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Tested-by: Timothy Asir <tim.gluster@gmail.com>
* plugins: fix issues in CTDB monitoring pluginKanagaraj M2014-05-151-10/+31
| | | | | | | | | | | | | | | | | | | | | | | | When CTDB service is running, it can be in following states - Ok - Disconnected - Banned - Disabled - Unhealthy - Stopped - Inactive - PartiallyOnline - [And combinations of the above except Ok] Plugin Output: - OK if state is OK - WARNING if state is UNHEALTHY/DISABLED/PARTIALLYONLINE - CRITICAL if any other state Change-Id: I85bcf8cf863619ef9d0296fb93e77eea8a3dda6a Bug-Url: https://bugzilla.redhat.com/1097682 Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7776 Reviewed-by: Sahina Bose <sabose@redhat.com>
* fix CTDB status shows UNKNOWN instead of OKTimothy Asir2014-05-141-0/+2
| | | | | | | | | | | | when ctdb is configured and running, status column shows "UNKNOWN" but status information shows "Node Status :OK". Change-Id: Iaba78ddc276061652b9285139deffcbc17791043 Bug-Url:https://bugzilla.redhat.com/show_bug.cgi?id=1097682 Signed-off-by: Timothy Asir <tjeyasin@redhat.com> Reviewed-on: http://review.gluster.org/7763 Tested-by: Timothy Asir <tim.gluster@gmail.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* plugin: fix issue in smb monitoringKanagaraj M2014-05-081-3/+3
| | | | | | | | | | | - changed the service name to 'SMB' - changed the default value to 'disable' Change-Id: I3b7a3b789495278e4b1de0a78e500994739d305a Signed-off-by: Kanagaraj M <kmayilsa@redhat.com> Reviewed-on: http://review.gluster.org/7701 Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Sahina Bose <sabose@redhat.com>
* nagios-addons: Add NRPE command for gluster processesRamesh Nachimuthu2014-05-071-0/+196
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>