Message forwarding (primary to backup)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
djohansen
Posts: 48
Joined: Tue Jan 31, 2017 4:59 pm

Re: Message forwarding (primary to backup)

Post by djohansen »

Thanks for the clarification !
I am also assuming if I backup/copy/restore, I need to change to passive, PLUS change the service hostname as well to the remote host's hostname correct? Both hosts have "localhost" as the service on their respective systems? This is what the wizard seems to do.

I can send events via "http://<server>/nrdp" just fine, just haven't gotten A to send to B yet... no gotchas like hosts.allow entries are there?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Message forwarding (primary to backup)

Post by eloyd »

Sorry, my assumption was that you were monitoring hosts other than localhost (the Nagios server). If that's the case, you'll likely want to switch from "localhost" to the actual hostname in your Server A config, so that when that data gets sent to Server B, the hostname makes more sense.

As for /etc/hosts.allow, no, nothing like that, though you will need to do Inbound Transfer work in Server B's Nagios Admin page, and I can't remember if it automatically opens a firewall port or not (via /etc/sysconfig/iptables).
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Message forwarding (primary to backup)

Post by ssax »

On Server A go to Admin > Inbound Transfers:
- On the NRDP tab, set the Authentication Token (you can use one per line if you want to use multiple)
- Click the Update Settings button

On Server B go to Admin > Outbound Transfers:
- On the Global Options tab, check the box next to Enable outbound check transfers
- On the NRDP tab:
>>> Check the box next to Enable NRDP outbound check transfers
>>> Type the IP address or DNS name of Server A in the IP Address field
>>> Select HTTP or HTTPS for the Method
>>> Type in the Authentication Token from Admin > Inbound Transfers on Server A
>>> Click the Update Settings button

Now it should be set up to work.

If they are still not coming through, SSH into Server B, run this command, and send us the full output:
- Change X.X.X.X to the IP or DNS name of Server A

Code: Select all

nmap -p 80,443 X.X.X.X
Thank you
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Message forwarding (primary to backup)

Post by eloyd »

@ssax has it backwards from what I was using. I assume you want to send from server A to server B, but his instructions are for B -> A. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
djohansen
Posts: 48
Joined: Tue Jan 31, 2017 4:59 pm

Re: Message forwarding (primary to backup)

Post by djohansen »

Thanks for all the great info so far.. I'm diving back into it in a few here.. I caught that the approaches were reversed, but still valid..
I understand the concepts, but being new to Nagios, I have run across quite a few "gotchas" either based on how we build our systems or certain assumptions as to system configuration that
I am not fully familiar with yet. (I worked with HPOV for 20 years)

One quick, sorta related topic...

All the servers seem to default to "localhost" for local monitoring on each server..
At first it was confusing, but I blindly grew to accept that as the way to do it. Can I
rename my templates to the hostname instead of using "localhost"? I have brainwashed myself to only do it that way.. :)
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Message forwarding (primary to backup)

Post by dwhitfield »

djohansen wrote:Can I rename my templates to the hostname instead of using "localhost"? I
Yes, but make sure you change it in the CCM, not the template file. Also, I'm not sure you mean template since that's the first place anyone uses templates in the thread, but if you mean host and services, the answer is yes.
djohansen
Posts: 48
Joined: Tue Jan 31, 2017 4:59 pm

Re: Message forwarding (primary to backup)

Post by djohansen »

My term of template (policy later on) is a holdover from my Openview days.. I changed everything in the CCM in hosts and services. Upon realization template has an entirely different meaning in Nagios. All part of the learning curve
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Message forwarding (primary to backup)

Post by tgriep »

After you use the system, it will become easier.
Let us know if you have any more questions on this subject or that it is alright to close the post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked