Our NCPA agent running on Ubuntu 16.04 showed an "Active (exited)" status when checking with "systemctl status ncpa_listener". When we looked back in the syslog we saw the following:
Nov 2 08:51:34 pxxxx ncpa_listener[3178]: Started NCPA Listener
...
Nov 2 09:20:00 pxxxx systemd[1]: Started LSB: This manages the NCPA Passive service.
Nov 2 09:20:00 pxxxx ncpa_listener[3234]: another instance seems to be running (pid 3290), exiting
We'd like to know how NCPA finds out whether there's an instance already running.
Thanks,
Steve
NCPA agent detected another listener running
Re: NCPA agent detected another listener running
Hi Steve,
NCPA looks for another running instance by locating and validating the contents of the process identification (pid) file:
The routine for the listener can be found here (check_pid function starts on line 320):
https://github.com/NagiosEnterprises/nc ... adaemon.py
Thanks and Best Regards,
Keith
NCPA looks for another running instance by locating and validating the contents of the process identification (pid) file:
Code: Select all
/usr/local/ncpa/var/run/ncpa_listener.pid
/usr/local/ncpa/var/run/ncpa_passive.pid
https://github.com/NagiosEnterprises/nc ... adaemon.py
Thanks and Best Regards,
Keith