DHCP client configuration

Sumit Malhotra smalhotra at dataarmor.net
Mon Aug 1 15:56:15 CEST 2005


Easy way would be to configure your dhcp server to assign same IP to the
Machine's based on MAC address.

 OR 

Configure your dhcp server with Named to assign a hostname while
assigning an IP address. And then Configure nagios server to monitor
using hostname rather than IP address.

Sumit Malhotra
Data Armor


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Clément
Varaldi (ML)
Sent: Monday, August 01, 2005 6:23 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] DHCP client configuration

Hi,

despite this message 
(https://sourceforge.net/mailarchive/message.php?msg_id=2673276) I found

on the archive, no "solution" were found.

I have on the server that's running nagios a DHCP server (debian package

dhcpd), and some clients I'd like to monitore. Is there a way to define 
a client by its MAC address (for example) or to get infos from the 
/var/log/syslog that contains all dhcp logs, to change the configuration

of my nagios using this information?

Another problem is linked to this: some people use both windows and 
Linux and doesn't have the same Mac address, which leads to the fact 
that they won't get the same IP (if you don't change your mac address, 
dhcpd makes you choose, if available, the IP you had before).

I could use the /var/lib/dhcp/dhcpd.leases to get IPs and hostnames, but

can't change the configuration of nagios automatically, can I?

Last question:
Can I define a host with two ip addresses? (and how could I do that?)

-- 
Clément Varaldi
co-admin of http://fr.gentoo-wiki.com
Translator for the Gentoo project.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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