Hello people, I have a nagios core server monitoring some computers directyl. Now I want to monitor a database with a plugin called "check_oracle_health" but I can't directly have access to the machine with the database from outsite the network so what I have to do is a brached system like this:
(MONITOR) ------------> (MIDDLE) ------------> (DATABASE MACHINE)
The MIDDLE machine is in the same network of the DATABASE MACHINE and the MONITOR can connect to MIDDLE by VPN.
What you see is that I can monitor directly the DATABASE MACHINE from MONITOR because of security policies. What I need is to monitor the DATABASE MACHINE from MIDDLE machine but duplicate the data or get the same data in the MONITOR in real time in case the VPN connection is up. If the VPN connections goes down the MIDDLE machine will keep monitoring, and when the VPN connection is up again, get the data that MIDDLE collected during this time and display realtime information again.
Do you have any idea of how to do this??
THANKS
Server Branching in Nagios
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Server Branching in Nagios
What you could do is set up another core server in the middle, or even just a nrpe installation from which you can create a command that your main core server will call. Once that command is called it will run a remote call to the oracle server, return the output to the middle server, and then loop back up to your main system. Let us know if you need help enacting this.