Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Oct 2008 21:17:58 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        freebsd-questions@FreeBSD.org
Subject:   FreeBSD and Nagios - permissions
Message-ID:  <20081016101758.GA85895@mavetju.org>

next in thread | raw e-mail | index | archive | help
> The nrpe daemon that handles the script runs as the "nagios" user and
> the command needed is camcontrol:

First lines of the check_ciss.sh command:

    #!/bin/sh

    if [ $(whoami) != "root" ]; then
	    sudo $*
    fi

And allow in sudoerrs.conf the nagios user to run the check_ciss.sh
command without passwords.

Works fine here for years :-)

Edwin

-- 
Edwin Groothuis		Website: http://www.mavetju.org/
edwin@mavetju.org	Weblog:  http://www.mavetju.org/weblog/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081016101758.GA85895>