Page 1 of 1

ncpa.db install location

Posted: Fri Apr 16, 2021 8:17 am
by gwakem
Hi all! Is there currently a way to specify the install/current location of the ncpa.db on the Linux agent side?

Re: ncpa.db install location

Posted: Fri Apr 16, 2021 2:22 pm
by benjaminsmith
Hi,

There isn't an option to specify a different path in the main configuration file (ncpa.cfg), the path is hard coded in the database.py script. A couple of options:

1. Submit an enhancement request on th GitHub site for NCPA
https://github.com/NagiosEnterprises/ncpa

2. Try modifying the path in the source code, and build it on your system.
https://github.com/NagiosEnterprises/nc ... g-on-linux

Also, just curious, what are the requirements for moving the file?

Let us know if you have any questions or need further assistance.

Benjamin

Re: ncpa.db install location

Posted: Mon Apr 19, 2021 7:26 am
by gwakem
This question stemmed from an inquiry from one of my engineers after the ncpa.db ballooned to 2.1GB, even with the default 30 day retention. I did adjust it to 7 days, but the engineer in question is passionate about where specific items are placed in accordance with LSB. The change of retention should keep this off his radar and in effect keep him happy, so thank you for the information. This can be locked.

Re: ncpa.db install location

Posted: Mon Apr 19, 2021 8:52 am
by scottwilkerson
gwakem wrote:This question stemmed from an inquiry from one of my engineers after the ncpa.db ballooned to 2.1GB, even with the default 30 day retention. I did adjust it to 7 days, but the engineer in question is passionate about where specific items are placed in accordance with LSB. The change of retention should keep this off his radar and in effect keep him happy, so thank you for the information. This can be locked.
Locking thread