Skip to content

Pi.Alert using increasing number of arp-scan processes simultaneously #232

@whitershadeofpale

Description

@whitershadeofpale

I have installed Pi.Alert using the default one step installer, on a Debian 11 VM to scan a B-class network. No containers.

As soon as the VM boots up, ps aux | grep arp-scan shows two processes of arp-scan one with sudo, one without:

root 867 0.0 0.2 10656 5044 ? S 12:24 0:00 sudo arp-scan --ignoredups --retry=9 --localnet
root 868 0.9 0.4 12532 8108 ? S 12:24 0:00 arp-scan --ignoredups --retry=9 --localnet

Bu after some time (probably a minute), two more processes are started, with --retry=16. This results in an increased amount of arp traffic in the network over time.

I have tried to edit cron jobs and left only one line for pialert.py scan, with a 3 hour period only. And modified pialert.py to set

cycle_interval = 90
arpscan_retries = 1

manually, without using values from the DB. But this did not stop the new processes spawning, just kept their number below 6, for some reason.

Devices page is populated with discovered IPs, looks nothing wrong, as far as I can tell.

How can I strictly keep arp scans under control? Like one single process every 3 hours or so? Why does it start two processes, one with sudo, the other without?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions