diff options
author | Timothy Asir <tjeyasin@redhat.com> | 2014-04-29 18:28:14 +0530 |
---|---|---|
committer | Sahina Bose <sabose@redhat.com> | 2014-05-02 06:16:03 -0700 |
commit | d646c986a3ba54570c9a0d367d106deeb0a80e38 (patch) | |
tree | b721ee3b3d1b9f53e10ac417b77f5040a6e2a9bb /gluster-nagios-addons.spec.in | |
parent | ccec0742af257e13effafa30a1184541c3cf5b65 (diff) |
Run check gluster process status as a daemon
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>
Diffstat (limited to 'gluster-nagios-addons.spec.in')
-rw-r--r-- | gluster-nagios-addons.spec.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gluster-nagios-addons.spec.in b/gluster-nagios-addons.spec.in index fb31946..6e305bf 100644 --- a/gluster-nagios-addons.spec.in +++ b/gluster-nagios-addons.spec.in @@ -82,6 +82,8 @@ Requires: python-netaddr Requires: python-pthreading Requires: python-cpopen >= 1.3 Requires: python-psutil +Requires: python-lockfile +Requires: python-daemon Requires: sysstat %description @@ -150,11 +152,14 @@ command[discoverhostparams]=sudo %{_libdir}/nagios/plugins/gluster/discoverhostp command[configure_gluster_node]=sudo %{_libdir}/nagios/plugins/gluster/configure_gluster_node.py -c \$ARG1\$ -n \$ARG2\$ -H \$ARG3\$ EOF %_init_enable nrpe +%_init_enable glusterpmd %_init_restart crond %_init_restart rsyslog - +%_init_restart glusterpmd %preun +%_init_disable glusterpmd +%_init_stop glusterpmd sed -i '/gluster nrpe plugins/d' %{_sysconfdir}/nagios/nrpe.cfg sed -i '/check_disk_and_inode/d' %{_sysconfdir}/nagios/nrpe.cfg sed -i '/check_memory/d' %{_sysconfdir}/nagios/nrpe.cfg @@ -167,10 +172,11 @@ sed -i '/check_vol_quota_status/d' %{_sysconfdir}/nagios/nrpe.cfg %files %defattr(-,root,root,-) %attr(0755, -, -) %{_libdir}/nagios/plugins/gluster/* +%attr(0755, -, -) %{_sysconfdir}/init.d/glusterpmd %{_sysconfdir}/cron.d/gluster-sysstat.crontab %{_sysconfdir}/rsyslog.d/glusternagios.conf %{_sysconfdir}/nagios/nagios_server.conf -%{_sysconfdir}/cron.d/gluster-proc.crontab +%{_sysconfdir}/init.d/glusterpmd %files tests %defattr(-,root,root,-) |