How do I monitor computers that use DHCP?

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.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

How do I monitor computers that use DHCP?

Post by jbruyet »

Hey all, I'd like to be able to monitor many workstations on my network (managers, supervisors, bookkeepers, etc.) but we're using DHCP and sometimes their IP addresses change. Googling this gave me a ton of "other stuff" and searching for DHCP on this forum gave me several pages of material that doesn't apply to my situation. Is there a way to have Nagios use the NetBIOS name rather than the IP address so I don't lose track of the computers?

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How do I monitor computers that use DHCP?

Post by jsmurphy »

Use a hostname instead of an IP address in your service/host definitions? Do you have internal DNS?

The address field will take any (IP or otherwise) as long as it can use that to resolve the host.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: How do I monitor computers that use DHCP?

Post by jbruyet »

Thanks much jsmurphy, it works. I guess I should have experimented a little more with it.

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How do I monitor computers that use DHCP?

Post by jsmurphy »

You're most welcome, it's somewhat misleading! Most fields in nagios will either take an integer or a string, so with anything that takes a string you can pretty much fill it with whatever you want as long as it's going to resolve to something relevant.
Locked