summaryrefslogtreecommitdiffstats
path: root/config/pdv/servers/14_spec_server_unix.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'config/pdv/servers/14_spec_server_unix.cfg')
-rw-r--r--config/pdv/servers/14_spec_server_unix.cfg59
1 files changed, 59 insertions, 0 deletions
diff --git a/config/pdv/servers/14_spec_server_unix.cfg b/config/pdv/servers/14_spec_server_unix.cfg
new file mode 100644
index 0000000..0f0f85e
--- /dev/null
+++ b/config/pdv/servers/14_spec_server_unix.cfg
@@ -0,0 +1,59 @@
+# This is a minimal list of services which should be supported by any UNIX server
+define hostgroup {
+ hostgroup_name unix-servers
+ alias UNIX Servers
+ register 0
+}
+
+define host {
+ name unix-server
+ use server
+ hostgroups unix-servers
+ _SSH_PORT 22
+ _SMTP_PORT 25
+ register 0
+}
+
+define hostgroup {
+ hostgroup_name remote-servers
+ alias UNIX Servers
+ register 0
+}
+
+define host {
+ name remote-server
+ use unix-server
+ hostgroups remote-servers
+ register 0
+}
+
+
+#This may be used that we can connect over ssh.
+#define host {
+# name ands-server ; The name of this host template
+# use server ; This template inherits other values from the generic-host template
+# register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
+# hostgroups +unix-servers
+#}
+
+define service {
+ use ping-service
+ hostgroup_name unix-servers
+ service_description PING
+ check_command check_host!100,1%!500,5%
+}
+
+
+define service {
+ use ping-service
+ hostgroup_name remote-servers
+ service_description PING
+ check_command check_host!400,4%!1200,10%
+}
+
+define service {
+ use ping-service
+ hostgroup_name unix-servers, remote-servers
+ service_description SSH
+ check_command check_ssh! -p $_HOSTSSH_PORT$
+}