Alert message

Einstellung

Last time settings were imported from the pialert.conf file:

General

ENABLE_ARPSCAN
Arp-scan is a command-line tool that uses the ARP protocol to discover and fingerprint IP hosts on the local network. An alternative to ARP scan is to enable the PIHOLE_ACTIVEPiHole integration settings.
SCAN_SUBNETS
The arp-scan time itself depends on the number of IP addresses to check so set this up carefully with the appropriate network mask and interface. Check the subnets documentation for help on setting up VLANs, what VLANs are supported, or how to figure out the network mask and your interface.
LOG_LEVEL
This setting will enable more verbose logging. Useful for debugging events writing into the database.
TIMEZONE
Time zone to display stats correctly. Find your time zone here.
ENABLE_PLUGINS
Enables the plugins functionality. Loading plugins requires more hardware resources so you might want to disable them on low-powered system.
PLUGINS_KEEP_HIST
How many entries of Plugins History scan results should be kept (globally, not device specific!).
PIALERT_WEB_PROTECTION
When enabled a login dialog is displayed. Read below carefully if you get locked out of your instance.
PIALERT_WEB_PASSWORD
The default password is 123456. To change the password run /home/pi/pialert/back/pialert-cli in the container
INCLUDED_SECTIONS
Specifies which events trigger notifications. Remove the event type(s) you don't want to get notified on. This setting overrides device-specific settings in the UI. (CTRL + Click to select/deselect).
SCAN_CYCLE_MINUTES
The delay between scans in minutes. If using arp-scan, the scan time itself depends on the number of IP addresses to check. This is influenced by the network mask set in the SCAN_SUBNETS setting at the top. Every IP takes a couple seconds to scan.
REPORT_DASHBOARD_URL
This URL is used as the base for generating links in the emails. Enter full URL starting with http:// including the port number (no trailig slash /).
DIG_GET_IP_ARG
Change the dig utility arguments if you have issues resolving your Internet IP. Arguments are added at the end of the following command: dig +short .
UI_LANG
Select the preferred UI language.
UI_PRESENCE
Select what statuses should be shown in the Device presence over time chart in the Devices page. (CTRL + Click to select/deselect)
DAYS_TO_KEEP_EVENTS
This is a maintenance setting. This specifies the number of days worth of event entries that will be kept. All older events will be deleted periodically. Also applies on Plugin Events History.
HRS_TO_KEEP_NEWDEV
This is a maintenance setting. If enabled (0 is disabled), devices marked as New Device will be deleted if their First Session time was older than the specified hours in this setting. Use this setting if you want to auto-delete New Devices after X hours.

Email

REPORT_MAIL
If enabled an email is sent out with a list of changes you've subscribed to. Please also fill out all remaining settings related to the SMTP setup below. If facing issues, set LOG_LEVEL to debug and check the error log.
SMTP_SERVER
The SMTP server host URL. For example smtp-relay.sendinblue.com. To use Gmail as an SMTP server follow this guide
SMTP_PORT
Port number used for the SMTP connection. Set to 0 if you don't want to use a port when connecting to the SMTP server.
REPORT_TO
Email address to which the notification will be send to.
REPORT_FROM
Notification email subject line. Some SMTP servers need this to be an email.
SMTP_SKIP_LOGIN
Don't use authentication when connecting to the SMTP server.
SMTP_USER
The user name used to login into the SMTP server (sometimes a full email address).
SMTP_PASS
The SMTP server password.
SMTP_SKIP_TLS
Disable TLS when connecting to your SMTP server.
SMTP_FORCE_SSL
Force SSL when connecting to your SMTP server.

Webhooks

REPORT_WEBHOOK
Enable webhooks for notifications. Webhooks help you to connect to a lot of 3rd party tools, such as IFTTT, Zapier or n8n to name a few. Check out this simple n8n guide here to get started. If enabled, configure related settings below.
WEBHOOK_URL
Target URL starting with http:// or https://.
WEBHOOK_PAYLOAD
The Webhook payload data format for the body > attachments > text attribute in the payload json. See an example of the payload here. (e.g.: for discord use text)
WEBHOOK_REQUEST_METHOD
The HTTP request method to be used for the webhook call.
WEBHOOK_SIZE
The maximum size of the webhook payload as number of characters in the passed string. If above limit, it will be truncated and a (text was truncated) message is appended.

Apprise

REPORT_APPRISE
Enable sending notifications via Apprise.
APPRISE_HOST
Apprise host URL starting with http:// or https://. (don't forget to include /notify at the end)
APPRISE_URL
Apprise notification target URL. For example for Telegram it would be tgram://{bot_token}/{chat_id}.
APPRISE_PAYLOAD
Select the payoad type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram.

NTFY

REPORT_NTFY
Enable sending notifications via NTFY.
NTFY_HOST
NTFY host URL starting with http:// or https://. You can use the hosted instance on https://ntfy.sh by simply entering https://ntfy.sh.
NTFY_TOPIC
Your secret topic.
NTFY_USER
Enter user if you need (host) an instance with enabled authetication.
NTFY_PASSWORD
Enter password if you need (host) an instance with enabled authetication.

Pushsafer

REPORT_PUSHSAFER
Enable sending notifications via Pushsafer.
PUSHSAFER_TOKEN
Your secret Pushsafer API key (token).

MQTT

REPORT_MQTT
Enable sending notifications via MQTT to your Home Assistance instance.
MQTT_BROKER
MQTT host URL (don't include http:// or https://).
MQTT_PORT
Port number where the broker is listening. Usually 1883.
MQTT_USER
User name used to login into your MQTT broker instance.
MQTT_PASSWORD
Password used to login into your MQTT broker instance.
MQTT_QOS
Quality of service setting for MQTT message sending. 0 - Low quality to 2 - High quality. The higher the quality the longer the delay.
MQTT_DELAY_SEC
A little hack - delay adding to the queue in case the process is restarted and previous publish processes aborted (it takes ~2s to update a sensor config on the broker). Tested with 2-3 seconds of delay. This delay is only applied when devices are created (during the first notification loop). It doesn't affect subsequent scans or notifications.

DynDNS

DDNS_ACTIVE
DDNS_DOMAIN
DDNS_USER
DDNS_PASSWORD
DDNS_UPDATE_URL
Update URL starting with http:// or https://.

PiHole

PIHOLE_ACTIVE
You need to map:/etc/pihole/pihole-FTL.db in the docker-compose.yml file if you enable this setting.
DHCP_ACTIVE
You need to map :/etc/pihole/dhcp.leases in the docker-compose.yml file if you enable this setting.

Pholus

PHOLUS_ACTIVE
Pholus is a sniffing tool to discover additional information about the devices on the network, including the device name. If enabled this will execute the scan before every network scan cycle until there are no (unknown) or (name not found) devices. Please be aware it can spam the network with unnecessary traffic. Depends on the SCAN_SUBNETS setting. For a scheduled or one-off scan, check the PHOLUS_RUN setting.
PHOLUS_TIMEOUT
How long in seconds should Pholus be sniffing on each interface if above condition is fulfilled. The longer you leave it on, the more likely devices would broadcast more info. This timeout adds to the time it takes to perform an arp-scan on your network.
PHOLUS_FORCE
Force scan every network scan, even if there are no (unknown) or (name not found) devices. Be careful enabling this as the sniffing can easily flood your network.
PHOLUS_RUN
Enable a regular Pholus scan / sniff on your network. The scheduling settings can be found below. If you select once Pholus is run only once on start for the time specified in PHOLUS_RUN_TIMEOUT setting.
PHOLUS_RUN_TIMEOUT
The timeout in seconds for the scheduled Pholus scan. Same notes regarding the duration apply as on the PHOLUS_TIMEOUT setting. A scheduled scan doesn't check if there are (unknown) or (name not found) devices, the scan is executed either way.
PHOLUS_RUN_SCHD
Only enabled if you select schedule in the PHOLUS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
PHOLUS_DAYS_DATA
How many days of Pholus scan entries should be kept (globally, not device specific!) Enter 0 to disable.

Nmap

NMAP_ACTIVE
If enabled this will execute a scan on a newly found device. For a scheduled or one-off scan, check the NMAP_RUN setting.
NMAP_TIMEOUT
Maximum time in seconds to wait for an Nmap scan to finish on any device.
NMAP_RUN
Enable a regular Nmap scan on your network on all devices. The scheduling settings can be found below. If you select once Nmap is run only once on start for the time specified in NMAP_TIMEOUT setting.
NMAP_RUN_SCHD
Only enabled if you select schedule in the NMAP_RUN setting. Make sure you enter the schedule in the correct cron-like format.
NMAP_ARGS
Arguments used to run the Nmap scan. Be careful to specify the arguments correctly. For example -p -10000 scans ports from 1 to 10000.

API

API_CUSTOM_SQL
You can specify a custom SQL query which will generate a JSON file and then expose it via the table_custom_endpoint.json file endpoint.

Un-Discoverable Devices ()

UNDIS_RUN
When enabled, ONCE is the preferred option. It runs at startup and after every save of the config here.
Changes will only show in the devices after the next scan!
UNDIS_CMD
Command to run. This can not be changed
UNDIS_RUN_TIMEOUT
Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted.
UNDIS_WATCH
Undiscoverable Devices can not change their status, no watch is enabled.
UNDIS_REPORT_ON
No notifications will be sent.
UNDIS_devices_to_import
Devices to be added to the devices list.

Services (NMAP) ()

NMAPSRV_RUN
Specify when the SQL query is executed.
NMAPSRV_CMD
This SQL query is used to populate the coresponding UI tables under the Plugins section.
NMAPSRV_RUN_SCHD
Only enabled if you select schedule in the NMAPSRV_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
NMAPSRV_WATCH
Send a notification if selected values change. Use CTRL + Click to select/deselect.
  • Watched_Value1 is service type (e.g.: http, ssh)
  • Watched_Value2 is Status (open or closed)
  • Watched_Value3 unused
  • Watched_Value4 unused
NMAPSRV_REPORT_ON
Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed.

DHCP Leases ()

DHCPLSS_RUN
Enable import of devices from dhcp.leases files. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings.
DHCPLSS_CMD
Command to run
DHCPLSS_paths_to_check
Add all dhcp.leases mapped paths to watch. Enter full path within the container, e.g. /mnt/dhcp2.leases. You must map these files accordingly in your docker-compose.yml file.
DHCPLSS_RUN_SCHD
Only enabled if you select schedule in the DHCPLSS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
DHCPLSS_RUN_TIMEOUT
Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted.
DHCPLSS_WATCH
Send a notification if selected values change. Use CTRL + Click to select/deselect.
  • Watched_Value1 is Active
  • Watched_Value2 is Hostname
  • Watched_Value3 is hardware
  • Watched_Value4 is State
DHCPLSS_REPORT_ON
Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed.

Website monitor ()

WEBMON_RUN
Enable a regular scan of your services. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) for the time specified in WEBMON_RUN_TIMEOUT setting.
WEBMON_CMD
Command to run
WEBMON_RUN_SCHD
Only enabled if you select schedule in the WEBMON_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
WEBMON_API_SQL
You can specify a custom SQL query which will generate a JSON file and then expose it via the plugin_website_monitor.json file endpoint.
WEBMON_RUN_TIMEOUT
Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted.
WEBMON_WATCH
Send a notification if selected values change. Use CTRL + Click to select/deselect.
  • Watched_Value1 is response status code (e.g.: 200, 404)
  • Watched_Value2 is Latency (not recommended)
  • Watched_Value3 unused
  • Watched_Value4 unused
WEBMON_REPORT_ON
Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed.
WEBMON_urls_to_check
Services to watch. Enter full URL, e.g. https://google.com. The values from this setting will be used to replace the {urls} wildcard in the WEBMON_CMD setting.
WEBMON_SQL_internet_ip
Unused setting - for demonstration only. Getting the IP address of the Router / Internet.

SNMP discovery ()

SNMPDSC_RUN
Enable import of devices from a SNMP enabled device. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings.
SNMPDSC_CMD
Command to run. Not recommended to change.
SNMPDSC_routers
A list of snmpwalk commands to execute against IP addresses of roputers/switches with SNMP turned on.

Example with the router on the IP 192.168.1.1:
snmpwalk -v 2c -c public -OXsq 192.168.1.1 .1.3.6.1.2.1.3.1.1.2

Only IPv4 supported. Authentication is not supported. More info on the plugin here.
SNMPDSC_RUN_SCHD
Only enabled if you select schedule in the SNMPDSC_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
SNMPDSC_RUN_TIMEOUT
Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted.
SNMPDSC_WATCH
Send a notification if selected values change. Use CTRL + Click to select/deselect.
  • Watched_Value1 is Hostname (not discoverable)
  • Watched_Value2 is Router IP
  • Watched_Value3 is not used
  • Watched_Value4 is not used
SNMPDSC_REPORT_ON
Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed.

Rogue DHCP ()

DHCPSRVS_RUN
Enable a regular scan of rogue DHCP servers. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings.
DHCPSRVS_CMD
Command to run
DHCPSRVS_RUN_SCHD
Only enabled if you select schedule in the DHCPSRVS_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
DHCPSRVS_RUN_TIMEOUT
Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted.
DHCPSRVS_WATCH
Send a notification if selected values change. Use CTRL + Click to select/deselect.
  • Watched_Value1 is Domain Name Server
  • Watched_Value2 is IP Offered
  • Watched_Value3 is Interface
  • Watched_Value4 is Router
DHCPSRVS_REPORT_ON
Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed.

UniFi import ()

UNFIMP_RUN
Enable import of devices from a UNIFI controller. If you select schedule the scheduling settings from below are applied. If you select once the scan is run only once on start of the application (container) or after you update your settings.
UNFIMP_CMD
Command to run. Not recommended to change.
UNFIMP_username
The username used to login into your UNIFI controller. It is recommended to create a read-only user account.
UNFIMP_password
The password used to login into your UNIFI controller.
UNFIMP_protocol
The protocol to use to access the controller.
UNFIMP_host
The host (IP) where the UNIFI controller is runnig. Do NOT include the protocol (e.g. https://)
UNFIMP_port
The port number where the UNIFI controller is runnig. Usually it is 8443.
UNFIMP_version
The base version of the Unify controller API. Supported values as of time of writing are v4|v5|unifiOS|UDMP-unifiOS.
UNFIMP_sites
The sites you want to connect to. Usually it is only one and the name is default. Check the URL in your UniFi controller UI if unsure.
UNFIMP_RUN_SCHD
Only enabled if you select schedule in the UNFIMP_RUN setting. Make sure you enter the schedule in the correct cron-like format (e.g. validate at crontab.guru). For example entering 0 4 * * * will run the scan after 4 am in the TIMEZONE you set above. Will be run NEXT time the time passes.
UNFIMP_RUN_TIMEOUT
Maximum time in seconds to wait for the script to finish. If this time is exceeded the script is aborted.
UNFIMP_WATCH
Send a notification if selected values change. Use CTRL + Click to select/deselect.
  • Watched_Value1 is Hostname
  • Watched_Value2 is Vendor
  • Watched_Value3 is Type
  • Watched_Value4 is Network
UNFIMP_REPORT_ON
Send a notification only on these statuses. new means a new unique (unique combination of PrimaryId and SecondaryId) object was discovered. watched-changed means that selected Watched_ValueN columns changed.

New Devices ()

NEWDEV_dev_MAC
The MAC address of the device. Uneditable - Autodetected.
NEWDEV_dev_Name
The name of the device. Uneditable as internal functionality is dependent on specific new device names.
NEWDEV_dev_Owner
The owner of the device.
NEWDEV_dev_DeviceType
The type of the device.
NEWDEV_dev_Vendor
The vendor of the device. Uneditable - Autodetected.
NEWDEV_dev_Favorite
Indicates whether the device is marked as a favorite.
NEWDEV_dev_Group
The group to which the device belongs.
NEWDEV_dev_Comments
Additional comments or notes about the device.
NEWDEV_dev_FirstConnection
The date and time of the first connection with the device. Uneditable - Autodetected.
NEWDEV_dev_LastConnection
The date and time of the last connection with the device. Uneditable - Autodetected.
NEWDEV_dev_LastIP
The last known IP address of the device. Uneditable - Autodetected.
NEWDEV_dev_StaticIP
Indicates whether the device has a static IP address.
NEWDEV_dev_ScanCycle
The default value of the Scan device dropdown. Enable if newly discovered devices should be scanned.
NEWDEV_dev_LogEvents
Indicates whether events related to the device shouldbe logged.
NEWDEV_dev_AlertEvents
Indicates whether events related to the device should trigger alerts. The default value of the Alert All Events checkbox.
NEWDEV_dev_AlertDeviceDown
Indicates whether an alert should be triggered when the device goes down. The default value of the Alert Down checkbox.
NEWDEV_dev_SkipRepeated
The default value of the Skip repeated notifications for dropdown. Enter number of hours for which repeated notifications should be ignored for. If you enter 0 then you get notified on all events.
NEWDEV_dev_LastNotification
The date and time of the last notification sent for the device. Uneditable - Autodetected.
NEWDEV_dev_PresentLastScan
Indicates whether the device should be marked as present after detected in a scan.
NEWDEV_dev_NewDevice
Indicates whether the device is considered a new device. The default value of the New Device checkbox.
NEWDEV_dev_Location
The location of the device.
NEWDEV_dev_Archived
Indicates whether the device is archived. The default value of the Archived checkbox.
NEWDEV_dev_Network_Node_MAC_ADDR
The MAC address of the network node.
NEWDEV_dev_Network_Node_port
The port number of the network node. Uneditable.
NEWDEV_dev_Icon
The icon associated with the device. Check the documentation on icons for more details.