ncpa command line not working
Posted: Fri Oct 25, 2019 4:06 pm
Hi,
We are running
NagiosXI 5.5.9 as a vmware image
We use nrpe for all our linux monitoring. Wanted to tryout ncpa.
https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf
followed this document and installed NCPA on a SUSE 12 linux box
<hostname>:~ # rpm -qa | grep ncpa
ncpa-2.1.7-1.x86_64
<hostname>:~ #
Was able to use the NCPA wizard and configure the server for monitoring the basic default cpu, memory and all that and it works fine. but if i run the command from the NagiosXI server on command line it does not work.
root@nagiosxi:/usr/local/nagios/libexec# ./check_ncpa.py -H <hostname> -t '<token>' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
UNKNOWN: Execution exceeded timeout threshold of 60s
root@nagiosxi:/usr/local/nagios/libexec#
root@nagiosxi:/usr/local/nagios/libexec# nmap <hostname> -p 5693
Starting Nmap 6.47 ( http://nmap.org ) at 2019-10-25 15:47 CDT
Nmap scan report for <hostname> (XX.XX.XX.XX)
Host is up (0.00034s latency).
PORT STATE SERVICE
5693/tcp open unknown
MAC Address: XX:XX:XX:XX:XX:XX (VMware)
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
root@nagiosxi:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_ncpa.py -V
check_ncpa.py, Version 1.1.3
root@nagiosxi:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_ncpa.py -H <hostname> -t '<token>' -P 5693 -M system/agent_version
UNKNOWN: Execution exceeded timeout threshold of 60s
root@nagiosxi:/usr/local/nagios/libexec#
root@nagiosxi:/usr/local/nagios/libexec# su -c "whoami" - nagios
nagios
root@nagiosxi:/usr/local/nagios/libexec# su -c "/usr/local/nagios/libexec/check_ncpa.py -H <hostname> -t '<token>' -P 5693 -M system/agent_version" - nagios
UNKNOWN: Execution exceeded timeout threshold of 60s
root@nagiosxi:/usr/local/nagios/libexec#
We are running
NagiosXI 5.5.9 as a vmware image
We use nrpe for all our linux monitoring. Wanted to tryout ncpa.
https://assets.nagios.com/downloads/ncp ... g-NCPA.pdf
followed this document and installed NCPA on a SUSE 12 linux box
<hostname>:~ # rpm -qa | grep ncpa
ncpa-2.1.7-1.x86_64
<hostname>:~ #
Was able to use the NCPA wizard and configure the server for monitoring the basic default cpu, memory and all that and it works fine. but if i run the command from the NagiosXI server on command line it does not work.
root@nagiosxi:/usr/local/nagios/libexec# ./check_ncpa.py -H <hostname> -t '<token>' -P 5693 -M cpu/percent -w 20 -c 40 -q 'aggregate=avg'
UNKNOWN: Execution exceeded timeout threshold of 60s
root@nagiosxi:/usr/local/nagios/libexec#
root@nagiosxi:/usr/local/nagios/libexec# nmap <hostname> -p 5693
Starting Nmap 6.47 ( http://nmap.org ) at 2019-10-25 15:47 CDT
Nmap scan report for <hostname> (XX.XX.XX.XX)
Host is up (0.00034s latency).
PORT STATE SERVICE
5693/tcp open unknown
MAC Address: XX:XX:XX:XX:XX:XX (VMware)
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
root@nagiosxi:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_ncpa.py -V
check_ncpa.py, Version 1.1.3
root@nagiosxi:/usr/local/nagios/libexec# /usr/local/nagios/libexec/check_ncpa.py -H <hostname> -t '<token>' -P 5693 -M system/agent_version
UNKNOWN: Execution exceeded timeout threshold of 60s
root@nagiosxi:/usr/local/nagios/libexec#
root@nagiosxi:/usr/local/nagios/libexec# su -c "whoami" - nagios
nagios
root@nagiosxi:/usr/local/nagios/libexec# su -c "/usr/local/nagios/libexec/check_ncpa.py -H <hostname> -t '<token>' -P 5693 -M system/agent_version" - nagios
UNKNOWN: Execution exceeded timeout threshold of 60s
root@nagiosxi:/usr/local/nagios/libexec#