Permalink
Browse files

Customize check_speedtest-cli and add sample

  • Loading branch information...
NEMS Linux
NEMS Linux committed Dec 16, 2018
1 parent 0e51326 commit 0018860e835b7c773037dfb3a13702c022561a6a
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN +0 Bytes (100%) data/1.5/mysql/NEMS-Clean/ibdata1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,6 @@
define servicegroup {
servicegroup_name web-services
alias Web Services
members NEMS,Internet Speed Test
}

@@ -1,3 +1,18 @@
define service {
service_description Internet Speed Test
max_check_attempts 5
check_interval 30
retry_interval 5
first_notification_delay 10
notification_interval 60
notification_options w,u,c,r,f,s
check_command check_internet_speed
host_name NEMS
check_period 24x7
notification_period workhours
contact_groups admins
}

define service {
service_description NEMS SBC Temperature
notes Works on any SBC with /sys/class/thermal/thermal_zone0/temp
@@ -55,7 +55,7 @@ define command {

define command {
command_name check_internet_speed
command_line $USER1$/check_speedtest-cli.sh -w $ARG1$ -c $ARG2$ -W $ARG3$ -C $ARG4$ -l e -p
command_line $USER1$/check_speedtest-cli.sh -w $ARG1$ -c $ARG2$ -W $ARG3$ -C $ARG4$ -l e -s $ARG5$
}

define command {
@@ -172,7 +172,7 @@ function float_cond()
# to speedtest on your system. On mine it is /usr/local/bin
# Ensure to leave the last slash off!
# You MUST define this or the script will not run!
STb=/usr/local/share/nems/nems-scripts/speedtest
STb=/usr/local/share/nems/nems-scripts

# Set up the variables to take the arguments
DLw=

0 comments on commit 0018860

Please sign in to comment.