Hi Team,
I have a requirement where need to incoming event from database from different application. Please let me know where the data base stored and how to read it.
Regards
Shtrudhan
How to Read the received alert from Nagios DataBase
Re: How to Read the received alert from Nagios DataBase
Nagios Core's database (which is less "database" and more ORM) is in-memory and inaccessible. Nagios XI uses a MariaDB database.
That said, if you want to programatically pull a specific piece of information out of Nagios Core, the JSON CGIs exist:
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
From that documentation, assuming you are using the latest version of Nagios Core, you can skip to the "To get started using the CGIs" section.
Or, if you want to manually submit checks to Nagios Core, passive checks are a good option for this.
That said, if you want to programatically pull a specific piece of information out of Nagios Core, the JSON CGIs exist:
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
From that documentation, assuming you are using the latest version of Nagios Core, you can skip to the "To get started using the CGIs" section.
Or, if you want to manually submit checks to Nagios Core, passive checks are a good option for this.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: How to Read the received alert from Nagios DataBase
Thank you. when i open the json query generator page, the Send Query is disabled. Could you please help me to resolve this
Re: How to Read the received alert from Nagios DataBase
Please refer to the documentation I have provided:
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
You'll need to select the relevant CGI for the information you're trying to access. Here's an example of generating a query for the status of host CENESPROD00:
Notice how I have selected the "Status JSON CGI".
https://labs.nagios.com/2014/06/19/expl ... -7-part-1/
You'll need to select the relevant CGI for the information you're trying to access. Here's an example of generating a query for the status of host CENESPROD00:
Notice how I have selected the "Status JSON CGI".
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/