<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Messaggio</TITLE>
<META content="MSHTML 6.00.2800.1479" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>Good
Morning.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>I've installed
Hobbit on a BB server.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>It is able to
monitor everything I need except DHCP daemon.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>The DHCP server is
the same of BB server in the main location, while I've 3 more DHCP servers
in remote locations (each running bb-client).</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>I've tried to use
the external program that make the use of DHCPING (bb-dhcp) that I've found on
deadcat.net, but this is not able to dhcping -s
localhost.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>In BBSERVER I've
added the following line in $BBHOME/bin/bb-network.sh to test it and it
works</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005>--------------------------------------------------------------------------------------------------------------------------------------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2># DHCP support...Ray DeJean (</FONT><A
href="mailto:ray@selu.edu"><FONT face=Arial size=2>ray@selu.edu</FONT></A><FONT
face=Arial size=2>)<BR># most of this code is stolen from<BR># Frank T. Kujawski
<</FONT><A href="mailto:frank@bluegrass.net"><FONT face=Arial
size=2>frank@bluegrass.net</FONT></A><FONT face=Arial size=2>> who added DNS
support<BR># requires nmap tool in /usr/local/bin<BR>dhcp ) # echo
"looking for dhcp server"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=780085707-08072005>
</SPAN> /usr/bin/nmap -sU -p 67 ${HOSTIP} | $GREP
"closed dhcpserver" > /dev/null
2>&1<BR> if test "$?" =
"0"<BR>
then<BR>
LINE="DHCP Server on ${FULLNAME}
down"<BR>
echo "$NONETPAGE" | $GREP "dhcp" > /dev/null
2>&1<BR>
if test $? = "1" # NOT FOUND -
PAGE<BR>
then<BR> <SPAN
class=780085707-08072005>
</SPAN>
COLOR="red"<BR>
else<BR> <SPAN
class=780085707-08072005>
</SPAN>
COLOR="yellow"<BR> <SPAN
class=780085707-08072005> </SPAN> <SPAN
class=780085707-08072005> </SPAN>
LINE="$LINE - configured not to
page"<BR>
fi<BR>
else<BR>
COLOR="green"<BR>
LINE="DHCP Server OK"<BR>
fi</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> $BB
$BBDISP "status ${MACHINE}.dhcp $COLOR `date` $LINE"</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=780085707-08072005>;</SPAN>;</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005>----------------------------------------------------------------------------------------------------------------------------------------</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>Any suggestion on
how I can made the same check with Hobbit?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=780085707-08072005>Thanks in
advance</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=780085707-08072005>Roberto</SPAN></FONT></DIV></BODY></HTML>