NIS and DHCP

Dan Rich drich at employees.org
Tue Apr 22 20:10:29 CEST 2003


Matthias Eichler said:
> Some comment and question to check_dhcp. The DHCP plugin just
> runs under root, otherwise it brings some error that it can't
> bind to the network interface.
>
> But Nagios is usually not running as root...did you wrote some
> wrapper with su -c "./check_dhcp" or do you have some other
> solution?!?

The simplest (although probably not the most secure) is to just setuid the
check_dhcp program to root.
    chown root check_dhcp
    chmod u+s check_dhcp
It's really not that much of a risk, since you have to run it as root anyway.

The best option would be to use one of the root wrappers floating around the net.

> On Tue, 2003-04-22 at 17:54, Dan Rich wrote:
>> Lionel Verscheure said:
>> > Hi,
>> >
>> > I just want to know if it exist already a plugin to test "NIS" and "DHCP"
>> ?
>>
>> You can find check_dhcp in the contrib directory of the plugins source.  As
>> far as I know there is no specific plugin for nis, but you can check it with
>> the check_rpc plugin easily enough:
>>
>> define command{
>>         command_name    check_nis
>>         command_line    $USER1$/check_rpc ypserv -H $HOSTADDRESS$ -c 2
>> }
> --
> Matthias Eichler <mylists at ame.de>
> AME Aigner Media & Entertainment
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
>
>


-- 
Dan Rich <drich at employees.org> |   http://www.employees.org/~drich/
                               |  "Step up to red alert!"  "Are you sure, sir?
                               |   It means changing the bulb in the sign..."
                               |          - Red Dwarf (BBC)



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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