Revision 383630353265 () - Diff

Link to this snippet: https://friendpaste.com/6bkUfWfGVI93Z5caJo6uGS
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
define host{
use generic-host ; Name of host template to use
host_name localhost
alias localhost
address 127.0.0.1
}

# 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 generic-service ; Name of service template to use
host_name localhost
service_description Disk Space
check_command check_all_disks!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 generic-service ; Name of service template to use
host_name localhost
service_description Current Users
check_command check_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 processes.

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Total Processes
check_command check_procs!250!400
}



# Define a service to check the load on the local machine.

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Current Load
check_command check_load!5.0!4.0!3.0!10.0!6.0!4.0
}

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Lighty
check_command check_proc_running!lighttpd
}

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Lighty HTTP
check_command check_squid!80!/
}

define service{
use generic-service ; Name of service template to use
host_name localhost
service_description Apache HTTP
check_command check_http
}