• 1
Sign in to follow this  
Peter Dugan

Monitor IP address that host resolves to

Question

Peter Dugan    0

With LogicMonitor I'm looking to monitor the IP address that a given host name resolves to.  Any recommendations on the best approach?

For example, every 30 seconds ping/nslookup on server1, store the IP address.  

Thanks

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1
Matthew Dunham    100

Hi Peter -

You're probably aware that the existing DNS datasource verifies resolution of hostname to address (from the perspective of the Collector) and alerts upon lookup failure.

If you want to track changes to a host's ip address, one could write a script datasource that does a DNS lookup, stores the resolved address in a cache file, and at each successive poll compares the currently resolved address with the cached address. In this way you could trigger an alert upon changes to DNS. 

Share this post


Link to post
Share on other sites
  • 1
Zsmith    1

This is how we do it. I will upload my datasource used to LM exchange if a similar one isn't already there

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this