If you want the "Status Information" for your host/service check to include the IP address as well as the MAC address, you'd probably need to use a different plugin. Something that leverages arping might be useful. I found this that seems to work well:
https://exchange.nagios.org/directory/P ... py/details
In action:
Code: Select all
[root@nagios libexec]# /usr/local/nagios/libexec/check_arping.py -H esdev01 -I enp0s3
ARPING 10.0.0.1 from nagios enp0s3
Unicast reply from 10.0.0.1 [EC:B1:D7:39:EA:65] 0.626ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
[root@nagios libexec]# echo $?
0
[root@nagios libexec]# /usr/local/nagios/libexec/check_arping.py -H esdev01zzzz -I enp0s3
arping: esdev01zzzz: Name or service not known
[root@nagios libexec]# echo $?
3