--- /dev/null
+###############################################################################
+###############################################################################
+#
+# 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
+ is_volatile 0 ; The service is not volatile
+ register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
+ }
+
+
+# Local service definition template - This is NOT a real service, just a template!
+
+define service{
+ name local-service ; The name of this service template
+ use generic-service ; Inherit default values from the generic-service definition
+ check_period 24x7 ; The service can be checked at any time of the day
+ max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state
+ normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
+ retry_check_interval 1 ; Re-check the service every minute 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!
+ }
+
+
+# Define a service to "ping" the local machine
+
+define service{
+ use local-service ; Name of service template to use
+ host_name onelab-test.inria.fr
+ service_description PING
+ check_command check_ping!100.0,20%!500.0,60%
+ }
+
+
+# Define a service to check the disk space of the root partition
+# on the local machine. Warning if < 20% free, critical if
+# < 10% free space on partition.
+
+define service{
+ use local-service ; Name of service template to use
+ host_name onelab-test.inria.fr
+ service_description Root Partition
+ check_command check_local_disk!20%!10%!/
+ }
+
+
+
+# Define a service to check the number of currently logged in
+# users on the local machine. Warning if > 20 users, critical
+# if > 50 users.
+
+define service{
+ use local-service ; Name of service template to use
+ host_name onelab-test.inria.fr
+ service_description Current Users
+ check_command check_local_users!20!50
+ }
+
+
+# Define a service to check the number of currently running procs
+# on the local machine. Warning if > 250 processes, critical if
+# > 400 users.
+
+define service{
+ use local-service ; Name of service template to use
+ host_name onelab-test.inria.fr ;localhost
+ service_description Total Processes
+ check_command check_local_procs!250!400!RSZDT
+ }
+
+
+
+# Define a service to check the load on the local machine.
+
+define service{
+ use local-service ; Name of service template to use
+ host_name onelab-test.inria.fr
+ service_description Current Load
+ check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
+ }
+
+
+
+##################################
+########define service for remote hots
+##################
+define service{
+ name remote-service ; The name of this service template
+
+ check_period 24x7 ; The service can be checked at any time of the day
+ max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state
+ normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
+ retry_check_interval 1 ; Re-check the service every minute 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!
+ }
+
+
+##########
+##nrpe remote services
+##############
+##################for private.inria host
+###################################
+
+define service{
+ use remote-service
+ host_name private.one-lab.org
+ service_description check-host-alive
+ check_command check-host-alive!private.one-lab.org
+ }
+
+define service{
+ use remote-service
+ host_name private.one-lab.org
+ service_description Check the http server
+ check_command check_http!private.one-lab.org
+ }
+
+define service{
+ use remote-service ; Name of service template to use
+ host_name private.one-lab.org
+ service_description Check Load
+ check_command check_remote_load!private.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name private.one-lab.org
+ service_description check users
+ check_command check_remote_users!private.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name private.one-lab.org
+ service_description check Disk /dev/sda3
+ check_command check_remote_disk1!private.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name private.one-lab.org
+ service_description check Disk /plc/root.img
+ check_command check_remote_disk2!private.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name private.one-lab.org
+ service_description check procs
+ check_command check_remote_procs!private.one-lab.org
+#!250!400!RSZDT
+ }
+
+################################
+############for build.org host
+################################
+
+define service{
+ use remote-service
+ host_name build.one-lab.org
+ service_description check-host-alive
+ check_command check-host-alive! build.one-lab.org
+ }
+
+define service{
+ use remote-service
+ host_name build.one-lab.org
+ service_description Check the http server
+ check_command check_http!build.one-lab.org
+ }
+
+define service{
+ use remote-service ; Name of service template to use
+ host_name build.one-lab.org
+ service_description Check Load
+ check_command check_remote_load! build.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name build.one-lab.org
+ service_description check users
+ check_command check_remote_users!build.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name build.one-lab.org
+ service_description check disk /dev/sda3
+ check_command check_remote_disk1!build.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name build.one-lab.org
+ service_description check disk /plc/devel/root.img
+ check_command check_remote_disk2!build.one-lab.org
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name build.one-lab.org
+ service_description check procs
+ check_command check_remote_procs!build.one-lab.org
+ }
+
+################################
+############for planet-lab.eu host
+################################
+define service{
+ use remote-service
+ host_name planet-lab.eu
+ service_description Check the http server
+ check_command check_http!planet-lab.eu
+ }
+
+define service{
+ use remote-service
+ host_name planet-lab.eu
+ service_description check-host-alive
+ check_command check-host-alive!planetlab.eu
+ }
+
+
+define service{
+ use remote-service ; Name of service template to use
+ host_name planet-lab.eu
+ service_description check_load
+ check_command check_remote_load!planet-lab.eu
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name planet-lab.eu
+ service_description check users
+ check_command check_remote_users!planet-lab.eu
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name planet-lab.eu
+ service_description check Disk /home
+ check_command check_remote_disk1!planet-lab.eu
+ }
+
+define service{
+ use remote-service ; Name of service template to use
+ host_name planet-lab.eu
+ service_description check disk /plc/root.img
+ check_command check_remote_disk2!planet-lab.eu
+ }
+define service{
+ use remote-service ; Name of service template to use
+ host_name planet-lab.eu
+ service_description check procs
+ check_command check_remote_procs!planet-lab.eu
+ }
+
+###################################################################
+###################################################################
+#services for planetlab.eu nodes
+###################################################################
+###################################################################
+############
+##onelab01
+########
+define service{
+ use remote-service
+ host_name onelab01.inria.fr
+ service_description check-host-alive
+ check_command check-host-alive!onelab01.inria.fr
+ }
+define service{
+ use remote-service
+ host_name onelab01.inria.fr
+ service_description check SSH Access
+ check_command check_ssh!onelab01.inria.fr
+ }
+###########
+#onelab02
+#########3
+define service{
+ use remote-service
+ host_name onelab02.inria.fr
+ service_description check-host-alive
+ check_command check-host-alive!onelab02.inria.fr
+ }
+define service{
+ use remote-service
+ host_name onelab02.inria.fr
+ service_description check SSH Access
+ check_command check_ssh!onelab02.inria.fr
+ }
+##############
+####onelab03
+#########
+
+define service{
+ use remote-service
+ host_name onelab03.inria.fr
+ service_description check-host-alive
+ check_command check-host-alive!onelab03.inria.fr
+ }
+define service{
+ use remote-service
+ host_name onelab03.inria.fr
+ service_description check SSH Access
+ check_command check_ssh!onelab03.inria.fr
+ }