--- /dev/null
+###############################################################################
+# MINIMAL.CFG
+#
+# MINIMALISTIC OBJECT CONFIG FILE (Template-Based Object File Format)
+#
+# Last Modified: 05-30-2006
+#
+#
+# NOTE: This config file is intended to be used to test a Nagios installation
+# that has been compiled with support for the template-based object
+# configuration files.
+#
+# This config file is intended to servce as an *extremely* simple
+# example of how you can create your object configuration file(s).
+# If you're interested in more complex object configuration files for
+# Nagios, look in the sample-config/template-object/ subdirectory of
+# the distribution.
+#
+###############################################################################
+
+
+
+###############################################################################
+###############################################################################
+#
+# TIME PERIODS
+#
+###############################################################################
+###############################################################################
+
+# This defines a timeperiod where all times are valid for checks,
+# notifications, etc. The classic "24x7" support nightmare. :-)
+
+define timeperiod{
+ timeperiod_name 24x7
+ alias 24 Hours A Day, 7 Days A Week
+ sunday 00:00-24:00
+ monday 00:00-24:00
+ tuesday 00:00-24:00
+ wednesday 00:00-24:00
+ thursday 00:00-24:00
+ friday 00:00-24:00
+ saturday 00:00-24:00
+ }
+
+
+################################################################################
+#
+# SERVICE CHECK COMMANDS
+#
+################################################################################
+
+# 'check_udp' command definition
+define command{
+ command_name check_udp
+ command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$
+ }
+
+define command{
+ command_name check_ssh
+ command_line $USER1$/check_ssh $HOSTADDRESS$
+ }
+
+define command{
+ command_name check_ssh_root
+ command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -l root -i /etc/nagios/root_ssh_key.rsa -C date
+ }
+
+define command{
+ command_name check_ssh_pl_conf
+ command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -l root -i /etc/nagios/root_ssh_key.rsa -C "server pl_conf status 2>/dev/null"
+ }
+
+define command{
+ command_name check_planetlab
+ command_line $USER1$/check_planetlab.py -t 3 $HOSTADDRESS$
+ }
+
+################################################################################
+#
+# HOST CHECK COMMAND
+#
+################################################################################
+
+# This command checks to see if a host is "alive" by pinging it
+# The check must result in a 100% packet loss or 5 second (5000ms) round trip
+# average time to produce a critical error.
+# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
+
+# 'check-host-alive' command definition
+define command{
+ command_name check-host-alive
+ command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,40% -c 5000.0,80% -p 1
+ }
+
+###############################################################################
+###############################################################################
+#
+# HOSTS
+#
+###############################################################################
+###############################################################################
+
+# 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
+ check_command check-host-alive
+ max_check_attempts 10
+ check_period 24x7
+ notification_interval 1440
+ notification_period 24x7
+ notification_options d,r
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
+ }
+
+# actual hosts to be defined by python in planetlab.cfg
+
+###############################################################################
+###############################################################################
+#
+# SERVICES
+#
+###############################################################################
+###############################################################################
+
+# 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
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
+ is_volatile 0
+ check_period 24x7
+ max_check_attempts 2
+ normal_check_interval 240 ; every 2 hours is OK
+ retry_check_interval 5
+###
+ notification_options c,r
+ notification_interval 1440
+ notification_period 24x7
+ }
+
+
+### ping tunings
+# warning is set to 2 seconds, 40% packet loss
+# critical is set to 5 seconds, 80% packet loss
+### We DONT register this service because it's basically what nagios reverts to
+# if the others services turn out to be not responding
+define service{
+ use generic-service
+ name generic-ping
+ service_description ping
+# check_command check_ping!100.0,20%!500.0,60%
+ check_command check_ping!2000.0,40%!5000.0,80%
+ register 0
+ }
+
+
+define service{
+ use generic-service
+ name generic-ssh
+ service_description ssh server
+ check_command check_ssh
+ register 0
+ }
+
+define service{
+ use generic-service
+ name generic-ssh-root
+ service_description ssh root
+ check_command check_ssh_root
+ register 0
+ }
+
+define service{
+ use generic-service
+ name generic-ssh-pl_conf
+ service_description pl_conf vserver
+ check_command check_ssh_pl_conf
+ register 0
+ }
+
+define service{
+ use generic-service
+ name generic-planetlab
+ service_description comon
+ check_command check_planetlab
+ register 0
+ }
+
+# actual services to be defined by python in planetlab.cfg
+
+# EOF