IP and hostname mapping control

Kevin Keane subscription at kkeane.com
Tue Jun 29 15:06:06 CEST 2010


You could use the check_dns plugin with the -a argument.

From: Network Operation Center FMC Luxemburg [mailto:NOC at eurofmc.com]
Sent: Monday, June 28, 2010 10:40 PM
To: Nagios Users List
Subject: [Nagios-users] IP and hostname mapping control

Hi everybody,

I'm looking for a way to check out the mapping between a hostname and IP address.

Example: IP 192.168.0.1 exists and if the hostname foo.mylan.com is not associated with this IP, I would have an alarm.

Indeed the script below returns no alarm :

define host {
    use             unix-server
    host_name       foo.mylan.com
    display_name    foo
    address         192.168.0.1
    check_command   check_http
}

define service {
    use            local-service
    host_name      foo.mylan.com
    service_description   HTTP local
    check_command  check_http
}

Any idea?

Thanks a lot

François
--
Network Operation Center
        LUXEMBURG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100629/2045b456/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list