Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lamp_haproxy/aws/roles/nagios/files/ansible-managed-services.cfg')
-rw-r--r--lamp_haproxy/aws/roles/nagios/files/ansible-managed-services.cfg39
1 files changed, 39 insertions, 0 deletions
diff --git a/lamp_haproxy/aws/roles/nagios/files/ansible-managed-services.cfg b/lamp_haproxy/aws/roles/nagios/files/ansible-managed-services.cfg
new file mode 100644
index 0000000..20eb56d
--- /dev/null
+++ b/lamp_haproxy/aws/roles/nagios/files/ansible-managed-services.cfg
@@ -0,0 +1,39 @@
+# {{ ansible_managed }}
+
+# service checks to be applied to all hosts
+
+define service {
+ use local-service
+ host_name localhost
+ service_description Root Partition
+ check_command check_local_disk!20%!10%!/
+}
+
+define service {
+ use local-service
+ host_name *
+ service_description Current Users
+ check_command check_local_users!20!50
+}
+
+
+define service {
+ use local-service
+ host_name *
+ service_description Total Processes
+ check_command check_local_procs!250!400!RSZDT
+}
+
+define service {
+ use local-service
+ host_name *
+ service_description Current Load
+ check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
+}
+
+define service {
+ use local-service
+ host_name *
+ service_description Swap Usage
+ check_command check_local_swap!20!10
+}