first
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo $(date)
|
||||
cd /opt/Monitor/fw
|
||||
|
||||
SSH=0
|
||||
BLOCKED=0
|
||||
DENIED=0
|
||||
FLOWERS=0
|
||||
GITEA=0
|
||||
PLEX=0
|
||||
CLOUD=0
|
||||
OTHER=0
|
||||
WALLED=0
|
||||
|
||||
SSH=$(./getWalled '+22')
|
||||
|
||||
DENIED=$(ufw status | grep -c DENY)
|
||||
FLOWERS=$(./getFlowerFails)
|
||||
# GITEA=$(./getGitFails)
|
||||
GITEA=0
|
||||
|
||||
CLOUD=$(./getCloudFails)
|
||||
OTHER=$(./getOthers)
|
||||
WALLED=$(./getWalled '-22')
|
||||
|
||||
|
||||
echo " N:${SSH}:${BLOCKED}:${DENIED}:${FLOWERS}:${GITEA}:${PLEX}:${CLOUD}:${OTHER}:${WALLED}"
|
||||
rrdtool update auth.rrd N:${SSH}:${BLOCKED}:${DENIED}:${FLOWERS}:${GITEA}:${PLEX}:${CLOUD}:${OTHER}:${WALLED}
|
||||
echo " done"
|
||||
/opt/Monitor/fw/createGraphs 3h 1d 2w 1y
|
||||
Reference in New Issue
Block a user