Page 1 of 1

NCPA - LXC Container - Fails to start

Posted: Tue May 09, 2017 7:22 pm
by flowmj
I am triying to get NCPA listener running in a Centos 7 LXC (container running in Proxmox VE), I installed NCPA via repo. but after installing and configuring, NCPA is failing to start:

ncpa_listener.service - LSB: This manages the NCPA Listener service
Loaded: loaded (/etc/rc.d/init.d/ncpa_listener; bad; vendor preset: disabled)
Active: active (exited) since Wed 2017-05-10 00:05:33 UTC; 1min 48s ago
Docs: man:systemd-sysv-generator(8)
Process: 8472 ExecStop=/etc/rc.d/init.d/ncpa_listener stop (code=exited, status=0/SUCCESS)
Process: 8481 ExecStart=/etc/rc.d/init.d/ncpa_listener start (code=exited, status=0/SUCCESS)

ncpa_listener[8481]: File "/root/ncpa/agent/ncpadaemon.py", line 14, in <module>
ncpa_listener[8481]: File "/root/ncpa/agent/listener/database.py", line 5, in <module>
ncpa_listener[8481]: File "/root/ncpa/agent/listener/server.py", line 11, in <module>
ncpa_listener[8481]: File "/root/ncpa/agent/listener/psapi.py", line 213, in <module>
ncpa_listener[8481]: File "/root/ncpa/agent/listener/psapi.py", line 184, in get_root_node
ncpa_listener[8481]: File "/root/ncpa/agent/listener/psapi.py", line 147, in get_disk_node
ncpa_listener[8481]: File "/usr/local/lib/python2.7/site-packages/psutil/__init__.py", line 2053, in disk_io_counters
ncpa_listener[8481]: RuntimeError: couldn't find any physical disk
ncpa_listener[8481]: [FAILED]
systemd[1]: Started LSB: This manages the NCPA Listener service.

I have successfully installed this latest NCPA version on another Centos 7 physical machine and VM without issue. Any help would be greatly appreciated.

Re: NCPA - LXC Container - Fails to start

Posted: Wed May 10, 2017 12:07 pm
by lmiltchev
Can you describe in details how you installed "Centos 7 LXC" in "Proxmox VE"? We will try to recreate the issue in-house.

Meanwhile, I would recommend that you report the issue you are having with NCPA here: https://github.com/NagiosEnterprises/ncpa/issues
Our developers will be looking into it as soon as they can.

Thanks!

Re: NCPA - LXC Container - Fails to start

Posted: Wed May 10, 2017 12:18 pm
by flowmj
Thanks for the response!

For Centos 7 LXC, I ssh'd into a proxmox node and downloaded the Centos 7 image:

#pveam download local centos-7-default_20161207_amd64.tar.xz

After that, Using the GUI I created a new container using that image. After the container was brought up, I installed openssh-server and ran yum update.

I will also post this to the Github page.

Re: NCPA - LXC Container - Fails to start

Posted: Wed May 10, 2017 1:56 pm
by dwhitfield
Did you have anything else to add or did you want to lock this up and follow the github issue?

Re: NCPA - LXC Container - Fails to start

Posted: Tue May 16, 2017 1:46 pm
by flowmj
Sorry I didn't see your response... Yes you can lock this thread, the issue will be fixed in ncpa 2.0.4

https://github.com/NagiosEnterprises/ncpa/issues/340