1. define service{  
  2.         use                             generic-service         ; Name of service template to use  
  3.         host_name                       img2  
  4.         service_description             Tomcat  
  5.         is_volatile                     0  
  6.         check_period                    24x7  
  7.         max_check_attempts              2  
  8.         normal_check_interval           2  
  9.         retry_check_interval            1  
  10.         contact_groups                  admins  
  11.         notification_options            w,u,c,r  
  12.         notification_interval           960  
  13.         notification_period             24x7  
  14.         check_command                   check_nrpe!check_procs!1:1!'org.apache.catalina.startup.Bootstrap'!ct10000  
  15.         }  
  16.  
  17. define service{  
  18.         use                             generic-service         ; Name of service template to use  
  19.         host_name                       img2  
  20.         service_description             Mysql  
  21.         is_volatile                     0  
  22.         check_period                    24x7  
  23.         max_check_attempts              2  
  24.         normal_check_interval           2  
  25.         retry_check_interval            1  
  26.         contact_groups                  admins  
  27.         notification_options            w,u,c,r  
  28.         notification_interval           960  
  29.         notification_period             24x7  
  30.         check_command                   check_nrpe!check_procs!1:1!'/usr/local/mysql/libexec/mysqld'!mysql  
  31.         }