kwhogster wrote:Did you review my service check in my first posting?
That is the only place I have the definition located.
also do you know of a way I can manually check this ?
Yes I did, I also understand exactly how check_cluster works. It takes the arguments you pass as
$SERVICESTATEID:TGCS014-N1:MSSQLSHAREPOINT$,$SERVICESTATEID:TGCS014-N2:MSSQLSHAREPOINT$ and extrapolates the values...
The macro
$SERVICESTATEID:TGCS014-N1:MSSQLSHAREPOINT$ means to grab the SERVICESTATEID from the service MSSQLSHAREPOINT on the host TGCS014-N1 in nagios. This must be present.
See the On-Demand Macros Section here
https://assets.nagios.com/downloads/nag ... acros.html
Usage for check_cluster
Code: Select all
[root@localhost nagiosxi]# /usr/local/nagios/libexec/check_cluster --help
check_cluster v2.2.1 (nagios-plugins 2.2.1)
Copyright (c) 2000-2004 Ethan Galstad (nagios@nagios.org)
Copyright (c) 2000-2014 Nagios Plugin Development Team
<devel@nagios-plugins.org>
Host/Service Cluster Plugin for Nagios 2
Usage:
check_cluster (-s | -h) -d val1[,val2,...,valn] [-l label]
[-w threshold] [-c threshold] [-v] [--help]
Options:
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.nagios-plugins.org/doc/extra-opts.html
for usage and examples.
-s, --service
Check service cluster status
-h, --host
Check host cluster status
-l, --label=STRING
Optional prepended text output (i.e. "Host cluster")
-w, --warning=THRESHOLD
Specifies the range of hosts or services in cluster that must be in a
non-OK state in order to return a WARNING status level
-c, --critical=THRESHOLD
Specifies the range of hosts or services in cluster that must be in a
non-OK state in order to return a CRITICAL status level
-d, --data=LIST
The status codes of the hosts or services in the cluster, separated by
commas
-v, --verbose
Show details for command-line debugging (Nagios may truncate output)
Notes:
See:
https://www.nagios-plugins.org/doc/guidelines.html#THRESHOLDFORMAT
for THRESHOLD format and examples.
Examples:
check_cluster -s -d 2,0,2,0 -c @3:
Will alert critical if there are 3 or more service data points in a non-OK
state.
Send email to help@nagios-plugins.org if you have questions regarding use
of this software. To submit patches or suggest improvements, send email to
devel@nagios-plugins.org