Page 1 of 2

Installing nagios on aix

Posted: Fri Oct 05, 2012 1:03 pm
by srikanth.kallu
If scom is already installed on aix would that effect nagios ?

Because i am able to run /opt/nagios/bin/nrpe on AIX server but still it throughs me an error "Connection refused by host" .

Please advice

Re: Installing nagios on aix

Posted: Fri Oct 05, 2012 3:18 pm
by scottwilkerson
I don't believe this should affect it.

Did you add the Nagios Servers IP in the allowed_from area in the nrpe.cfg before starting the daemon?

Re: Installing nagios on aix

Posted: Mon Oct 08, 2012 12:38 pm
by srikanth.kallu
wcsdev:/tmp/aix-nrpe-agent# /opt/nagios/bin/nrpe
NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.13
Last Modified: 11-11-2011
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

***************************************************************
** POSSIBLE SECURITY RISK - COMMAND ARGUMENTS ARE SUPPORTED! **
** Read the NRPE SECURITY file for more information **
***************************************************************

***************************************************************
** POSSIBLE SECURITY RISK - TCP WRAPPERS ARE NOT AVAILABLE! **
** Read the NRPE SECURITY file for more information **
***************************************************************

Usage: nrpe [-n] -c <config_file> <mode>

Options:
-n = Do not use SSL
<config_file> = Name of config file to use
<mode> = One of the following operating modes:
-i = Run as a service under inetd or xinetd
-d = Run as a standalone daemon
-d -s = Run as a subsystem under AIX
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.

When i run /opt/nagios/bin/nrpe i get the above output

but wcsdev:/tmp/aix-nrpe-agent# ps -ef | grep nrpe
root 19136640 15270010 0 12:34:36 pts/10 0:00 grep nrpe
wcsdev:/tmp/aix-nrpe-agent#


This show nrpe is not running.

Please help i tried in all the possible ways i know to make this work but could not get it.

Any help in this highly appreciated

Thank You!

Re: Installing nagios on aix

Posted: Mon Oct 08, 2012 2:00 pm
by scottwilkerson
This is the help file because you didn't include the -c which is required

Try

Code: Select all

/opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d -s

Re: Installing nagios on aix

Posted: Mon Oct 08, 2012 2:13 pm
by srikanth.kallu
wcsdev:/tmp/aix-nrpe-agent# /opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d -s
wcsdev:/tmp/aix-nrpe-agent# ps -ef | grep nrpe
wcsdev:/tmp/aix-nrpe-agent#

I tried this as well, but no luck..

Re: Installing nagios on aix

Posted: Mon Oct 08, 2012 2:17 pm
by scottwilkerson
Please run

Code: Select all

netstat -lnp |grep 5666

Re: Installing nagios on aix

Posted: Mon Oct 08, 2012 2:31 pm
by srikanth.kallu
wcsdev:/tmp/aix-nrpe-agent# netstat -lnp |grep 5666
netstat: Not a recognized flag: l
usage: netstat [-Aaon] [-f address_family] [-@ [wparname]]
[-D]
[-cCgimMnPrsuvZ] [-f address_family] [ [-p proto] | [-@ [wparname]] ]
[-n] [-I interface] [interval]

I ran netstat -an |grep 5666 instead...

wcsdev:/tmp/aix-nrpe-agent# netstat -an |grep 5666
wcsdev:/tmp/aix-nrpe-agent#

This not returning anything..

I have already added this line in /etc/services

nrpe 5666/tcp #nrpe

Re: Installing nagios on aix

Posted: Tue Oct 09, 2012 10:10 am
by scottwilkerson
I believe we had an email ticket on this same issue that you said was resolved... Is this resolved also?

Re: Installing nagios on aix

Posted: Tue Oct 09, 2012 10:18 am
by srikanth.kallu
I wish, unfortunately this is not the same.

With that server it throwed me an error saying "dependency libcrypto.a is missing"

But this server is giving me no errors but on nagios server side it is giving me " connection refused by the host "

Re: Installing nagios on aix

Posted: Tue Oct 09, 2012 10:59 am
by scottwilkerson
Are there any errors in the syslog after you run

Code: Select all

/opt/nagios/bin/nrpe -c /etc/nagios/nrpe.cfg -d