Nagios配置单元

hostgroup:

define hostgroup {
hostgroup_name ssh-servers
alias SSH servers
members localhost
}

host:

define host {
host_name gateway
alias Default Gateway
address 210.14.65.193
use generic-host
}

service:

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Total Processes
check_command check_procs!250!400
}

command:

define command{
command_name check_local_procs
command_line $USER1$/check_procs -w $ARG$
}

contact:

define contact{
contact_name caoyuwei
alias devel
service_notification_period 24×7
host_notification_period 24×7
service_notification_options w,u,c,r,f
host_notification_options d,r,u,f
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email 159XXXXX810@139.com
}

contactgroup:

define contactgroup{
contactgroup_name zhouli
alias Developers
members zhouli
}

On this day..

Leave a comment