Startup with Checks AND DHCP installation
Stanley Hopcroft
Stanley.Hopcroft at IPAustralia.Gov.AU
Mon Jan 13 00:04:52 CET 2003
Dear Sir,
I suggest that having only one question per letter makes life easier to
search the archives for others with the same question and also avoids
the problem here of one having an answer to one qustion but not the
other.
On Sat, Jan 11, 2003 at 06:00:39PM -0500, Chris Brown wrote:
> Good day all.
>
> I am converting my Netsaint application to Nagios
> and trying to expand the monitoring capabilities as well.
>
> I have 2 questions/problems.
>
> 1) Inside the nagios.cfg file....
> When I change the 'check external commands = 0' to 1 and restarted
> Nagios,
> the application wouldn't run.... although it runs fine when set to 0.
> Can anybody suggest something?
>
> 2) The check_dhcp instructions on the FAQ say something about installing
> it via suid root.
> Can someon explain that detail?
> As root, I compiled it and copied it into the libexec... as well
> as put it into the templates to be used.
> My host says 'could not BIND to dhcp socket'. (DHCP is running on
> this physical machine too).
DHCP clients broadcast DHCPDISCOVER messages on the DHCP client port.
Therefore they need root priviledges to be able to set the SO_BROADCAST
socket option (have a look in check_dhcp.c).
The only way to do this with a program run by a non-root user (the
nagios user) is to make the program suid root ie
chown root check_dhcp
chmod 4755 check_dhcp
This isn't done because this plugin is not part of the standard plugin
dist (although it looks like a great plugin, it won't compile under
FreeBSD and probably other non Linux platforms).
The plugins in /contrib require you to do this sort of thing.
If it still raises a BIND error I can't help.
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list