Home Directory Distributions Pre-Compiled Binaries AIX Added nrpe (daemon mode) to support SRC

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Added nrpe (daemon mode) to support SRC

Rating
0 votes
Favoured:
0
Current Version
2.12-1
Compatible With
  • Nagios 3.x
License
GPL
Hits
91283
Files:
FileDescription
nrpe-2.12-nrpec-LOG_FTP.patchDisable facility LOG_FTP on AIX
nrpe-2.12-nrpec-AIXSRC.patchSRC support on AIX
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
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.
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.