Page 2 of 2

Re: I would like to website to show information about host

Posted: Fri Jun 09, 2017 11:40 am
by mcapra
What the "Status Information" field is populated with depends entirely on the plugin (or script) being used. The check_dns plugin does not provide information regarding the MAC address of a particular network adapter.

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
2017_06_09_11_44_09_Nagios_Core_on_10.35.7.6.png

Re: I would like to website to show information about host

Posted: Fri Jun 09, 2017 12:10 pm
by lmiltchev
Thanks, Matt!