ANTON
|
2009-06-28 05:24:37, Á¶È¸ : 2,591, Ãßõ : 40 |
NAGIOS ȯ°æ ¼³Á¤ °ü·Ã ¸ñ·Ï
1.ache.conf
2.cgi.cfg
3.check_traffic-0.90b
4.checkcommands.cfg
5.command.cfg
6.contactgroups.cfg
7.contacts.cfg
8.cre.sh
9.cre_hostextinfo.sh
10.dependencies.cfg
11.escalations.cfg
12.hostextinfo.cfg (°¢ È£½ºÆ®º° º°µµÀÇ ¾ÆÀÌÄÜÀ» ÁöÁ¤)
13.hostgroups.cfg
14.hosts.cfg (¸ð´ÏÅ͸µ ÇÒ È£½ºÆ® ÁöÁ¤)
15.minimal.cfg
16.misccommands.cfg (notification command)
17n1.sh
18.n2.sh
19.nagios.cfg
20.nagios.cron
21.nrpe.cfg
22.nrpe_local.cfg
23.resource.cfg (plugin µð·ºÅ丮, db¿¬µ¿½Ã °ü·ÃµÈ ³»¿ëÀ» ÁöÁ¤)
24.services.cfg (host ¿¡ ´ëÇÑ ¸ð´ÏÅ͸µÇÒ service¸¦ ÁöÁ¤ÇÑ´Ù)
25.timeperiods.cfg
monitor01:/etc/nagios# cat apache.conf
# BEGIN FOR NAGIOS
# Bug 160681 and 162986 say that the ScriptAlias should be
# /cgi-bin/nagios
# but some reports, 164925, (and the default config) say
# that it should be
# /nagios/cgi-bin
# Anyone having problems with this, PLEASE dig deeper in WHY
# it won't work for you...
#
# I'm enabling BOTH, just to be sure!
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios
ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios
<DirectoryMatch /usr/lib/cgi-bin/nagios>
Options ExecCGI
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
# Where the stylesheets (config files) reside
Alias /nagios/stylesheets /etc/nagios/stylesheets
# Where the HTML pages live(d)
Alias /netsaint /usr/share/nagios/htdocs
Alias /nagios /usr/share/nagios/htdocs
<DirectoryMatch /usr/share/nagios/htdocs>
Options FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
# END FOR NAGIOS
monitor01:/etc/nagios# cat cgi.cfg
#####
#
# CGI.CFG - Sample CGI Configuration File for Nagios
#
# Last Modified: 10-29-2002
#
#####
# MAIN CONFIGURATION FILE
# This tells the CGIs where to find your main configuration file.
# The CGIs will read the main and host config files for any other
# data they might need.
main_config_file=/etc/nagios/nagios.cfg
# PHYSICAL HTML PATH
# This is the path where the HTML files for Nagios reside. This
# value is used to locate the logo images needed by the statusmap
# and statuswrl CGIs.
physical_html_path=/usr/share/nagios/htdocs
# URL HTML PATH
# This is the path portion of the URL that corresponds to the
# physical location of the Nagios HTML files (as defined above).
# This value is used by the CGIs to locate the online documentation
# and graphics. If you access the Nagios pages with an URL like
# http://www.myhost.com/nagios, this value should be '/nagios'
# (without the quotes).
url_html_path=/nagios
# CONTEXT-SENSITIVE HELP
# This option determines whether or not a context-sensitive
# help icon will be displayed for most of the CGIs.
# Values: 0 = disables context-sensitive help
# 1 = enables context-sensitive help
show_context_help=0
# NAGIOS PROCESS CHECK COMMAND
# This is the full path and filename of the program used to check
# the status of the Nagios process. It is used only by the CGIs
# and is completely optional. However, if you don't use it, you'll
# see warning messages in the CGIs about the Nagios process
# not running and you won't be able to execute any commands from
# the web interface. The program should follow the same rules
# as plugins; the return codes are the same as for the plugins,
# it should have timeout protection, it should output something
# to STDIO, etc.
#
# Note: If you are using the check_nagios plugin here, the first
# argument should be the physical path to the status log, the
# second argument is the number of minutes that the status log
# contents should be "fresher" than, and the third argument is the
# string that should be matched from the output of the 'ps'
# command in order to locate the running Nagios process. That
# process string is going to vary depending on how you start
# Nagios. Run the 'ps' command manually to see what the command
# line entry for the Nagios process looks like.
nagios_check_command=/usr/lib/nagios/plugins/check_nagios /var/log/nagios/status.log 5 'nagios'
# AUTHENTICATION USAGE
# This option controls whether or not the CGIs will use any
# authentication when displaying host and service information, as
# well as committing commands to Nagios for processing.
#
# Read the HTML documentation to learn how the authorization works!
#
# NOTE: It is a really *bad* idea to disable authorization, unless
# you plan on removing the command CGI (cmd.cgi)! Failure to do
# so will leave you wide open to kiddies messing with Nagios and
# possibly hitting you with a denial of service attack by filling up
# your drive by continuously writing to your command file!
#
# Setting this value to 0 will cause the CGIs to *not* use
# authentication (bad idea), while any other value will make them
# use the authentication functions (the default).
use_authentication=1
# DEFAULT USER
# Setting this variable will define a default user name that can
# access pages without authentication. This allows people within a
# secure domain (i.e., behind a firewall) to see the current status
# without authenticating. You may want to use this to avoid basic
# authentication if you are not using a sercure server since basic
# authentication transmits passwords in the clear.
#
# Important: Do not define a default username unless you are
# running a secure web server and are sure that everyone who has
# access to the CGIs has been authenticated in some manner! If you
# define this variable, anyone who has not authenticated to the web
# server will inherit all rights you assign to this user!
#default_user_name=guest
# SYSTEM/PROCESS INFORMATION ACCESS
# This option is a comma-delimited list of all usernames that
# have access to viewing the Nagios process information as
# provided by the Extended Information CGI (extinfo.cgi). By
# default, *no one* has access to this unless you choose to
# not use authorization. You may use an asterisk (*) to
# authorize any user who has authenticated to the web server.
#authorized_for_system_information=nagiosadmin,theboss,jdoe
authorized_for_system_information=nagiosadmin,nagios
# CONFIGURATION INFORMATION ACCESS
# This option is a comma-delimited list of all usernames that
# can view ALL configuration information (hosts, commands, etc).
# By default, users can only view configuration information
# for the hosts and services they are contacts for. You may use
# an asterisk (*) to authorize any user who has authenticated
# to the web server.
#authorized_for_configuration_information=nagiosadmin,jdoe
# SYSTEM/PROCESS COMMAND ACCESS
# This option is a comma-delimited list of all usernames that
# can issue shutdown and restart commands to Nagios via the
# command CGI (cmd.cgi). Users in this list can also change
# the program mode to active or standby. By default, *no one*
# has access to this unless you choose to not use authorization.
# You may use an asterisk (*) to authorize any user who has
# authenticated to the web server.
#authorized_for_system_commands=nagiosadmin
# GLOBAL HOST/SERVICE VIEW ACCESS
# These two options are comma-delimited lists of all usernames that
# can view information for all hosts and services that are being
# monitored. By default, users can only view information
# for hosts or services that they are contacts for (unless you
# you choose to not use authorization). You may use an asterisk (*)
# to authorize any user who has authenticated to the web server.
#authorized_for_all_services=nagiosadmin,guest
#authorized_for_all_hosts=nagiosadmin,guest
# GLOBAL HOST/SERVICE COMMAND ACCESS
# These two options are comma-delimited lists of all usernames that
# can issue host or service related commands via the command
# CGI (cmd.cgi) for all hosts and services that are being monitored.
# By default, users can only issue commands for hosts or services
# that they are contacts for (unless you you choose to not use
# authorization). You may use an asterisk (*) to authorize any
# user who has authenticated to the web server.
#authorized_for_all_service_commands=nagiosadmin
#authorized_for_all_host_commands=nagiosadmin
# EXTENDED HOST INFORMATION
# This is all entirely optional. If you don't enter any extended
# information, nothing bad will happen - I promise... Its basically
# just used to have pretty icons and such associated with your hosts.
# This is especially nice when you're using the statusmap and
# statuswrl CGIs. You can also specify an URL that links to a document
# containing more information about the host (location details, contact
# information, etc).
#
# hostextinfo[<host_name>]=<notes_url>;<icon_image>;<vrml_image>;<gd2_image>;\
# <image_alt>;<x_2d>,<y_2d>;<x_3d>,<y_3d>,<z_3d>;
#
# <notes_url> = Optional URL that points to a document of
# some type containing information on the host.
# The information (and the document type) can
# be anything you want. Examples include details
# on the physical location of the server, info
# on how to contact the admins in case of an
# emergency, etc. Relative URLs start in the
# same path that is used to access the CGIs.
# The link that is created for the host's notes
# notes is found in the extinfo CGI.
# Note: You may use the $HOSTNAME$ and
# $HOSTADDRESS$ macros in this URL.
# <icon_image> = A GIF, PNG, or JPEG image to associate with
# the host. This is used in the status and
# extinfo CGIs.
# <vrml_image> = An image to use in the statuswrl CGI in the
# VRML generation. Transparent images don't
# work so great..
# <gd2_image> = An image used by the statusmap CGI to
# represent the host. This can be a GIF, PNG,
# JPEG, or GD2 image. GD2 format is recommended,
# as it produces the load CPU load.
# utility supplied with Boutell's gd library.
# <image_alt> = ALT tag used with images in various CGIs
# <x_2d>,<y_2d> = X and Y coordinates used when drawing the
# host in the statusmap CGI. (0,0) is located
# in the upper left corner of the screen and is
# considered to be the origin. The coordinates
# you supply here are used as the coords of the
# upper left hand corner of host icon. Both
# numbers should be positive integers.
# <x_3d>,<y_3d>,<z_3d> = X, Y, and Z coordinates used when drawing
# the host in the statuswrl (VRML) CGI. All
# numbers can be positive or negative (anywhere
# in 3-D space). The coordinates are used to
# determine the center of the host "cube" that
# is drawn. Host "cubes" are drawn with a
# height, width, and depth of 0.5 (meters).
#
# Note: All images must be placed in the /logos subdirectory under
# the HTML images path (i.e. /usr/local/nagios/share/images/logos/).
# This path is automatically determined by appending "/images/logos"
# to the path specified by the 'physical_html_path' directive.
#hostextinfo[es-eds]=/serverinfo/es-eds.html;novell40.gif;novell40.jpg;novell40.gd2;IntranetWare 4.11;100,50;3.5,0.0,-1.5;
#hostextinfo[rosie]=/serverinfo/rosie.html;win40.gif;win40.jpg;win40.gd2;NT Server 4.0;;;
hostextinfo[029file]=http://221.143.49.7/rrd/hotsanic/traffic/221_143_49_29_eth0-hour.gif;redhat.gif;novell40.jpg;novell40.gd2;IntranetWare 4.11;100,50;3.5,0.0,-1.5;
# EXTENDED SERVICE INFORMATION
# This is all entirely optional. If you don't enter any extended
# information, nothing bad will happen - I promise... Its basically
# just used to have pretty icons and such associated with your services.
# You can also specify an URL that links to a document containing more
# information about the service (location details, contact information,
# etc).
#
# serviceextinfo[<host_name>;<svc_description>]=<notes_url>;<icon_image>;<image_alt>
#
# <notes_url> = Optional URL that points to a document of
# some type containing information on the service.
# The information (and the document type) can
# be anything you want. Examples include details
# on the physical location of the server, info
# on how to contact the admins in case of an
# emergency, etc. Relative URLs start in the
# same path that is used to access the CGIs.
# The link that is created for the service's
# notes URL is found in the extinfo CGI.
# Note: You may use the $HOSTNAME$, $HOSTADDRESS$,
# and $SERVICEDESC$ macros in this URL.
# <icon_image> = A GIF, PNG, or JPEG image to associate with
# the service. This is used in the status and
# extinfo CGIs.
# <image_alt> = ALT tag used with image
#
# Note: All images must be placed in the /logos subdirectory under
# the HTML images path (i.e. /usr/local/nagios/share/images/logos/).
# This path is automatically determined by appending "/images/logos"
# to the path specified by the 'physical_html_path' directive.
#serviceextinfo[es-eds;PING]=http://www.somewhere.com?tracerouteto=$HOSTADDRESS$;;PING rate
#serviceextinfo[rosie;Security Alerts]=;security.gif;Security alerts
serviceextinfo[029file;Security Alerts]=;redhat.jpg;Security alerts
# STATUSMAP BACKGROUND IMAGE
# This option allows you to specify an image to be used as a
# background in the statusmap CGI. It is assumed that the image
# resides in the HTML images path (i.e. /usr/local/nagios/share/images).
# This path is automatically determined by appending "/images"
# to the path specified by the 'physical_html_path' directive.
# Note: The image file may be in GIF, PNG, JPEG, or GD2 format.
# However, I recommend that you convert your image to GD2 format
# (uncompressed), as this will cause less CPU load when the CGI
# generates the image.
#statusmap_background_image=smbackground.gd2
# DEFAULT STATUSMAP LAYOUT METHOD
# This option allows you to specify the default layout method
# the statusmap CGI should use for drawing hosts. If you do
# not use this option, the default is to use user-defined
# coordinates. Valid options are as follows:
# 0 = User-defined coordinates
# 1 = Depth layers
# 2 = Collapsed tree
# 3 = Balanced tree
# 4 = Circular
# 5 = Circular (Marked Up)
default_statusmap_layout=5
# DEFAULT STATUSWRL LAYOUT METHOD
# This option allows you to specify the default layout method
# the statuswrl (VRML) CGI should use for drawing hosts. If you
# do not use this option, the default is to use user-defined
# coordinates. Valid options are as follows:
# 0 = User-defined coordinates
# 2 = Collapsed tree
# 3 = Balanced tree
# 4 = Circular
default_statuswrl_layout=4
# STATUSWRL INCLUDE
# This option allows you to include your own objects in the
# generated VRML world. It is assumed that the file
# resides in the HTML path (i.e. /usr/local/nagios/share).
#statuswrl_include=myworld.wrl
# PING SYNTAX
# This option determines what syntax should be used when
# attempting to ping a host from the WAP interface (using
# the statuswml CGI. You must include the full path to
# the ping binary, along with all required options. The
# $HOSTADDRESS$ macro is substituted with the address of
# the host before the command is executed.
ping_syntax=/bin/ping -n -U -c 5 $HOSTADDRESS$
# REFRESH RATE
# This option allows you to specify the refresh rate in seconds
# of various CGIs (status, statusmap, extinfo, and outages).
refresh_rate=90
# SOUND OPTIONS
# These options allow you to specify an optional audio file
# that should be played in your browser window when there are
# problems on the network. The audio files are used only in
# the status CGI. Only the sound for the most critical problem
# will be played. Order of importance (higher to lower) is as
# follows: unreachable hosts, down hosts, critical services,
# warning services, and unknown services. If there are no
# visible problems, the sound file optionally specified by
# 'normal_sound' variable will be played.
#
#
# <varname>=<sound_file>
#
# Note: All audio files must be placed in the /media subdirectory
# under the HTML path (i.e. /usr/local/nagios/share/media/).
#host_unreachable_sound=hostdown.wav
#host_down_sound=hostdown.wav
#service_critical_sound=critical.wav
#service_warning_sound=warning.wav
service_unknown_sound=critical.wav
#normal_sound=noproblem.wav
# DG EXTENDED DATA
# Note: These config directives are only used if you compiled
# in database support for extended data!
# The user you specify here only needs SELECT privileges on the
# 'hostextinfo' table in the database.
#xeddb_host=somehost
#xeddb_port=someport
#xeddb_database=somedatabase
#xeddb_username=someuser
#xeddb_password=somepassword
# DB STATUS DATA (Read-Only For CGIs)
# Note: These config directives are only used if you compiled
# in database support for status data!
# The user you specify here only needs SELECT privileges on the
# 'programstatus', 'hoststatus', and 'servicestatus' tables
# in the database, as these values are only used by the CGIs.
# The core program will read the directives you specify in
# in a resource file.
#xsddb_host=somehost
#xsddb_port=someport
#xsddb_database=somedatabase
#xsddb_username=someuser
#xsddb_password=somepassword
# DB COMMENT DATA (Read-Only For CGIs)
# Note: These config directives are only used if you compiled
# in database support for comment data!
# The user you specify here only needs SELECT privileges on the
# 'hostcomments', and 'servicecomments' tables in the database,
# as these values are only used by the CGIs. The core program
# will read the directives you specify in a resource file.
#xcddb_host=somehost
#xcddb_port=someport
#xcddb_database=somedatabase
#xcddb_username=someuser
#xcddb_password=somepassword
# DB DOWNTIME DATA (Read-Only For CGIs)
# Note: These config directives are only used if you compiled
# in database support for downtime data!
# The user you specify here only needs SELECT privileges on the
# 'hostdowntime', and 'servicedowntime' tables in the database,
# as these values are only used by the CGIs. The core program
# will read the directives you specify in a resource file.
#xdddb_host=somehost
#xdddb_port=someport
#xdddb_database=somedatabase
#xdddb_username=someuser
#xdddb_password=somepassword
xedtemplate_config_file=/etc/nagios/hostextinfo.cfg
xedtemplate_config_file=/etc/nagios/serviceextinfo.cfg
monitor01:/etc/nagios# more checkcommands.cfg
# This file was autogenerated on Sun Jun 6 13:21:13 KST 2004 and
# should not be manually altered. Use update-nagios to
# build this file. If you need to add a command specification, edit
# /etc/nagios/checkcommands.cfg
# If you need to change the configuration of a command, it's better
# to look in /usr/share/{nagios,netsaint}/pluginconfig/*.cfg and copy
# the command to /etc/nagios/checkcommands.cfg and give it a new name.
# Included from /usr/share/nagios/pluginconfig/check_nrpe.cfg
# Included from /usr/share/nagios/pluginconfig/check_nrpe.cfg
define command {
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$
}
define command {
command_name check_nrpe_disk1
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_disk1
}
define command {
command_name check_nrpe_disk2
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_disk2
}
define command {
command_name check_nrpe_cpu
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_cpu
}
define command {
command_name check_nrpe_diskio
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_diskio
}
define command {
command_name check_nrpe_network
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_network
}
# 221.143.49.51 ¼¹ö¿Í °°Àº auth mech¸¦ »ç¿ëÇÏ´Â ¼ºñ½º ¸ð´ÏÅ͸µ
define command {
command_name check_nrpe_auth01
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_auth
}
define command {
command_name check_proc_apache
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_proc_apache
}
define command {
command_name check_proxy
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c check_proxy
}
# Included from /usr/share/nagios/pluginconfig/disk.cfg
# Included from /usr/share/nagios/pluginconfig/disk.cfg
# 'check_disk' command definition
define command{
command_name check_disk
command_line /usr/lib/nagios/plugins/check_disk -w 85% -c 95% -p $ARG1$
}
# 'ssh_disk' command definition
define command{
command_name ssh_disk
command_name ssh_disk
command_line /usr/lib/nagios/plugins/check_by_ssh -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_disk -w 85% -c 95% -
p $ARG1$'
}
# Included from /usr/share/nagios/pluginconfig/dns.cfg
# Included from /usr/share/nagios/pluginconfig/dns.cfg
# 'check_dns' command definition
define command{
command_name check_dns
command_line /usr/lib/nagios/plugins/check_dns -H www.google.com -s $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/flexlm.cfg
# Included from /usr/share/nagios/pluginconfig/flexlm.cfg
# 'check_flexlm' command definition
define command{
command_name check_flexlm
command_line /usr/lib/nagios/plugins/check_flexlm -F $ARG1$
}
# Included from /usr/share/nagios/pluginconfig/ftp.cfg
# Included from /usr/share/nagios/pluginconfig/ftp.cfg
# 'check_ftp' command definition
define command{
command_name check_ftp
command_line /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/games.cfg
# Included from /usr/share/nagios/pluginconfig/games.cfg
# 'check_quake' command definition
define command{
command_name check_quake
command_line /usr/lib/nagios/plugins/check_game qs $HOSTADDRESS$
}
# 'check_unreal' command definition
define command{
command_name check_unreal
command_line /usr/lib/nagios/plugins/check_game uns $HOSTADDRESS$ -p $ARG1$ -pf 8
}
# Included from /usr/share/nagios/pluginconfig/hppjd.cfg
# Included from /usr/share/nagios/pluginconfig/hppjd.cfg
# 'check_hpjd' command definition
define command{
command_name check_hpjd
command_line /usr/lib/nagios/plugins/check_hpjd -H $HOSTADDRESS$ -C public
}
# Included from /usr/share/nagios/pluginconfig/http.cfg
# Included from /usr/share/nagios/pluginconfig/http.cfg
# 'check_http' command definition
define command{
command_name check_http
command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$
}
define command{
command_name check_http_ssl
command_line /usr/lib/nagios/plugins/check_http --ssl $HOSTADDRESS$
}
# 'check_http' command definition : ¿¥ºñ¾È¿¡¼ url·Î ¸¸µé¾î ÁÖ±â·Î ÇÔ.
define command{
command_name check_soap
command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -I $HOSTADDRESS$
}
# image
define command{
command_name check_http_image
command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -u /index.htm
}
# 'check_http2' command definition
define command{
command_name check_http2
command_line /usr/lib/nagios/plugins/check_http -H $ARG1$ -I $HOSTADDRESS$ -w $ARG2$ -c $ARG3$
}
# 'check_squid' command definition
define command{
command_name check_squid
command_line /usr/lib/nagios/plugins/check_http -H $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -e 'HTTP/1.0 200 OK'
}
# Included from /usr/share/nagios/pluginconfig/ifstatus.cfg
# Included from /usr/share/nagios/pluginconfig/ifstatus.cfg
# 'check_ifstatus' command definition
define command{
command_name check_ifstatus
command_line /usr/lib/nagios/plugins/check_ifstatus -H $HOSTADDRESS$ -C public
}
# 'check_ifoperstatus_ifindex' command definition
define command{
command_name check_ifoperstatus_ifindex
command_line /usr/lib/nagios/plugins/check_ifoperstatus -H $HOSTADDRESS$ -C public -k $ARG1$
}
# 'check_ifoperstatus_ifdescr' command definition
define command{
command_name check_ifoperstatus_ifdescr
command_line /usr/lib/nagios/plugins/check_ifoperstatus -H $HOSTADDRESS$ -C public -d $ARG1$
}
# Included from /usr/share/nagios/pluginconfig/load.cfg
# Included from /usr/share/nagios/pluginconfig/load.cfg
# 'check_load' command definition
define command{
command_name check_load
command_line /usr/lib/nagios/plugins/check_load $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}
#check_snmp -H 221.143.49.6 -C qkek11 -o laLoad.1,laLoad.2,laLoad.3
define command{
command_name check_loadaverage
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o laLoad.1,laLoad.2,laLoad.3
}
# Included from /usr/share/nagios/pluginconfig/mail.cfg
# Included from /usr/share/nagios/pluginconfig/mail.cfg
# 'check_pop' command definition
define command{
command_name check_pop
command_line /usr/lib/nagios/plugins/check_pop -H $HOSTADDRESS$ -t 30
}
# 'check_smtp' command definition
define command{
command_name check_smtp
command_line /usr/lib/nagios/plugins/check_smtp -H $HOSTADDRESS$ -t 30 -c 30
}
# 'check-imap' command definition
define command{
command_name check-imap
command_line /usr/lib/nagios/plugins/check_imap -H $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/mrtg.cfg
# Included from /usr/share/nagios/pluginconfig/mrtg.cfg
# 'check_mrtg' command definition
define command{
command_name check_mrtg
command_line /usr/lib/nagios/plugins/check_mrtg $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}
# 'traffic_average' command definition
define command{
command_name traffic_average
command_line /usr/lib/nagios/plugins/check_mrtgtraf $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$
}
# Included from /usr/share/nagios/pluginconfig/netware.cfg
# Included from /usr/share/nagios/pluginconfig/netware.cfg
# 'check_netware_logins' command definition
define command{
command_name check_netware_logins
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v "LOGINS" -w $ARG1$ -c $ARG2$
}
# 'check_nwstat_conns' command definition
define command{
command_name check_nwstat_conns
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v CONNS -w $ARG1$ -c $ARG2$
}
# 'check_netware_1load' command definition
define command{
command_name check_netware_1load
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v "LOAD1" -w 70 -c 90
}
# 'check_netware_5load' command definition
define command{
command_name check_netware_5load
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v "LOAD5" -w 70 -c 90
}
# 'check_netware_15load' command definition
define command{
command_name check_netware_15load
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v "LOAD15" -w 70 -c 90
}
# 'check_nwstat_vol_p' command definition
define command{
command_name check_nwstat_vol_p
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v VPF$ARG1$ -w $ARG2$ -c $ARG3$
}
# 'check_nwstat_vol_k' command definition
define command{
command_name check_nwstat_vol_k
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v VKF$ARG1$ -w $ARG2$ -c $ARG3$
}
# 'check_nwstat_ltch' command definition
define command{
command_name check_nwstat_ltch
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v LTCH -w $ARG1$ -c $ARG2$
}
# 'check_nwstat_puprb' command definition
define command{
command_name check_nwstat_puprb
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v PUPRB -w $ARG1$ -c $ARG2$
}
# 'check_nwstat_dsdb' command definition
define command{
command_name check_nwstat_dsdb
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v DSDB
}
# 'check_netware_abend' command definition
define command{
command_name check_netware_abend
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v "ABENDS" -w 10 -c 30
}
# 'check_nwstat_csprocs' command definition
define command{
command_name check_nwstat_csprocs
command_line /usr/lib/nagios/plugins/check_nwstat -H $HOSTADDRESS$ -v CSPROCS -w $ARG1$ -c $ARG2$
}
# Included from /usr/share/nagios/pluginconfig/news.cfg
# Included from /usr/share/nagios/pluginconfig/news.cfg
# 'check_nntp' command definition
define command{
command_name check_nntp
command_line /usr/lib/nagios/plugins/check_nntp -H $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/nmap.cfg
# Included from /usr/share/nagios/pluginconfig/nmap.cfg
# 'check_nmap' command definition
define command{
command_name check_nmap
command_line /usr/lib/nagios/plugins/check_nmap -H $HOSTADDRESS$ -t 30 -p $ARG1$
}
# 'check_nmap_optional' command definition
define command{
command_name check_nmap_optional
command_line /usr/lib/nagios/plugins/check_nmap -H $HOSTADDRESS$ -t 60 -p $ARG1$ -o $ARG2$
}
# 'check_nmap_range' command definition
define command{
command_name check_nmap_range
command_line /usr/lib/nagios/plugins/check_nmap -H $HOSTADDRESS$ -t 60 -p $ARG1$ -r $ARG2$
}
# 'check_nmap_opt_range' command definition
define command{
command_name check_nmap_opt_range
command_line /usr/lib/nagios/plugins/check_nmap -H $HOSTADDRESS$ -t 60 -p $ARG1$ -o $ARG2$ -r$ARG3$
}
# Included from /usr/share/nagios/pluginconfig/ntp.cfg
# Included from /usr/share/nagios/pluginconfig/ntp.cfg
# 'check_ntp' command definition
define command{
command_name check_ntp
command_line /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$
}
# 'check_ntp_ntpq' command definition
define command{
command_name check_ntp_ntpq
command_line /usr/lib/nagios/plugins/check_ntp -H $HOSTADDRESS$ -j 10 -k 15
}
# Included from /usr/share/nagios/pluginconfig/pgsql.cfg
# Included from /usr/share/nagios/pluginconfig/pgsql.cfg
# 'check_pgsql' command definition
define command{
command_name check_pgsql
command_line /usr/lib/nagios/plugins/check_pgsql -H $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/ping.cfg
# Included from /usr/share/nagios/pluginconfig/ping.cfg
# 'check_ping' command definition
define command{
command_name check_ping
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 10:20% -c 60:100%
}
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-printer-alive' command definition
define command{
command_name check-printer-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-switch-alive' command definition
define command{
command_name check-switch-alive
command_line /usr/lib/nagios/plugins/check_ping $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-router-alive' command definition
define command{
command_name check-router-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-fast-alive' command definition
define command{
command_name check-fast-alive
command_line /usr/lib/nagios/plugins/check_fping -H $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/procs.cfg
# Included from /usr/share/nagios/pluginconfig/procs.cfg
# 'check_procs' command definition
define command{
command_name check_procs
command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$
}
# 'check_procs_zombie' command definition
define command{
command_name check_procs_zombie
command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s Z
}
# 'check_procs_httpd' command definition
define command{
command_name check_procs_httpd
command_line /usr/lib/nagios/plugins/check_procs -w 5:$ARG1$ -c 1:$ARG2$ -C httpd
}
# Included from /usr/share/nagios/pluginconfig/radius.cfg
# Included from /usr/share/nagios/pluginconfig/radius.cfg
# 'check_radius' command definition
define command{
command_name check_radius
command_line /usr/lib/nagios/plugins/check_radius $ARG1$ $ARG2$ $HOSTADDRESS$ 1812 $ARG3$
# 'check-host-alive' command definition
define command{
command_name check-host-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-printer-alive' command definition
define command{
command_name check-printer-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-switch-alive' command definition
define command{
command_name check-switch-alive
command_line /usr/lib/nagios/plugins/check_ping $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-router-alive' command definition
define command{
command_name check-router-alive
command_line /usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 5000,100% -c 5000,100% -p 1
}
# 'check-fast-alive' command definition
define command{
command_name check-fast-alive
command_line /usr/lib/nagios/plugins/check_fping -H $HOSTADDRESS$
}
# Included from /usr/share/nagios/pluginconfig/procs.cfg
# Included from /usr/share/nagios/pluginconfig/procs.cfg
# 'check_procs' command definition
define command{
command_name check_procs
command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$
}
# 'check_procs_zombie' command definition
define command{
command_name check_procs_zombie
command_line /usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s Z
}
# 'check_procs_httpd' command definition
define command{
command_name check_procs_httpd
command_line /usr/lib/nagios/plugins/check_procs -w 5:$ARG1$ -c 1:$ARG2$ -C httpd
}
# Included from /usr/share/nagios/pluginconfig/radius.cfg
# Included from /usr/share/nagios/pluginconfig/radius.cfg
# 'check_radius' command definition
define command{
command_name check_radius
command_line /usr/lib/nagios/plugins/check_radius $ARG1$ $ARG2$ $HOSTADDRESS$ 1812 $ARG3$
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.2021.9.1.7.$ARG2$,.1.3.6.1.4.1
.2021.9.1.9.$ARG2$ -w $ARG3$:,:$ARG4$ -c $ARG5$:,:$ARG6$ -u 'kB free (','% used)' -l 'disk space'
}
# 'snmp_mem' command definition
define command{
command_name snmp_mem
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.2021.4.6.0,.1.3.6.1.4.1.2021.4
.5.0 -w $ARG2$: -c $ARG3$:
}
# 'snmp_swap' command definition
define command{
command_name snmp_swap
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.2021.4.4.0,.1.3.6.1.4.1.2021.4
.3.0 -w $ARG2$: -c $ARG3$:
}
# 'snmp_procs' command definition
define command{
command_name snmp_procs
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrSystem.hrSystemProcesses -w :$ARG2$
-c :$ARG3$ -l processes
}
# 'snmp_users' command definition
define command{
command_name snmp_users
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrSystem.hrSystemNumUsers -w :$ARG2$ -
c :$ARG3$ -l users
}
# 'snmp_mem2' command definition
define command{
command_name snmp_mem2
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageUsed.$ARG2$,host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.$ARG2$ -w $ARG3$ -c $ARG4$
}
# 'snmp_swap2' command definition
define command{
command_name snmp_swap2
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageUsed.$ARG2$,host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.$ARG2$ -w $ARG3$ -c $ARG4$
}
# 'snmp_mem3' command definition
define command{
command_name snmp_mem3
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageUsed.$ARG2$,host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.$ARG2$ -w $ARG3$ -c $ARG4$
}
# 'snmp_swap3' command definition
define command{
command_name snmp_swap3
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageUsed.$ARG2$,host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.$ARG2$ -w $ARG3$ -c $ARG4$
}
# 'snmp_disk2' command definition
define command{
command_name snmp_disk2
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrStorage.hrStorageTable.hrStorageEntr
y.hrStorageUsed.$ARG2$ -w $ARG3$ -c $ARG4$
}
# 'snmp_tcpopen' command definition
define command{
command_name snmp_tcpopen
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o tcp.tcpCurrEstab.0 -w $ARG2$ -c $ARG3$
}
# 'snmp_tcpstats' command definition
define command{
command_name snmp_tcpstats
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o tcp.tcpActiveOpens.0,tcp.tcpPassiveOpens.0,
tcp.tcpInSegs.0,tcp.tcpOutSegs.0,tcp.tcpRetransSegs.0 -l 'TCP stats'
}
# 'check_snmp_bgpstate' command definition
define command{
command_name check_snmp_bgpstate
command_line /usr/lib/nagios/plugins/check_bgpstate -H $HOSTADDRESS$ -C public
}
# 'check_netapp_uptime' command definition
define command{
command_name check_netapp_uptime
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.2.1.1.3.0 --delimiter=')' -l "Upti
me is"
}
# 'check_netapp_cpuload' command definition
define command{
command_name check_netapp_cpuload
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.789.1.2.1.3.0 -w 90 -c 95 -u '
%' -l "CPU LOAD "
}
# 'check_netapp_numdisks' command definition
define command{
command_name check_netapp_numdisks
command_line /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.789.1.6 |
|
|