Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with new install #234

Open
hspindel opened this issue Jul 8, 2023 · 0 comments
Open

Issue with new install #234

hspindel opened this issue Jul 8, 2023 · 0 comments

Comments

@hspindel
Copy link

hspindel commented Jul 8, 2023

pi.alert looked like a really cool idea, so I decided to give it a try. I've been wanting something that would notify me if a local device went down.

Some issues:

  1. python3 back/pialert.py
    reports error: not found

but the web page does show local devices including the RaspberryPi. So I guess this isn't really a problem?

  1. What does the owner field mean on the web page? Where does it get owner information? Same question for the Favorite and Group fields.

  2. The install process couldn't find two of the files. The files were usr/share/arp-scan/ieee-oui.txt and /usr/share/arp-scan/ieee-iab.txt. There ARE two files in /usr/share/arp-scan named ieee-iab.txt.bak and ieee-oui.txt.bak. I renamed them without the .bak part, and that fixed the problem. Seems like a bug in the installer.

  3. pi.alert got confused about devices connected to WiFi extenders. After research, it turned out that this was not a pi.alert problem. The WiFi extenders spoofed the MAC address reported on pings to be the same MAC address as the extender itself. Apparently a lot of extenders do this. So pi.alert sees two different IPs with the same MAC address. I don't blame pi.alert for getting confused by this - it confused me too!. Documenting here in case somebody else has a similar issue.

  4. Would be nice if there was a way to check if email notifications are configured correctly by causing a test email to be sent. I had a lot of trouble getting email notifications sent. Tracked the problem down to the module pialert.py assuming that SMTP authorization is needed and trying to starttls. So I commented out two lines in pialert.py - calls to smtp_connection_login() and smtp_connection_starttls(). Now email notifications work. The pi.alert program needs a bit of work to support email over SMTP connections that do no authorization.

  5. Very minor cosmetic only issue: In the file deviceDetails.php, the word Sessions is misspelled as Sesions on one of the web pages.

Overall, after getting through these configuration issues, pi.alert is working well and I really like the program. Had to configure my email client to ignore the messages about the devices behind WiFi extenders, but that is not pi.alert's fault. It would be nice if the pialert.conf file allowed me to specify IP addresses to ignore.

Thank you for developing this program!

ademol pushed a commit to ademol/Pi.Alert that referenced this issue Nov 28, 2024
New:
* If several Mac addresses with the same beginning are to be filtered out, it is no longer necessary to enter all the individual addresses. The addresses aa:bb:cc:12:34:56, aa:bb:c0:22:24:26 and aa:bb:ce:a2:a3:a4 can now be filtered out with the entry 'aa:bb:c'.
* The option to specify a priority for pushover and pushsafer messages has been added (Regarding to pucherot#234)

Fixed:
* arp-scan dectection. The fix is necessary because there are 2 different variants (~/path or $HOME/path) of the command

Updated:
* The "avahi-resolve" and "nbtscan"  commands have been added to the name resolution function
* Added the installation of the packages "avahi-utils" and "nbtscan" to the installation script and to the update script
* Updating the config file editor and the configuration file.
* Added more explanations to the FAQ page (Regarding to pucherot#246)

Changed:
* Sourcery optimizations mostly reversed (Regarding to pucherot#247)

Note:
* BREAKING CHANGES: A new entry called "NETWORK_DNS_SERVER" has been added to the configuration file. If the currently valid DNS server is not entered here, "localhost" is assumed as the DNS server for determining the host names. This can lead to errors, which I have tried to catch as well as possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant