check_debian_packages
Hari Sekhon
hpsekhon at googlemail.com
Thu May 15 14:41:34 CEST 2008
Mordur Ingolfsson wrote:
> Hi List,
>
> I have been having difficulty with running a Nagios plugin called
> check_debian_packages by way of nrpe with sudo.
>
> The plugin I'm having difficulties with needs to run "apt-get -s
> upgrade" on a Debian system, so root privileges are needed. I can run
> the plugin fine with sudo as user nagios, but nrpe using sudo always
> fails with permission denied, even if I give the nagios user full
> permissions for everything in /etc/sudoers.
>
> I would be grateful for any hints
Use check_apt instead it doesn't need root privs.
Best to avoid using root privs if you don't need to.
-h
--
Hari Sekhon
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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