summaryrefslogtreecommitdiffstats
path: root/plugins/nscautils.py.in
Commit message (Collapse)AuthorAgeFilesLines
* plugins: Fix pep8 error in nscautilsSahina Bose2014-05-051-1/+1
| | | | | | | | Fix pep8 error Change-Id: I9dc12c6a72b86ec8fadb9bd2447a4eb522a44afb Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7668
* plugins: Plugin to handle server quorumSahina Bose2014-05-051-10/+10
| | | | | | | | | | | | | | | | | | | Plugin to handle log messages related to server quorum Message is parsed for msgid as the msgid is not correctly populated now Fixed pep8 errors in nscautils and added tests Also changed the service name to remove "Status" -it now reads Volume Quota, for instance Change-Id: I339ed16b3806f853ae3555a998974c47157c95ad Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7648 Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com> Reviewed-by: Ramesh N <rnachimu@redhat.com> Reviewed-by: Kanagaraj M <kmayilsa@redhat.com>
* plugins: Changed nsca method for syslog monitoringSahina Bose2014-05-041-0/+24
| | | | | | | | | | | | | Changed the syslog monitoring plugin to use subprocess to send the nsca command There was an issue with using the utils method when being called from rsyslog service Change-Id: Ia4dea2b0f942ce815f123ece1fba8fd1f18fc6be Signed-off-by: Sahina Bose <sabose@redhat.com> Reviewed-on: http://review.gluster.org/7639 Reviewed-by: Timothy Asir <tim.gluster@gmail.com>
* Run check gluster process status as a daemonTimothy Asir2014-05-021-0/+6
| | | | | | | | | | | | 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>
* fix send_nsca packet errorTimothy Asir2014-04-291-4/+4
| | | | | Change-Id: Id1a490777b0765b7e2bbfcbdb3615970af82f015 Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
* Use hostname from the config for sending proc status thru nscaTimothy Asir2014-04-291-0/+6
| | | | | | | | | | fetch the hostname from nagios_server.conf file otherwise use the host-fqdn name for sending proc status thru nsca. And fix the check_proc_status plugin path in cron.d/gluster-proc.crontab file. Change-Id: Ibfc027742b58d87daa7e54aa553892d42c71e795 Signed-off-by: Timothy Asir <tjeyasin@redhat.com>
* plugins: Fixed errors in syslog pluginSahina Bose2014-04-291-1/+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>
* plugins: Plugin to act on syslog messageSahina Bose2014-04-291-0/+53
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>