Skip to content

Nagios Raspberry Pi - ARPing Permission Issue? #1

@dreaminbytes

Description

@dreaminbytes

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).

sudo chmod u+s /usr/sbin/arping

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