[Nagiosplug-devel] check_dhcp - a possible addition

Stephan Janosch stephan.janosch at interface-business.de
Wed Jan 19 04:55:20 CET 2005


-------- Original Message --------
Subject: Re: [Nagiosplug-devel] check_dhcp - a possible addition
Date: Wed, 19 Jan 2005 10:27:39 +0100
From: Stephan Janosch <stephan.janosch at interface-business.de>
To: Benoit Mortier <benoit.mortier at opensides.be>
References: <41ED23E7.1090102 at interface-business.de> 
<200501182017.17650.benoit.mortier at opensides.be>

Benoit Mortier wrote:
> Le Mardi 18 Janvier 2005 15:57, Stephan Janosch a écrit :
> 
>>Hi folks!
>>
>>Fizzeling(freebsd has no eth0, O_o ) around with check_dhcp I figured
>>out, that I have to give an interface name. Perhaps you can include the
>>code at the bottom of this message. Basicly the code looks through the
>>interface table and searches for interfaces which are up and can
>>broadcast.
>>
>>This could make the use a bit more flexible.
>>
>>regards, Stephan
> 
> 
> hi,
> 
> could you make a patch to the current cvs head and post it to the nagiosplug 
> project on sourceforge, in the patch section
> 
> Thanks

I never used SF in an active manner before. But I can try. I guess, I
need a SF login. O_o

uname -a
FreeBSD [hostname] 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #0: Thu Sep
  2 09:06:37 CEST 2004

momocat at copycat:[nagiosplug] >cvs
-d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/nagiosplug login

momocat at copycat:[nagiosplug] >cvs -z3
-d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/nagiosplug co -P
nagiosplug

Now I adjusted ./tools/setup in order to use latest aclocal,automake ...
- aclocal -I m4
+ aclocal18 -I m4
- autoheader
+ autoheader
- automake --add-missing --force-missing --copy
+ automake18 --add-missing --force-missing --copy
- autoconf
+ autoconf259

So I ran ./tools/setup. All went fine.

Configure and Make all also went flawlessly.

------------------------
But now the big problem:
------------------------

check_dhcp does not work anymore.

momocat at copycat:[plugins] >./check_dhcp -V
check_dhcp (nagios-plugins 1.4-beta2) 1.6
momocat at copycat:[plugins] >./check_dhcp -s 193.101.57.34
Error: can't get MAC address for this architecture.

The check_dhcp from the nagiosplugins 1.3 works fine.

momocat at copycat:[nagios] >./check_dhcp -s 193.101.57.34 -i xl0
DHCP ok: Received 1 DHCPOFFER(s), 1 of 1 requested servers responded,
max lease time = 86400 sec.

So..I will have a look. But the older(contrib from nagios-plugins 1.3)
check_dhcp was just fine for me.

Sorry, but I'm a little bit confused now.

Stephan
PS: I'm subscribed to this list meanwhile.





More information about the Devel mailing list