[root@fedora ~]# vi /usr/local/nagios/etc/nagios.cfgソス@ソスソスソス@nagios.cfgソスメ集
process_performance_data=1ソス@ソスソスソス@ソスpソスtソスHソス[ソス}ソスソスソスXソスfソス[ソス^ソス謫セソスソスLソスソスソスソス
host_perfdata_command=process-host-perfdataソス@ソスソスソス@ソスzソスXソスgソスpソスtソスHソス[ソス}ソスソスソスXソスfソス[ソス^ソス謫セソスRソス}ソスソスソスhソスソスLソスソスソスソス
service_perfdata_command=process-service-perfdataソス@ソスソスソス@ソスTソス[ソスrソスXソスpソスtソスHソス[ソス}ソスソスソスXソスfソス[ソス^ソス謫セソスRソス}ソスソスソスhソスソスLソスソスソスソス
[root@fedora ~]# vi /usr/local/nagios/etc/objects/commands.cfgソス@ソスソスソス@commands.cfgソスメ集
ソス|ソス|ソス除(ソスソスソスソスソスソスソスソス)ソス|ソス|
# 'process-host-perfdata' command definition
define command{
command_name process-host-perfdata
command_line /usr/bin/printf "%b" "$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >> /usr/local/nagios/var/host-perfdata.out
}
# 'process-service-perfdata' command definition
define command{
command_name process-service-perfdata
command_line /usr/bin/printf "%b" "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n" >> /usr/local/nagios/var/service-perfdata.out
}
ソス|ソス|ソス除(ソスソスソスソスソスワゑソス)ソス|ソス|
ソスネ会ソスソスソスソスナ終ソスsソスヨ追会ソス
define command {
command_name process-service-perfdata
command_line /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl
}
define command {
command_name process-host-perfdata
command_line /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}
[root@fedora ~]# vi /usr/local/nagios/etc/objects/templates.cfgソス@ソスソスソス@templates.cfgソスメ集
###############################################################################
###############################################################################
#
# HOST TEMPLATES
#
###############################################################################
###############################################################################
# Generic host definition template - This is NOT a real host, just a template!
define host{
name generic-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
action_url /nagios/pnp/index.php?host=$HOSTNAME$' onmouseover="get_g('$HOSTNAME$','_HOST_')" onmouseout="clear_g()"ソス@ソスソスソス@ソスヌ会ソス(NagiosソスソスハゑソスソスソスPNPソスソスハへのソスソスソスソスNソス\ソスソス(ソスzソスXソスg))
}
###############################################################################
## SERVICE TEMPLATES
#
###############################################################################
###############################################################################
# Generic service definition template - This is NOT a real service, just a template!
define service{
name generic-service ; The 'name' of this service template
active_checks_enabled 1 ; Active service checks are enabled
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
obsess_over_service 1 ; We should obsess over this service (if necessary)
check_freshness 0 ; Default is to NOT check service 'freshness'
notifications_enabled 1 ; Service notifications are enabled
event_handler_enabled 1 ; Service event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
is_volatile 0 ; The service is not volatile
check_period 24x7 ; The service can be checked at any time of the day
max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state
normal_check_interval 10 ; Check the service every 10 minutes under normal conditions
retry_check_interval 2 ; Re-check the service every two minutes until a hard state can be determined
contact_groups admins ; Notifications get sent out to everyone in the 'admins' group
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
notification_interval 60 ; Re-notify about service problems every hour
notification_period 24x7 ; Notifications can be sent out at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
action_url /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$' onmouseover="get_g('$HOSTNAME$','$SERVICEDESC$')" onmouseout="clear_g()"ソス@ソスソスソス@ソスヌ会ソス(NagiosソスソスハゑソスソスソスPNPソスソスハへのソスソスソスソスNソス\ソスソス(ソスTソス[ソスrソスX))
}
[root@fedora ~]# /etc/rc.d/init.d/nagios restartソス@ソスソスソス@Nagiosソスト起ソスソス
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
|
|