NCPA Passive and Listener Services not starting on AIX serve

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

NCPA Passive and Listener Services not starting on AIX serve

Post by madhu2852 »

Hi All,

I tried to install NCPA on AIX boxes . NCPA installation is successful but the ncpa_listener and passive services are not starting with below error:

LABEL: SRC_SVKO
IDENTIFIER: BC3BE5A3

Date/Time: Tue Jun 5 12:26:51 CDT 2018
Sequence Number: 889
M
Class: S
Type: PERM
WPAR: Global
Resource Name: SRC

Description
SOFTWARE PROGRAM ERROR

Probable Causes
APPLICATION PROGRAM

Failure Causes
SOFTWARE PROGRAM

Recommended Actions
MANUALLY RESTART SUBSYSTEM IF NEEDED

Detail Data
SYMPTOM CODE
65280
SOFTWARE ERROR CODE
-9017
ERROR CODE
0
DETECTING MODULE
'srchevn.c'@line:'376'
FAILING MODULE
ncpa_listener
---------------------------------------------------------------------------
LABEL: SRC_SVKO
IDENTIFIER: BC3BE5A3

Date/Time: Tue Jun 5 12:25:35 CDT 2018
Sequence Number: 888
Class: S
Type: PERM
WPAR: Global
Resource Name: SRC

Description
SOFTWARE PROGRAM ERROR

Probable Causes
APPLICATION PROGRAM

Failure Causes
SOFTWARE PROGRAM

Recommended Actions
MANUALLY RESTART SUBSYSTEM IF NEEDED

Detail Data
SYMPTOM CODE
65280
SOFTWARE ERROR CODE
-9017
ERROR CODE
0
DETECTING MODULE
'srchevn.c'@line:'376'
FAILING MODULE
ncpa_passive

Any help will be appreciated.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA Passive and Listener Services not starting on AIX s

Post by cdienger »

It could be related to the configuration files. Please provide a copy of the /usr/local/ncpa/etc/ directory as well as the logs in /usr/local/ncpa/var/ directory.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA Passive and Listener Services not starting on AIX s

Post by madhu2852 »

Config file:

#####
#
# NCPA Main Config File
# ---------------------
#

#
# -------------------------------
# General Configuration
# -------------------------------
#

[general]

#
# Check logging is on by default, you can disable it if you do not want to record
# the check requests that are coming in or checks being sent over NRDP.
# Default: check_logging = 1
#
check_logging = 1

#
# Check logging time - how long in DAYS you'd like to keep checks in the database.
# Default: 30
#
check_logging_time = 30

#
# Excluded file system types removes these fs types from the disk metrics
# (This is mostly only noteable on UNIX systems but also works on Windows if you need it)
# Default: aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,
# encryptfs,efivarfs,fuse,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,
# rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs
#
exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs

#
# The default unit to convert bytes (B) into if no unit is specified
# (Gi = 1024 MiB, G = 1000 MB)
#
default_units = Gi

#
# -------------------------------
# Listener Configuration (daemon)
# -------------------------------
#

[listener]

#
# User and group to run plugins as (recommended to use nagios:nagios)
# Default: uid = nagios
# Default: gid = nagios
#
# ** Note - The daemon runs as root, but forks a child process when running a plugin
# that is defined by the user, for security reasons. However, without the main daemon
# running as root, much of the system information would be missing. This is typical behavior. **
#
# This is for Unix only (Linux, Mac OS X, etc)
#
uid = nagios
gid = nagios

#
# IP address and port number for the Listener to use for the web GUI and API
# Default: ip = 0.0.0.0
# Default: port = 5693
#
ip = 0.0.0.0
port = 5693

#
# SSL connection and certificate config (if an SSL option is not available on some older
# operating systems it will default back to TLSv1)
# ssl_version options: TLSv1, TLSv1_1, TLSv1_2
#
# ssl_ciphers = <list of ciphers>
#
ssl_version = TLSv1_2
certificate = adhoc

#
# Listener logging file level, location, and the PID location
# Default: loglevel = info (debug, info, warning, error)
# Default: logfile = var/log/ncpa_listener.log
# Default: pidfile = var/run/ncpa_listener.pid (leave listener in pid file name)
#
loglevel = info
logfile = var/log/ncpa_listener.log
pidfile = var/run/ncpa_listener.pid

#
# Delay the listener (API & web GUI) from starting in seconds
# Default: 0
#
# delay_start = 30

#
# Allow admin functionality in the web GUI. When this is set to 0, the admin section will not
# be displayed in the header and will not be available to be accessed.
# Default: 1
#
admin_gui_access = 1

#
# Admin password for the admin section in the web GUI, by default there is no admin
# password and the admin section of the GUI can be accessed by anyone if admin_gui_access is set to 1.
# Default: None
#
# Note: Setting this value to 'None' will automatically log you in, setting it empty will allow you to
# log in using a blank password.
#
admin_password = None

#
# Require admin password to access ALL of the web GUI.
# This does not affect API access via token (community_string).
# Default: 0
#
admin_auth_only = 0

#
# -------------------------------
# Listener Configuration (API)
# -------------------------------
#

[api]

#
# The token that will be used to log into the basic web GUI (API browser, graphs, top charts, etc)
# and to authenticate requests to the API and requests through check_ncpa.py
#
community_string = mytoken

#
# -------------------------------
# Passive Configuration (daemon)
# -------------------------------
#

[passive]

#
# Handlers are a comma separated list of what you would like the passive agent to run
# Default: None
# Options:
# nrds, nrdp, kafkaproducer
#
# Example:
# handlers = nrds,nrdp,kafkaproducer
#
handlers = None

#
# User and group to run passive checks as (Recommended to use nagios:nagios)
# Default: uid = nagios
# Default: gid = nagios
#
uid = nagios
gid = nagios

#
# Passive check interval - the amount in seconds to wait between each passive check by default,
# this can be overwritten by adding on a "|<duration>" in seconds to the passive check config
# Default: 300 (5 minutes)
#
sleep = 300

#
# Passive logging file level, location, and the PID location
# Default: loglevel = info (debug, info, warning, error)
# Default: logfile = var/log/ncpa_passive.log
# Default: pidfile = var/run/ncpa_passive.pid (leave passive in pid file name)
#
loglevel = info
logfile = var/log/ncpa_passive.log
pidfile = var/run/ncpa_passive.pid

#
# Delay passive checks from starting in seconds
# Default: 0
#
# delay_start = 30

#
# -------------------------------
# Passive Configuration (NRDP)
# -------------------------------
#

[nrdp]

#
# Connection settings to the NRDP server
# parent = NRDP server location (ex: http://<address>/nrdp)
# token = NRDP server token used to send NRDP results
#
parent =
token =

#
# The hostname that will replace %HOSTNAME% in the check definitions and will be
# sent to NRDP with the check name as the service description (service name)
#
hostname = NCPA 2

#
# -------------------------------
# Passive Configuration (NRDS)
# -------------------------------
#

[nrds]

#
# NRDS CONFIGURATION DOES NOT WORK YET. MORE TO COME IN VERSION 2.1.0.
#

#
# NRDS connection information
#
url =
token =
config_name =
config_version =
update_config = 1
update_plugins = 1

[kafkaproducer]

#
# -------------------------------
# Passive Configuration (Kafka)
# -------------------------------
#

hostname = None
servers = localhost:9092
clientname = NCPA-Kafka
topic = ncpa

#
# -------------------------------
# Plugin Configuration
# -------------------------------
#

[plugin directives]

#
# Plugin path where all plugins will be ran from.
#
plugin_path = plugins/

#
# Plugin execution timeout in seconds. Different than the check_ncpa.py timeout, which is
# normally for network connection issues. Will return a CRITICAL value and error when the plugin
# reaches the defined max execution timeout and kills the process.
# Default: 60
#
# plugin_timeout = 60

#
# Extensions for plugins
# ----------------------
# The extension for the plugin denotes how NCPA will try to run the plugin. Use this
# for setting how you want to run the plugin in the command line.
#
# NOTE: Plugins without an extension will be ran in the cmdline as follows:
# $plugin_name $plugin_args
#
# Defaults:
# .sh = /bin/sh $plugin_name $plugin_args
# .py = python $plugin_name $plugin_args
# .ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
# .vbs = cscript $plugin_name $plugin_args //NoLogo
# .bat = cmd /c $plugin_name $plugin_args
#
# Since windows NCPA is 32-bit, if you need to use 64-bit powershell, try the following for
# the powershell plugin definition:
# .ps1 = c:\windows\sysnative\windowspowershell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -File $plugin_name $plugin_args
#

# Linux / Mac OS X
.sh = /bin/sh $plugin_name $plugin_args
.py = python $plugin_name $plugin_args

# Windows
.ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
.vbs = cscript $plugin_name $plugin_args //NoLogo
.wsf = cscript $plugin_name $plugin_args //NoLogo
.bat = cmd /c $plugin_name $plugin_args
####

ERRORS:

exec(): 0509-036 Cannot load program ./ncpa_listener because of the following errors:
0509-150 Dependent module libsqlite3.so could not be loaded.
0509-022 Cannot load module libsqlite3.so.
0509-026 System error: A file or directory in the path name does not exist.

exec(): 0509-036 Cannot load program ./ncpa_passive because of the following errors:
0509-150 Dependent module libsqlite3.so could not be loaded.
0509-022 Cannot load module libsqlite3.so.
0509-026 System error: A file or directory in the path name does not exist.

Also I'm a Nagios XI user, how can i get quick support on this.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA Passive and Listener Services not starting on AIX s

Post by cdienger »

If you have phone or ticket support you can contact us via the following:

https://support.nagios.com/contact/
http://support.nagios.com/tickets/

You should also have access to the Customer Support forum which has a higher priority.

That said, it looks like it isn't able to find the libsqlite3.so file which should be in /usr/local/ncpa/. Do you see this file in there? It should have the read bit set for everyone.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA Passive and Listener Services not starting on AIX s

Post by madhu2852 »

I dont see that file in the ncpa directory. I just downloaded the package from your repo and installed the rpm. I guess it should be packaged in the rpm itself correct. To fix this , is there a way to have these files downloaded to the box
below are the only sqlite3 packages under ncpa directory.

bash-4.2$ ls -la| grep sql*
-rw-r--r-- 1 nagios nagios 157234 Apr 19 09:36 _sqlite3.so
-rw-r--r-- 1 nagios nagios 5073815 Apr 19 09:36 libsqlite3.a
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA Passive and Listener Services not starting on AIX s

Post by cdienger »

We found a problem with the spec file. Run the following to get it started and make it start automatically after a reboot.

chitab "ncpa_listener:2:once:/usr/bin/startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_listener >/dev/null 2>&1"
chitab "ncpa_passive:2:once:/usr/bin/startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_passive >/dev/null 2>&1"

startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_listener >/dev/null 2>&1
startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_passive >/dev/null 2>&1
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA Passive and Listener Services not starting on AIX s

Post by madhu2852 »

that didn't work and couldnt find any logs in the files too.

bash-4.2#
bash-4.2# chitab "ncpa_listener:2:once:/usr/bin/startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_listener >/dev/null 2>&1"
bash-4.2# chitab "ncpa_passive:2:once:/usr/bin/startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_passive >/dev/null 2>&1"
bash-4.2# startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_listener >/dev/null 2>&1
bash-4.2# startsrc -e LIBPATH=/usr/local/ncpa -s ncpa_passive >/dev/null 2>&1
bash-4.2# lssrc -a| grep ncpa
ncpa_listener inoperative
ncpa_passive inoperative
bash-4.2#
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA Passive and Listener Services not starting on AIX s

Post by cdienger »

Run the command:

LIBPATH=/usr/local/ncpa /usr/local/ncpa/ncpa_listener -n

and provide the output.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
madhu2852
Posts: 50
Joined: Mon Aug 28, 2017 1:13 pm

Re: NCPA Passive and Listener Services not starting on AIX s

Post by madhu2852 »

LIBPATH=/usr/local/ncpa /usr/local/ncpa/ncpa_listener -n
exec(): 0509-036 Cannot load program /usr/local/ncpa/ncpa_listener because of the following errors:
0509-150 Dependent module libsqlite3.so could not be loaded.
0509-022 Cannot load module libsqlite3.so.
0509-026 System error: A file or directory in the path name does not exist.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NCPA Passive and Listener Services not starting on AIX s

Post by cdienger »

What version of NCPA is this exactly? As a test, we'd like you to try a slightly older version(2.1.1) found here: https://assets.nagios.com/downloads/ncp ... .1.ppc.rpm
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked