mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
PUSHPROD 23.01.02
This commit is contained in:
@@ -15,7 +15,7 @@ Scans for devices connected to your WIFI / LAN and alerts you if new and unknown
|
|||||||
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
||||||
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
[](https://hub.docker.com/r/jokobsk/pi.alert)
|
||||||
|
|
||||||
🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📄 [Dockerfile](https://github.com/jokob-sk/Pi.Alert/blob/main/Dockerfile) | 📚 [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main//dockerfiles/README.md)
|
🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📄 [Dockerfile](https://github.com/jokob-sk/Pi.Alert/blob/main/Dockerfile) | 📚 [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main//dockerfiles/README.md) | 🆕 [Release notes](https://github.com/jokob-sk/Pi.Alert/issues/138)
|
||||||
|
|
||||||
## 🔍 Scan Methods
|
## 🔍 Scan Methods
|
||||||
The system continuously scans the network for, **New devices**, **New connections** (re-connections), **Disconnections**, **"Always Connected" devices down**, Devices **IP changes** and **Internet IP address changes**. Scanning methods are:
|
The system continuously scans the network for, **New devices**, **New connections** (re-connections), **Disconnections**, **"Always Connected" devices down**, Devices **IP changes** and **Internet IP address changes**. Scanning methods are:
|
||||||
|
|||||||
+3
-6
@@ -1786,7 +1786,7 @@ def performNmapScan(devicesToScan):
|
|||||||
file_print(e.output)
|
file_print(e.output)
|
||||||
file_print(" Error - Nmap Scan - check logs")
|
file_print(" Error - Nmap Scan - check logs")
|
||||||
except subprocess.TimeoutExpired as timeErr:
|
except subprocess.TimeoutExpired as timeErr:
|
||||||
file_print(' Nmap TIMEOUT - the process forcefully terminated as timeout reached')
|
file_print(' Nmap TIMEOUT - the process forcefully terminated as timeout reached for', device["dev_LastIP"])
|
||||||
|
|
||||||
if output == "": # check if the subprocess failed
|
if output == "": # check if the subprocess failed
|
||||||
file_print('[', timeNow(), '] Scan: Nmap FAIL - check logs')
|
file_print('[', timeNow(), '] Scan: Nmap FAIL - check logs')
|
||||||
@@ -1814,13 +1814,10 @@ def performNmapScan(devicesToScan):
|
|||||||
startCollecting = True
|
startCollecting = True
|
||||||
elif 'PORT' in line and 'STATE' in line and 'SERVICE' in line:
|
elif 'PORT' in line and 'STATE' in line and 'SERVICE' in line:
|
||||||
startCollecting = False # end reached
|
startCollecting = False # end reached
|
||||||
elif startCollecting and len(line.split()) == 3:
|
elif startCollecting and len(line.split()) == 3:
|
||||||
# file_print('>>>>>', line, 'len', len(line.split()))
|
|
||||||
params.append((device["dev_MAC"], timeNow(), line.split()[0], line.split()[1], line.split()[2], ''))
|
params.append((device["dev_MAC"], timeNow(), line.split()[0], line.split()[1], line.split()[2], ''))
|
||||||
elif 'Nmap done' in line:
|
elif 'Nmap done' in line:
|
||||||
duration = line.split('scanned in ')[1]
|
duration = line.split('scanned in ')[1]
|
||||||
# else:
|
|
||||||
# file_print('>>>>>', line, 'len', len(line.split()))
|
|
||||||
index += 1
|
index += 1
|
||||||
|
|
||||||
if len(params) > 0:
|
if len(params) > 0:
|
||||||
|
|||||||
+2
-2
@@ -6,9 +6,9 @@ services:
|
|||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config
|
- ${APP_DATA_LOCATION}/pialert/config2:/home/pi/pialert/config
|
||||||
# - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db
|
# - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db
|
||||||
- ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db
|
- ${APP_DATA_LOCATION}/pialert/db2:/home/pi/pialert/db
|
||||||
# (optional) map an empty file with the name 'setting_darkmode' if you want to force the dark mode on container rebuilt
|
# (optional) map an empty file with the name 'setting_darkmode' if you want to force the dark mode on container rebuilt
|
||||||
- ${APP_DATA_LOCATION}/pialert/db/setting_darkmode:/home/pi/pialert/db/setting_darkmode
|
- ${APP_DATA_LOCATION}/pialert/db/setting_darkmode:/home/pi/pialert/db/setting_darkmode
|
||||||
# (optional) useful for debugging if you have issues setting up the container
|
# (optional) useful for debugging if you have issues setting up the container
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
# 🐳 A docker image for Pi.Alert
|
# 🐳 A docker image for Pi.Alert
|
||||||
|
|
||||||
🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📄 [Dockerfile](https://github.com/jokob-sk/Pi.Alert/blob/main/Dockerfile) | 📚 [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main//dockerfiles/README.md)
|
🐳 [Docker hub](https://registry.hub.docker.com/r/jokobsk/pi.alert) | 📄 [Dockerfile](https://github.com/jokob-sk/Pi.Alert/blob/main/Dockerfile) | 📚 [Docker instructions](https://github.com/jokob-sk/Pi.Alert/blob/main//dockerfiles/README.md) | 🆕 [Release notes](https://github.com/jokob-sk/Pi.Alert/issues/138)
|
||||||
|
|
||||||
<a href="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/devices_split.png" target="_blank">
|
<a href="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/devices_split.png" target="_blank">
|
||||||
<img src="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/devices_split.png" width="300px" />
|
<img src="https://raw.githubusercontent.com/jokob-sk/Pi.Alert/main/docs/img/devices_split.png" width="300px" />
|
||||||
@@ -24,8 +24,8 @@
|
|||||||
docker run -d --rm --network=host \
|
docker run -d --rm --network=host \
|
||||||
-v local/path/pialert/config:/home/pi/pialert/config \
|
-v local/path/pialert/config:/home/pi/pialert/config \
|
||||||
-v local/path/pialert/db:/home/pi/pialert/db \
|
-v local/path/pialert/db:/home/pi/pialert/db \
|
||||||
-e TZ=Europe/Berlin
|
-e TZ=Europe/Berlin \
|
||||||
-e PORT=20211
|
-e PORT=20211 \
|
||||||
jokobsk/pi.alert:latest
|
jokobsk/pi.alert:latest
|
||||||
```
|
```
|
||||||
- The initial scan can take up-to 15min (with 50 devices and MQTT). Subsequent ones 3 and 5 minutes so wait that long for all of the scans to run.
|
- The initial scan can take up-to 15min (with 50 devices and MQTT). Subsequent ones 3 and 5 minutes so wait that long for all of the scans to run.
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
| v2.50 | First public release |
|
| v2.50 | First public release |
|
||||||
|
|
||||||
|
|
||||||
|
# 🆕 2022+ [Newest Release notes](https://github.com/jokob-sk/Pi.Alert/issues/138)
|
||||||
|
|
||||||
## Pi.Alert v3.02
|
## Pi.Alert v3.02
|
||||||
<!--- --------------------------------------------------------------------- --->
|
<!--- --------------------------------------------------------------------- --->
|
||||||
**PENDING UPDATE DOC**
|
**PENDING UPDATE DOC**
|
||||||
|
|||||||
@@ -532,7 +532,9 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h3>Below results are from scheduled scans you can set up in Settings</h3>
|
<h3><?php echo lang("DevDetail_Tab_NmapTableHeader");?></h3>
|
||||||
|
|
||||||
|
<div><?php echo lang("DevDetail_Tab_NmapTableText");?></div>
|
||||||
|
|
||||||
<table id="tableNmap" class="table table-bordered table-hover table-striped ">
|
<table id="tableNmap" class="table table-bordered table-hover table-striped ">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -155,6 +155,8 @@ $lang['en_us'] = array(
|
|||||||
'DevDetail_Tab_Events' => 'Events',
|
'DevDetail_Tab_Events' => 'Events',
|
||||||
'DevDetail_Tab_Pholus' => 'Pholus',
|
'DevDetail_Tab_Pholus' => 'Pholus',
|
||||||
'DevDetail_Tab_PholusEmpty' => 'Nothing sniffed out with Pholus for this device.',
|
'DevDetail_Tab_PholusEmpty' => 'Nothing sniffed out with Pholus for this device.',
|
||||||
|
'DevDetail_Tab_NmapTableHeader' => 'Scheduled scan results',
|
||||||
|
'DevDetail_Tab_NmapTableText' => 'Set up a schedule in <a href="/settings.php#NMAP_ACTIVE">Settings</a>',
|
||||||
'DevDetail_Tab_NmapEmpty' => 'No ports detected with Nmap on this device.',
|
'DevDetail_Tab_NmapEmpty' => 'No ports detected with Nmap on this device.',
|
||||||
'DevDetail_MainInfo_Title' => 'Main Info',
|
'DevDetail_MainInfo_Title' => 'Main Info',
|
||||||
'DevDetail_MainInfo_mac' => 'MAC',
|
'DevDetail_MainInfo_mac' => 'MAC',
|
||||||
|
|||||||
Reference in New Issue
Block a user