Page 1 of 1

NagiosXI_BPIs+DB

Posted: Tue Oct 18, 2016 10:15 am
by maartin.pii
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 !

Re: NagiosXI_BPIs+DB

Posted: Tue Oct 18, 2016 2:38 pm
by rkennedy
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

Posted: Wed Oct 19, 2016 7:29 am
by maartin.pii
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,

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

Posted: Wed Oct 19, 2016 1:57 pm
by tmcdonald
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.

Re: NagiosXI_BPIs+DB

Posted: Wed Oct 19, 2016 6:46 pm
by maartin.pii
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,



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.