summaryrefslogtreecommitdiffstats
path: root/config/pdv/servers/14_spec_server_unix.cfg
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:54:49 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-04 22:54:49 +0200
commitb74ea32070492c251943d69a09265463cc9866ed (patch)
tree080bd9c8eb0b53491e118bdfed29f7cd61126bfe /config/pdv/servers/14_spec_server_unix.cfg
downloadpdvnagios-master.tar.gz
pdvnagios-master.tar.bz2
pdvnagios-master.tar.xz
pdvnagios-master.zip
Cleaned configuration for PDV infrastructure (incomplete) integrated with my Conky monitoring scriptsHEADmaster
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$
+}