From 16e27beaa24c6c551eaa0d3e6d115017939593a1 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 25 Aug 2019 06:06:41 +0200 Subject: Support multi-reports --- remote/darksoft.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 remote/darksoft.sh (limited to 'remote/darksoft.sh') diff --git a/remote/darksoft.sh b/remote/darksoft.sh old mode 100755 new mode 100644 index 5c75d7c..f8f6949 --- a/remote/darksoft.sh +++ b/remote/darksoft.sh @@ -1,13 +1,13 @@ #! /bin/bash -. lib/status.sh +[ -z $report ] && source lib/status.sh function check_darksoft { - check "DarkSoft" "darksoft.org" "check_server_status vpn/192.168.21.1" "check_server_ traffic 20 5" + check "DarkSoft" "darksoft.org" "check_server_status vpn/192.168.21.1" "check_server_ traffic 20 50" check "Suren.me" "suren.me" "check_server_status " check "Serv4" "serv4.suren.me" "check_server_status vpn/192.168.24.1" "check_server_ traffic 5 10" check "Suren/KIT" "suren.data.kit.edu:24" "check_server_status vpn/192.168.15.1" "check_server_ traffic 50 100" } print "DarkSoft Systems\n" -standart_report "check_darksoft" # "cat | print_table | column -t -o ' ' | decorate_table" +report "check_darksoft" # "cat | print_table | column -t -o ' ' | decorate_table" -- cgit v1.2.3