Page 1 of 1

Process monitoring not working on AIX 7.1

Posted: Mon Mar 12, 2018 6:08 am
by jyoti22
I want to monitor listener or any other process on AIX but its not working. However when I try to monitor sshd process, it works fine. Please find "file1" screenshot.

Also please find listener and sshd process configuration command from nagios console and suggest how can I do process monitoring. Thanks.

Re: Process monitoring not working on AIX 7.1

Posted: Mon Mar 12, 2018 10:07 am
by kyang
Hello,

Did you change the default port of NCPA? The default port is supposed to be 5693, but you are using the NRPE port 5666.

What is the output from the Nagios XI interface? Is it an error or something else? Please show a screenshot of this.

What is working?

Re: Process monitoring not working on AIX 7.1

Posted: Mon Mar 19, 2018 4:51 am
by jyoti22
Hi,
On same server we are monitoring other parameters with same port 5666 and using command "check_xi_ncpa" and its working fine.
ex:

CPU usage cmd : -t 'mytoken' -P 5666 -M cpu/percent -w 90 -c 95 -q 'aggregate=avg'

Memory usage cmd : -t 'mytoken' -P 5666 -M memory/virtual -u Gi -w 85 -c 92

Disk usage cmd : -t 'mytoken' -P 5666 -M 'disk/logical/|oraarchive201/used_percent' -w 85 -c 92

All above command give correct output. Kindly help. Thanks.

Re: Process monitoring not working on AIX 7.1

Posted: Mon Mar 19, 2018 1:17 pm
by kyang
What version of NCPA do you have? Also what version of the plugin?

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -V
Also, you mentioned it works from the cmd line, but not from the GUI.

What is it showing on the GUI?

Re: Process monitoring not working on AIX 7.1

Posted: Tue Mar 20, 2018 4:59 am
by jyoti22
[nagios@dc1lp1xxx libexec]$ /usr/local/nagios/libexec/check_ncpa.py -V
check_ncpa.py, Version 1.1.2


NCPA version is 3.2.1

command do not work either from cmd line or GUI

Re: Process monitoring not working on AIX 7.1

Posted: Tue Mar 20, 2018 4:59 pm
by npolovenko
@jyoti22, Have you tried using the "process" option instead?

./check_ncpa.py -H ip_address -t 'Str0ngT0k3n' -P 5693 -M 'process/LISTENER/count' -c 1:1

Also, 5666 is the nrpe port. NCPA usually uses the port 5693.