NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
181 stars 94 forks source link

services are not listed in ncpa GUI #669

Open Akash1602 opened 4 years ago

Akash1602 commented 4 years ago

not able to load running services on remote host using ncpa 2.2, i have attached screenshot of it.

Capture

Python Version on remote host :

[root@remote_host~]# python -V Python 2.7.5

Running OS on remote host:

[root@remote_host ~]# cat /etc/os-release NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"

ccztux commented 4 years ago

Which version of NCPA is in use? You wrote 2.2 Is it 2.2.0, 2.2.1 or 2.2.2?

ccztux commented 4 years ago

Can you provide the output of: ps aux | grep -i ncpa

Akash1602 commented 4 years ago

sorry for the delay in response, we are using the ncpa version 2.2.2, here is output from the remote system of command which you have mentioned.

[root@remote_system ~]# ps aux | grep -i ncpa root 27459 0.0 0.0 103372 2140 pts/199 S+ 07:36 0:00 grep -i ncpa nagios 49442 0.0 0.0 252368 30184 ? S Aug18 10:46 /usr/local/ncpa/ncpa_passive --start nagios 50055 0.0 0.0 490624 41264 ? Sl Aug18 8:54 /usr/local/ncpa/ncpa_listener --start

Akash1602 commented 4 years ago

any update on this, how to resolve this issue.

ccztux commented 4 years ago

Your ncpa_listener service is running as user nagios. This should be ok, but can you give it a try to start it as user root? You must change the following configuration and restart the ncpa_listener service:

#
# -------------------------------
# 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 = root
gid = root