Hi All,
I was wondering where in the DB the BPIs are located... Does anyone know?
From what I've research they are located at common .cfgs at /usr/local/nagiosxi/html/includes/components/nagiosbpi/bpi.conf - right ? However, I needed to know in which table they're populated.
Regards !
NagiosXI_BPIs+DB
Re: NagiosXI_BPIs+DB
This is a bit beyond the scope for support that we can provide. We do not recommend modifying / accessing the database directly for records.
There may be another way to poll the information you're looking for though - what is your use case?
There may be another way to poll the information you're looking for though - what is your use case?
Former Nagios Employee
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
Re: NagiosXI_BPIs+DB
Hi rkennedy - I understand your point and I appreciate your opinion. However, I am developing an add-on or kind of component of NagiosXI and I need it to read the DB to show some information about the BPI, that's way I was thinking to make a query and resolve it on that way.
I understand that you don't recommend to acces the db directl. However, it would really help me to know how bpi is stored.
Regards,
I understand that you don't recommend to acces the db directl. However, it would really help me to know how bpi is stored.
Regards,
rkennedy wrote:This is a bit beyond the scope for support that we can provide. We do not recommend modifying / accessing the database directly for records.
There may be another way to poll the information you're looking for though - what is your use case?
Re: NagiosXI_BPIs+DB
I couldn't find any direct evidence of SQL/DB activity in the BPI codebase, but that may be obscured by using XI-specific functions which handle all of the querying. As far as I can tell it only uses flat files for the configs, which would make sense since it can be used in a Core-only setup which does not require a DB. I am pretty sure all the information is stored in /usr/local/nagiosxi/etc/components/bpi.conf.
Unfortunately I do not have any more information than that. Custom third-party development such as this is not something we can typically assist with.
Unfortunately I do not have any more information than that. Custom third-party development such as this is not something we can typically assist with.
Former Nagios employee
-
maartin.pii
- Posts: 84
- Joined: Wed May 18, 2016 1:39 pm
Re: NagiosXI_BPIs+DB
Hi tmcdonald - I have the same suspicion as you I think that all of the config resides on the bpi.conf and it then reads the services/hosts from the db.
Well thanks for your help I will let you know if I have further information of it.
This thread could be closed.
Regards,
Well thanks for your help I will let you know if I have further information of it.
This thread could be closed.
Regards,
tmcdonald wrote:I couldn't find any direct evidence of SQL/DB activity in the BPI codebase, but that may be obscured by using XI-specific functions which handle all of the querying. As far as I can tell it only uses flat files for the configs, which would make sense since it can be used in a Core-only setup which does not require a DB. I am pretty sure all the information is stored in /usr/local/nagiosxi/etc/components/bpi.conf.
Unfortunately I do not have any more information than that. Custom third-party development such as this is not something we can typically assist with.