Installing nagios on aix

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Installing nagios on aix

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing nagios on aix

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Installing nagios on aix

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing nagios on aix

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Installing nagios on aix

Post 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..
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing nagios on aix

Post by scottwilkerson »

Please run

Code: Select all

netstat -lnp |grep 5666
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Installing nagios on aix

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing nagios on aix

Post by scottwilkerson »

I believe we had an email ticket on this same issue that you said was resolved... Is this resolved also?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Installing nagios on aix

Post 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 "
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Installing nagios on aix

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked