Nagios plugin to check cluster synchronization process
移至檔案
Benjamin Renard 64e9e35076 Mise à jour de 'README.md' 2023-03-30 16:30:57 +02:00
.gitignore Initial commit 2018-11-29 15:51:57 +01:00
README.md Mise à jour de 'README.md' 2023-03-30 16:30:57 +02:00
check_sync_cluster Initial commit 2018-11-29 15:51:57 +01:00

README.md

Nagios plugin to check cluster synchronization process

Installation

git clone https://gitea.zionetrix.net/bn8/check_sync_cluster.git /usr/local/src/check_sync_cluster
mkdir -p /usr/local/lib/nagios/plugins
ln -s /usr/local/src/check_sync_cluster/check_sync_cluster /usr/local/lib/nagios/plugins/
echo "command[check_sync_cluster]=/usr/local/lib/nagios/plugins/check_sync_cluster" > /etc/nagios/nrpe.d/sync-cluster.cfg
service nagios-nrpe-server reload

Usage

Usage : ./check_sync_cluster [-f files_path_format] [-wcWC]
	-h			Show this help message
	-f [files path format]	Specify files path template (default : /var/run/sync_cluster)
	-w [minutes]		Specify WARNING time in minutes for status file (default : 5)
	-c [minutes]		Specify CRITICAL time in minutes for status file (default : 10)
	-W [minutes]		Specify WARNING time in minutes for PID file (default : 5)
	-C [minutes]		Specify CRITICAL time in minutes for PID file (default : 10)

Copyright (c) 2018-2023 Benjamin Renard

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.