View previous topic :: View next topic |
Author |
Message |
Perdignus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2482305655afaea7ed9aaa.jpg)
Joined: 29 Mar 2013 Posts: 42
|
Posted: Sat Sep 26, 2020 11:18 pm Post subject: Arpwatch not sending emails |
|
|
Hi,
I've discovered that arpwatch is no longer alerting me of new MAC addresses via email.
I see this in the logs:
Code: | Sep 26 17:22:32 myhost arpwatch: reaper: pid 14772, exit status 1
Sep 26 17:22:39 myhost arpwatch: new station 192.168.1.64 xx:xx:xx:xx:xx:xx
Sep 26 17:22:39 myhost arpwatch: new station 192.168.1.64 xx:xx:xx:xx:xx:xx
Sep 26 17:22:39 myhost arpwatch: execl: sendmail: No such file or directory
Sep 26 17:22:39 myhost arpwatch: reaper: pid 14776, exit status 1
Sep 26 17:22:39 myhost arpwatch: execl: sendmail: No such file or directory
Sep 26 17:22:39 myhost arpwatch: reaper: pid 14776, exit status 1 |
I do have sendmail on my system and email is otherwise working fine on this host:
Code: | # which sendmail
/usr/sbin/sendmail |
Code: | # ls -asclht /usr/sbin/sendmail
32K -rwxr-xr-x 1 root root 31K 2020-09-13 12:29 /usr/sbin/sendmail |
Running arpwatch as root or the arpwatch user has no effect on the problem. I was not receiving emails using version 2.1.15-r11 so I upgraded to 3.1. I didn't notice the line "execl: sendmail: No such file or directory" when I was on version 2.1.15-r11 but I suspect it was the same issue and I just hadn't noticed it in the logs.
Thanks for any assistance or insight. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23097
|
Posted: Sun Sep 27, 2020 4:26 am Post subject: |
|
|
Is arpwatch running in a chroot, or otherwise using a different view of the filesystem than your shell?
You said e-mail is otherwise working fine. Did you specifically check that sendmail can be started successfully? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Perdignus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2482305655afaea7ed9aaa.jpg)
Joined: 29 Mar 2013 Posts: 42
|
Posted: Sun Sep 27, 2020 4:04 pm Post subject: |
|
|
Arpwatch isn't running in a chroot environment.
I was able to send and receive a test successful email using sendmail with this command:
Code: | echo "Subject: sendmail test" | sendmail -v myusername |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Perdignus n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/2482305655afaea7ed9aaa.jpg)
Joined: 29 Mar 2013 Posts: 42
|
Posted: Wed Sep 30, 2020 12:50 am Post subject: |
|
|
I've also noticed this in the logs when I startup arpwatch:
Code: | chdir(/usr/arpwatch): No such file or directory |
I'm guessing it's trying to run in a chroot environment but there are no use flags for the package or directions to create the /usr/arpwatch. I did create it and ran arpwatch again but it still complains that it can't find sendmail with this:
Code: | arpwatch: execl: sendmail: No such file or directory |
I downloaded version 2.1a15 from ee.lbl.gov, compiled it and ran it from the source directory and it worked fine, immediately started sending emails about discovered MAC addresses. I'm guessing something is wrong the Gentoo ebuild but I'll purge and reinstall it to be sure before submitting a bug report. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|