summaryrefslogtreecommitdiffstats
path: root/nagios
diff options
context:
space:
mode:
Diffstat (limited to 'nagios')
-rwxr-xr-xnagios/check_6
-rwxr-xr-xnagios/check_adei6
l---------nagios/check_adei_control1
l---------nagios/check_adei_source1
l---------nagios/check_adei_status1
-rwxr-xr-xnagios/check_by_ssh12
l---------nagios/check_mysql1
l---------nagios/check_ntp1
l---------nagios/check_ntp_win1
l---------nagios/check_ping1
l---------nagios/lib1
l---------nagios/scripts1
l---------nagios/security1
l---------nagios/setup1
14 files changed, 35 insertions, 0 deletions
diff --git a/nagios/check_ b/nagios/check_
new file mode 100755
index 0000000..839e9c1
--- /dev/null
+++ b/nagios/check_
@@ -0,0 +1,6 @@
+#! /bin/bash
+
+. $(dirname $0)/lib/nagios/nagios.sh
+
+nagios_run "$@"
+
diff --git a/nagios/check_adei b/nagios/check_adei
new file mode 100755
index 0000000..ba0a34f
--- /dev/null
+++ b/nagios/check_adei
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+. $(dirname $0)/lib/nagios/nagios.sh
+
+[ -n "$debug" ] && echo "$(date) adei/$(basename $0).sh" "$@" >> /tmp/nagios.log
+nagios_parse "adei/$(basename $0).sh" "$@"
diff --git a/nagios/check_adei_control b/nagios/check_adei_control
new file mode 120000
index 0000000..c07768e
--- /dev/null
+++ b/nagios/check_adei_control
@@ -0,0 +1 @@
+check_adei \ No newline at end of file
diff --git a/nagios/check_adei_source b/nagios/check_adei_source
new file mode 120000
index 0000000..c07768e
--- /dev/null
+++ b/nagios/check_adei_source
@@ -0,0 +1 @@
+check_adei \ No newline at end of file
diff --git a/nagios/check_adei_status b/nagios/check_adei_status
new file mode 120000
index 0000000..c07768e
--- /dev/null
+++ b/nagios/check_adei_status
@@ -0,0 +1 @@
+check_adei \ No newline at end of file
diff --git a/nagios/check_by_ssh b/nagios/check_by_ssh
new file mode 100755
index 0000000..1a488b2
--- /dev/null
+++ b/nagios/check_by_ssh
@@ -0,0 +1,12 @@
+#! /bin/bash
+
+. $(dirname $0)/lib/nagios/nagios.sh
+
+
+port=$(nagios_find_host_param "ssh_ports" 22 "$@")
+user=$(nagios_find_host_param "ssh_users" root "$@")
+
+local port=$(cat setup/ssh_ports.txt | grep -P "^$host" | awk '{ print $2 }')
+
+#echo "$@" -o " -p $port -l $user UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" >> /tmp/xxx
+nagios_run "$@" -p $port -l $user -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no"
diff --git a/nagios/check_mysql b/nagios/check_mysql
new file mode 120000
index 0000000..74fe9a3
--- /dev/null
+++ b/nagios/check_mysql
@@ -0,0 +1 @@
+check_ \ No newline at end of file
diff --git a/nagios/check_ntp b/nagios/check_ntp
new file mode 120000
index 0000000..74fe9a3
--- /dev/null
+++ b/nagios/check_ntp
@@ -0,0 +1 @@
+check_ \ No newline at end of file
diff --git a/nagios/check_ntp_win b/nagios/check_ntp_win
new file mode 120000
index 0000000..74fe9a3
--- /dev/null
+++ b/nagios/check_ntp_win
@@ -0,0 +1 @@
+check_ \ No newline at end of file
diff --git a/nagios/check_ping b/nagios/check_ping
new file mode 120000
index 0000000..74fe9a3
--- /dev/null
+++ b/nagios/check_ping
@@ -0,0 +1 @@
+check_ \ No newline at end of file
diff --git a/nagios/lib b/nagios/lib
new file mode 120000
index 0000000..5bf80bf
--- /dev/null
+++ b/nagios/lib
@@ -0,0 +1 @@
+../lib/ \ No newline at end of file
diff --git a/nagios/scripts b/nagios/scripts
new file mode 120000
index 0000000..adb0a1d
--- /dev/null
+++ b/nagios/scripts
@@ -0,0 +1 @@
+../scripts/ \ No newline at end of file
diff --git a/nagios/security b/nagios/security
new file mode 120000
index 0000000..9ab7f9c
--- /dev/null
+++ b/nagios/security
@@ -0,0 +1 @@
+../security/ \ No newline at end of file
diff --git a/nagios/setup b/nagios/setup
new file mode 120000
index 0000000..f4c6f52
--- /dev/null
+++ b/nagios/setup
@@ -0,0 +1 @@
+../setup/ \ No newline at end of file