From 502cad8602457ffccc6edd8541e320be9b27e46e Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Thu, 12 Mar 2015 16:39:58 +0100 Subject: [PATCH] Nagios Plugins Update Nagios Plugins Update --- Documentation/Tutorials/Nagios-Plugins.md | 27 +++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/Documentation/Tutorials/Nagios-Plugins.md b/Documentation/Tutorials/Nagios-Plugins.md index c1e35dcb6..4cf32379f 100644 --- a/Documentation/Tutorials/Nagios-Plugins.md +++ b/Documentation/Tutorials/Nagios-Plugins.md @@ -19,6 +19,8 @@ Last Updated: 12th March 2015 +# MaxScale Requirements + MaxScale must be configured with 'maxscaled' protocol for the administration interface [AdminInterface] @@ -31,13 +33,13 @@ MaxScale must be configured with 'maxscaled' protocol for the administration int protocol=maxscaled port=6603 -## Prepare Nagios configuration files +## Prepare Nagios configuration files (assuming plugins are in /usr/lib64/nagios/plugins and Nagios configuration in /etc/nagios) - 1) copy check_maxscale_*.pl under /usr/lib64/nagios/plugins - 2) copy maxscale_commands.cfg, server1.cfg to /etc/nagios/objects/ + 1) Copy ./nagios/plugins/check_maxscale_*.pl under /usr/lib64/nagios/plugins + 2) Copy ./nagios/plugins/maxscale_commands.cfg and server1.cfg to /etc/nagios/objects/ 3) Edit /etc/nagios/nagios.cfg -add +and add (just after localhost.cfg or commnads.cfg) cfg_file=/etc/nagios/objects/maxscale_commands.cfg cfg_file=/etc/nagios/objects/server1.cfg @@ -63,3 +65,20 @@ define service{ 4) Restart Nagios +# Nagios Plugin usag + + ./check_maxscale_threads.pl -h + +MaxScale monitor checker plugin for Nagios + +Usage: check_maxscale_threads.pl [-r ] [-H ] [-P ] [-u ] [-p ] [-m ] [-h] + +Options: + -r = threads + -h = provide this usage message + -H = which host to connect to + -P = port to use + -u = username to connect as + -p = password to use for at + -m = /path/to/maxadmin +