diff --git a/Documentation/Tutorials/Nagios-Plugins.md b/Documentation/Tutorials/Nagios-Plugins.md index 4cf32379f..6c4a00924 100644 --- a/Documentation/Tutorials/Nagios-Plugins.md +++ b/Documentation/Tutorials/Nagios-Plugins.md @@ -65,20 +65,20 @@ define service{ 4) Restart Nagios -# Nagios Plugin usag +# Nagios Plugin usage - ./check_maxscale_threads.pl -h + ./check_maxscale_threads.pl -h -MaxScale monitor checker plugin for Nagios + MaxScale monitor checker plugin for Nagios -Usage: check_maxscale_threads.pl [-r ] [-H ] [-P ] [-u ] [-p ] [-m ] [-h] + 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 + 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 diff --git a/plugins/nagios/maxscale_commands.cfg b/plugins/nagios/maxscale_commands.cfg index ca3446d4e..23bbb3594 100644 --- a/plugins/nagios/maxscale_commands.cfg +++ b/plugins/nagios/maxscale_commands.cfg @@ -1,6 +1,7 @@ ############################################################################### # MAXSCALE_COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.5.1 # +# Massimiliano Pinto # Last Modified: 06-03-2015 # # NOTES: This config file provides you with some example command definitions diff --git a/plugins/nagios/server1.cfg b/plugins/nagios/server1.cfg index d571fb1aa..d0f471ed1 100644 --- a/plugins/nagios/server1.cfg +++ b/plugins/nagios/server1.cfg @@ -101,11 +101,11 @@ define service{ notifications_enabled 0 } -# Define a service to check Script on the remote machine. +# Define a service to check Script on the remote machine, with maxadmin path define service{ use local-service ; Name of service template to use host_name server1 service_description MaxScale_threads - check_command check_maxscale_threads!6603!admin!skysql!threads + check_command check_maxscale_threads!6603!admin!skysql!threads!/usr/local/skysql/maxscale/bin/maxadmin notifications_enabled 0 }