From 4f1504207dbc824e2345414713a9f4305e8ce416 Mon Sep 17 00:00:00 2001 From: Rui Figueiredo Date: Sun, 4 Jan 2015 00:12:39 +0000 Subject: [PATCH] Update services.conf Added mysql services --- rpimonitor/template/services.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpimonitor/template/services.conf b/rpimonitor/template/services.conf index 4d25da7..e7e2bc2 100644 --- a/rpimonitor/template/services.conf +++ b/rpimonitor/template/services.conf @@ -6,6 +6,7 @@ # - rpimonotor port (8888) - yes - no # - http port (80) - yes - yes # - https port (443) - yes - yes +# - mysql port (3306) - yes - no ######################################################################## dynamic.1.name=ssh dynamic.1.source=netstat -nlt @@ -23,6 +24,11 @@ dynamic.4.name=https dynamic.4.source=netstat -nlt dynamic.4.regexp=tcp .*:(443).*LISTEN +dynamic.5.name=mysql +dynamic.5.source=netstat -nlt +dynamic.5.regexp=tcp .*:(3306).*LISTEN + + web.status.1.content.1.name=Servers web.status.1.content.1.icon=daemons.png -web.status.1.content.1.line.1="ssh : "+Label(data.ssh,"==22","OK","success")+Label(data.ssh,"!=22","KO","danger")+" rpimonitor : "+Label(data.rpimonitor,"==8888","OK","success")+Label(data.rpimonitor,"!=8888","KO","danger")+" nginx http : "+Label(data.http,"==80","OK","success")+Label(data.http,"!=80","KO","danger")+" nginx https : "+Label(data.https,"==443","OK","success")+Label(data.https,"!=443","KO","danger") +web.status.1.content.1.line.1="ssh : "+Label(data.ssh,"==22","OK","success")+Label(data.ssh,"!=22","KO","danger")+" rpimonitor : "+Label(data.rpimonitor,"==8888","OK","success")+Label(data.rpimonitor,"!=8888","KO","danger")+" nginx http : "+Label(data.http,"==80","OK","success")+Label(data.http,"!=80","KO","danger")+" nginx https : "+Label(data.https,"==443","OK","success")+Label(data.https,"!=443","KO","danger")+" mysql : "+Label(data.mysql,"==3306","OK","success")+Label(data.mysql,"!=3306","KO","danger")