Nagios XI Database related configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Nagios XI Database related configuration

Post by sandeepatil »

Hi Need your help to the below mention configuration,

Scenario :
Configured agent with two Nagios XI servers (Primary / Secondary), both the servers receiving data from client and writing in database.

Requirement :
Stop data writing data in database of secondary server and start log shipping from primary server database to secondary server database.

Question :
Can we stop data writing in database received from client and allow log shipping data write in database.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios XI Database related configuration

Post by eloyd »

Only one Nagios XI server should be monitoring at at any given time, assuming that this is an HA arrangement. Your secondary should not be checking as long as your primary is up, or you are violating the terms of your Nagios license.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Database related configuration

Post by sandeepatil »

We have two Nagios XI servers with separate license and configured failover using script. We are trying to avoid data loss using explained Scenario.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios XI Database related configuration

Post by eloyd »

Two Nagios servers monitoring the same things will need to have two different databases and logs. Not all service/host checks will run cotemporaneously on both servers. If you are truly doing failover, though, then you will need to make your script disable/enable the secondary Nagios's monitoring so that it's only monitoring when the primary is not monitoring. As for logging to the same place, you'll need to get more complex than Nagios directly allows on its own, which requires shared databases and file storage.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Database related configuration

Post by sandeepatil »

Share database not allowed in our environment, this reason to trying another way.

Please confirm, can we stop the data to wring in database.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI Database related configuration

Post by tgriep »

The only truly way to stop the writing data to the SQL database, you would have to stop the Nagios process and the ndo2db process and then it will not be running so it cannot ship the logs to the other server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Database related configuration

Post by sandeepatil »

We want to stop write data from client and allow to write log shipping data come from other server not ship log to other server.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios XI Database related configuration

Post by eloyd »

Without knowing more about your requirements and environment, it will be difficult to assist you further. Nagios works a certain way and it sounds like you want it to work differently.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Nagios XI Database related configuration

Post by sandeepatil »

Can you explain, what details you required regarding my requirements and environment.

Please give me points, this good for me to share exact details and you to understanding.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios XI Database related configuration

Post by eloyd »

For one, you wrote:
sandeepatil wrote:Share database not allowed in our environment, this reason to trying another way.
I'm trying to understand what your limitations and requirements are.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked