karthikvee

nagios-server-client01.cfg

Oct 5th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.82 KB | None | 0 0
  1. # Ubuntu Host configuration file1
  2.  
  3. define host {
  4.         use                          linux-server
  5.         host_name                    client01
  6.         alias                        Ubuntu Host
  7.         address                      172.16.0.6
  8.         register                     1
  9. }
  10.  
  11. define service {
  12.       host_name                       client01
  13.       service_description             PING
  14.       check_command                   check_nrpe!check_ping
  15.       max_check_attempts              2
  16.       check_interval                  2
  17.       retry_interval                  2
  18.       check_period                    24x7
  19.       check_freshness                 1
  20.       contact_groups                  admins
  21.       notification_interval           2
  22.       notification_period             24x7
  23.       notifications_enabled           1
  24.       register                        1
  25. }
  26.  
  27. define service {
  28.       host_name                       client01
  29.       service_description             Check Users
  30.       check_command                   check_nrpe!check_users
  31.       max_check_attempts              2
  32.       check_interval                  2
  33.       retry_interval                  2
  34.       check_period                    24x7
  35.       check_freshness                 1
  36.       contact_groups                  admins
  37.       notification_interval           2
  38.       notification_period             24x7
  39.       notifications_enabled           1
  40.       register                        1
  41. }
  42.  
  43. define service {
  44.       host_name                       client01
  45.       service_description             Check SSH
  46.       check_command                   check_nrpe!check_ssh
  47.       max_check_attempts              2
  48.       check_interval                  2
  49.       retry_interval                  2
  50.       check_period                    24x7
  51.       check_freshness                 1
  52.       contact_groups                  admins
  53.       notification_interval           2
  54.       notification_period             24x7
  55.       notifications_enabled           1
  56.       register                        1
  57. }
  58.  
  59. define service {
  60.       host_name                       client01
  61.       service_description             Check Root / Disk
  62.       check_command                   check_nrpe!check_root
  63.       max_check_attempts              2
  64.       check_interval                  2
  65.       retry_interval                  2
  66.       check_period                    24x7
  67.       check_freshness                 1
  68.       contact_groups                  admins
  69.       notification_interval           2
  70.       notification_period             24x7
  71.       notifications_enabled           1
  72.       register                        1
  73. }
  74.  
  75. define service {
  76.       host_name                       client01
  77.       service_description             Check APT Update
  78.       check_command                   check_nrpe!check_apt
  79.       max_check_attempts              2
  80.       check_interval                  2
  81.       retry_interval                  2
  82.       check_period                    24x7
  83.       check_freshness                 1
  84.       contact_groups                  admins
  85.       notification_interval           2
  86.       notification_period             24x7
  87.       notifications_enabled           1
  88.       register                        1
  89. }
  90.  
  91. define service {
  92.       host_name                       client01
  93.       service_description             Check HTTP
  94.       check_command                   check_nrpe!check_http
  95.       max_check_attempts              2
  96.       check_interval                  2
  97.       retry_interval                  2
  98.       check_period                    24x7
  99.       check_freshness                 1
  100.       contact_groups                  admins
  101.       notification_interval           2
  102.       notification_period             24x7
  103.       notifications_enabled           1
  104.       register                        1
  105. }
Add Comment
Please, Sign In to add comment