NAGIOS plugin to perform an arping check for hosts that block ping (use case: monitoring Alexa/Echo Dots). Responds exactly like the standard check_ping plugin
I have been trying to get your ARPING script to run on Nagios on a Raspberry Pi (to monitor an Amazon Echo Dot), but I keep getting an error about running as root. Would it be possible to ask you for some help?
Basically it's permissions but I'm not too familiar with this on Linux. If I run without sudo...
sh /usr/local/nagios/check_arp_ping.sh 192.168.1.1 200 300
arping: libnet_init(LIBNET_LINK, ): libnet_open_link():
UID/EUID 0 or capability CAP_NET_RAW required
arping: you may need to run as root
where as...
sudo sh /usr/local/nagios/check_arp_ping.sh 192.168.1.202 200 300
and I guess this needs to be running under the "nagios" user for it to work in Nagios core?
UPDATE:
I've managed to get this working with this command (not sure if this is the best option though).