Advertisement
adamabraham__

Config yang kelihatan aja (70 Line)

Nov 27th, 2020
3,708
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nagios 2.41 KB | None | 0 0
  1. # Define a host for the local machine
  2. define host{
  3.         use                     linux-server            
  4.         host_name               popmie-server
  5.         alias                   Ubuntu Server
  6.         address                 127.0.0.1
  7.         }
  8. define hostgroup{
  9.         hostgroup_name  linux-servers
  10.         alias           Linux Servers
  11.         members         popmie-server    
  12.         }
  13.  
  14. define service{
  15.         use                             local-service        
  16.         host_name                       popmie-server
  17.         service_description             PING
  18.       check_command           check_ping!100.0,20%!500.0,60%
  19.         }
  20.  
  21. define service{
  22.         use                             local-service        
  23.         host_name                       popmie-server
  24.         service_description             Root Partition
  25.       check_command             check_local_disk!20%!10%!/
  26.         }
  27.  
  28. define service{
  29.         use                             local-service        
  30.         host_name                       popmie-server
  31.         service_description             Current Users
  32.       check_command             check_local_users!20!50
  33.         }
  34.  
  35. define service{
  36.         use                             local-service        
  37.         host_name                       popmie-server
  38.         service_description             Total Processes
  39.       check_command             check_local_procs!250!400!RSZDT
  40.         }
  41.  
  42. define service{
  43.         use                             local-service        
  44.         host_name                       popmie-server
  45.         service_description             Current Load
  46.       check_command     check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
  47.         }
  48.  
  49. define service{
  50.         use                             local-service        
  51.         host_name                       popmie-server
  52.         service_description             Swap Usage
  53.       check_command             check_local_swap!20!10
  54.         }
  55.  
  56. define service{
  57.         use                             local-service        
  58.         host_name                       popmie-server
  59.         service_description             SSH
  60.       check_command                 check_ssh
  61.       notifications_enabled         1
  62.         }
  63.  
  64. define service{
  65.         use                             local-service        
  66.         host_name                       popmie-server
  67.         service_description             Web Server
  68.       check_command             check_http
  69.       notifications_enabled         1
  70.         }
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement