Nagios client installation and deinstallation on ODA

Nagios client installation and deinstallation on ODA

Nagios installation

# chmod 777 ncpa-2.3.1.el7.x86_64.rpm
# ls -l ncpa-2.3.1.el7.x86_64.rpm
-rwxrwxrwx 1 root root 11487232 Sep 24 2021 ncpa-2.3.1.el7.x86_64.rpm
# rpm -ivh /tmp/ncpa-2.3.1.el7.x86_64.rpm
Preparing… ################################# [100%]
Updating / installing…
1:ncpa-2.3.1-1.el7 ################################# [100%]
#

Configuration

# ls -ltr /usr/local/ncpa/etc/ncpa.cfg
-rw-r—– 1 root nagios 9647 Feb 11 2021 /usr/local/ncpa/etc/ncpa.cfg

Uncomment the “allowed_hosts” in the “Settings” section and define the IP address of your Nagios
Monitoring Server or leave it blank to allow any hosts to connect.

#Vi /usr/local/ncpa/etc/ncpa.cfg

allowed_hosts=172.16.27.41
#

 

# ps -ef|grep -i ncpa
nagios 84858 1 0 22:19 ? 00:00:00 /usr/local/ncpa/ncpa_listener –start
nagios 84878 1 0 22:19 ? 00:00:00 /usr/local/ncpa/ncpa_passive –start
root 86126 78975 0 22:20 pts/1 00:00:00 grep –color=auto -i ncpa
# date
Fri Jan 13 22:20:39 EST 2023
# service ncpa_listener stop
Stopping ncpa_listener (via systemctl): [ OK ]
# service ncpa_passive stop
Stopping ncpa_passive (via systemctl): [ OK ]
# ps -ef|grep -i ncpa
root 87234 78975 0 22:21 pts/1 00:00:00 grep –color=auto -i ncpa
#

Nagios Deinstallation

# ps -ef|grep ncpa
nagios 4710 1 0 Mar03 ? 00:26:59 /usr/local/ncpa/ncpa_passive –start
nagios 4847 1 0 Mar03 ? 00:00:11 /usr/local/ncpa/ncpa_listener –start
root 74727 59618 0 02:07 pts/1 00:00:00 grep –color=auto ncpa
#
# rpm -qa |grep -i ncpa
ncpa-2.3.1-1.el7.x86_64
#
service ncpa_listener stop

#
# service ncpa_listener stop
Stopping ncpa_listener (via systemctl): [ OK ]
#
# rpm -qa |grep -i ncpa
ncpa-2.3.1-1.el7.x86_64
#
# ps -ef|grep ncpa
nagios 4710 1 0 Mar03 ? 00:26:59 /usr/local/ncpa/ncpa_passive –start
root 79338 59618 0 02:09 pts/1 00:00:00 grep –color=auto ncpa
#
# service ncpa_passive stop
Stopping ncpa_passive (via systemctl): [ OK ]
#
# ps -ef|grep ncpa
root 79842 59618 0 02:10 pts/1 00:00:00 grep –color=auto ncpa
#
# rpm -e ncpa-2.3.1-1.el7.x86_64
#
# rpm -qa |grep -i ncpa
#

 

See also

Getting error “Unable to open /dev/tty” in ODA ilom

support.oracle.com