I would like to website to show information about host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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
Former Nagios employee
https://www.mcapra.com/
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

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

Post by lmiltchev »

Thanks, Matt!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked