Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mclarkson/check_cluster_table
https://github.com/mclarkson/check_cluster_table
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mclarkson/check_cluster_table
- Owner: mclarkson
- Created: 2014-02-11T16:18:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-10T13:08:37.000Z (about 9 years ago)
- Last Synced: 2024-10-25T02:48:15.253Z (21 days ago)
- Language: Shell
- Size: 172 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
Awesome Lists containing this project
README
++++
++++Check Cluster Table
-------------------This is a variation on the check_cluster nagios check. It's mainly useful for
low power devices, or very busy machines that continuously run at a high load.Reasoning and info available here:
http://blogger.smorg.co.uk/2014/02/synology-diskstation-performance-tuning_10.html
*INSTALL*
Example:
----
wget https://raw.githubusercontent.com/mclarkson/check_cluster_table/master/check_cluster_table
chmod +x check_cluster_table
mv check_cluster_table /usr/lib/nagios/plugins/
----*EXAMPLE OUTPUT*
----
CLUSTER OK: 0 warning, 1 critical. | 'cluster problems'=1;CLUSTER WARNING: Match for '1,0,1'. 1 warning, 1 critical. | 'cluster problems'=2;
CLUSTER CRITICAL: Match for '1,1,1'. 1 warning, 2 critical. | 'cluster problems'=3;
----*MANUAL PAGE*
----
$ ./check_cluster_table -hcheck_cluster_table - Check a number of results against a table.
Usage: check_cluster_table (-s | -H) (-t col1[,col2,..,colN])*
-c NUM -d col1[,col2,..,colN]-h : Display this help text.
-S : Check services.
-H : Check hosts.
-t STR : Valid statuses. Use one or more times. Comma delimited.
Use 1 or 0 only.
-d STR : The current service or host statuses. Comma delimited.
-c NUM : If the number of criticals in the '-d' option exceeds
NUM then this plugin will return critical. Default 2.
For Host checks this option relates to the number of
host that are in a non-OK state.Examples:
If -d option represents Load, CPU, Swap Activity then the following
will NOT alert when cpu and load are both warning/critical nor when
CPU usage alone is warning/critical../check_cluster_table -S -t 1,1,1 -t 0,1,1 -t 1,0,1 -t 0,0,1 \
-d 0,1,0----