Define host with MAC address instead of IP address


#1

I have read in documentation online that you can define a host using the MAC address (or even AIM and street address?) instead of an IP address.

What is the syntax for defining this?

I tried

define host {
use
host_name
_mac address
}

but I get the error - unknown hostname/address

Am I defining the host incorrectly?

thanks


#2

well, you may find all the different configurations you can use to define a host here:
nagios.sourceforge.net/docs/2_0/ … .html#host

you’ll see that there are no line with “mac_address” or an equivalent; so, I doubt you can do it this way :confused:


#3

Thanks for the hint to look at the docs. I was looking for this too. It seems that you can just plug your mac address into the address field. You just have to be careful to only use plugins for that host that use the MAC address and not the IP address