Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19539 - NRPE has broken init scrip
Summary: NRPE has broken init scrip
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Dean Bailey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-18 06:52 UTC by Michael Boman
Modified: 2003-06-17 16:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Boman 2003-04-18 06:52:17 UTC
Newer version of NRPE has a broken init scrip. The init script needs to look
like this to work:

start() {
        ebegin "Starting nrpe"
        start-stop-daemon --start --quiet --name nrpe \
        --startas /usr/nagios/bin/nrpe \
                -- -c /etc/nagios/nrpe.cfg --daemon
        eend $? "Failed to Start nrpe"
}


instead of

start() {
        ebegin "Starting nrpe"
        start-stop-daemon --start --quiet --name nrpe \
        --startas /usr/nagios/bin/nrpe \
                -c nagios:nagios \
                -- -d /etc/nagios/nrpe.cfg
        eend $? "Failed to Start nrpe"
}


Reproducible: Always
Steps to Reproduce:




# /usr/nagios/bin/nrpe --help

NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2003 Ethan Galstad (nagios@nagios.org)
Version: 1.8
Last Modified: 01-16-2003
License: GPL

Usage: /usr/nagios/bin/nrpe -c <config_file> [mode]

Options:
 <config_file> = Name of config file to use
 [mode]        = Determines how NRPE should run. Valid modes:
   --inetd     = Run as a service under inetd or xinetd
   --daemon    = Run as a standalone daemon

Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running Nagios.  It can run as a service
under inetd or xinetd (read the docs for info on this), or as a
standalone daemon. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.
Comment 1 Michael Boman 2003-06-14 21:23:38 UTC
I am just wondering what is happening with this bug. It's a fairly easy change to do, and in the current state the ebuild is broken.
Comment 2 Dean Bailey 2003-06-17 12:42:25 UTC
Am on it.
Comment 3 Dean Bailey 2003-06-17 16:57:24 UTC
fixed in nagios-nrpe-1.8-r1 which will be in portage in a few minutes