Nagios Documentation Update

Nagios Documentation Update
This commit is contained in:
MassimilianoPinto
2015-03-12 16:45:30 +01:00
parent 502cad8602
commit 89f62577a9
3 changed files with 15 additions and 14 deletions

View File

@ -65,20 +65,20 @@ define service{
4) Restart Nagios 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 <resource>] [-H <host>] [-P <port>] [-u <user>] [-p <pass>] [-m <maxadmin>] [-h] Usage: check_maxscale_threads.pl [-r <resource>] [-H <host>] [-P <port>] [-u <user>] [-p <pass>] [-m <maxadmin>] [-h]
Options: Options:
-r <resource> = threads -r <resource> = threads
-h = provide this usage message -h = provide this usage message
-H <host> = which host to connect to -H <host> = which host to connect to
-P <port> = port to use -P <port> = port to use
-u <user> = username to connect as -u <user> = username to connect as
-p <pass> = password to use for <user> at <host> -p <pass> = password to use for <user> at <host>
-m <maxadmin> = /path/to/maxadmin -m <maxadmin> = /path/to/maxadmin

View File

@ -1,6 +1,7 @@
############################################################################### ###############################################################################
# MAXSCALE_COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.5.1 # MAXSCALE_COMMANDS.CFG - SAMPLE COMMAND DEFINITIONS FOR NAGIOS 3.5.1
# #
# Massimiliano Pinto
# Last Modified: 06-03-2015 # Last Modified: 06-03-2015
# #
# NOTES: This config file provides you with some example command definitions # NOTES: This config file provides you with some example command definitions

View File

@ -101,11 +101,11 @@ define service{
notifications_enabled 0 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{ define service{
use local-service ; Name of service template to use use local-service ; Name of service template to use
host_name server1 host_name server1
service_description MaxScale_threads 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 notifications_enabled 0
} }