AIX

Added nrpe (daemon mode) to support SRC

Description:

Nrpe “daemonizes” itself. By default it runs in background and fork to another process to do the work and let the parent die. The process forked is inherited after by init.
In this way the SRC think the nrpe process started by it has died.
This patch is a solution to support Nrpe in daemon mode managed by SRC.

Current Version

2.12-1

Last Release Date

September 21, 2011

Compatible With

  • Nagios 3.x

Owner

License

GPL


Project Files
Project Notes
The patch are produced by the AIX diff command (option: diff -c). Nrpe is started by start -s nrpe and stopped by stopsrc -s nrpe. To create the subsystem do the following command: NrpeBin=/usr/local/nagios/bin/nrpe NrpeCfg=/usr/local/nagios/etc/nrpe.cfg rmssys -s nrpe 2>&1 >/dev/null mkssys -s nrpe -p "$NrpeBin" -a "-c $NrpeCfg -d -s" -u 0 -d -S -n 15 -f 9 -Q -R -G %{nsgrp} startsrc -s nrpe lssrc -s nrpe The parameter "-s" is a added to specify to run against AIX SRC. Hope is useful for others with no guarantee. Cf the disclaimer below: THE CONTENT ON THIS SITE ("SOFTWARE") IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NAGIOS ENTERPRISES BE LIABLE FOR ANY CLAIM FOR DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, STRICT LIABILITY, TORT (INCLUDING NEGLIGENCE OR OTHERWISE) OR OTHER ACTION, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
91,304